Conditional formatting
Closed
                                    
                        Steve                    
                                    -
                            Aug 26, 2016 at 10:22 AM
                        
Mazzaropi Posts 1985 Registration date Monday August 16, 2010 Status Contributor Last seen May 24, 2023 - Aug 26, 2016 at 03:23 PM
        Mazzaropi Posts 1985 Registration date Monday August 16, 2010 Status Contributor Last seen May 24, 2023 - Aug 26, 2016 at 03:23 PM
        Related:         
- Conditional formatting
 - Excel conditional formatting based on date - Guide
 - How to clear formatting in excel - Guide
 - Formatting windows 7 - Guide
 - Hp formatting tool - Download - Storage
 - Formatting sd card to fat32 - Guide
 
1 response
                
        
                    Mazzaropi
    
        
                    Posts
            
                
            1985
                
                            Registration date
            Monday August 16, 2010
                            Status
            Contributor
                            Last seen
            May 24, 2023
            
            
                    147
    
    
                    
Aug 26, 2016 at 03:23 PM
    Aug 26, 2016 at 03:23 PM
                        
                    Steve, Good afternoon. 
Try to use:
Adapt the value 1500 to your reality.
Is this what you want?
I hope it helps.
            Try to use:
Sub ChangeToNegative()
 For i = 1 To 1500
   If Range("A" & i).Value = "Sell" Then
      Range("B" & i).Value = Range("B" & i).Value * -1
   End If
 Next
End Sub
Adapt the value 1500 to your reality.
Is this what you want?
I hope it helps.