Would it be possible to do "0's" font colour red

motilulla

Well-known Member
Joined
Feb 13, 2008
Messages
2,372
Office Version
  1. 2010
Hello,</SPAN></SPAN>

Not sure can be done "0's" font colour red</SPAN></SPAN>

As per example below


Book1
ABCD
1
2
3
4
51 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR] | 1 | [COLOR=#ff0000]0[/COLOR] | 1 | [COLOR=#ff0000]0 [/COLOR]| 1 | 1 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR] | 1 | [COLOR=#ff0000]0[/COLOR]
62 | 1 | 1 | [COLOR=#ff0000]0[/COLOR] | 2 | 1 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR] | 2 | [COLOR=#ff0000]0[/COLOR] | 1 | 1 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR]
73 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR] |[COLOR=#ff0000] 0 [/COLOR]| 3 | [COLOR=#ff0000]0 [/COLOR]| 1 | [COLOR=#ff0000]0[/COLOR] | 3 | 1 |[COLOR=#ff0000] 0 [/COLOR]|[COLOR=#ff0000] 0 [/COLOR]| 1 | [COLOR=#ff0000]0[/COLOR]
84 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0 [/COLOR]| 1 | 4 | 0 | 2 |[COLOR=#ff0000] 0 [/COLOR]| [COLOR=#ff0000]0[/COLOR] | 2 | 1 |[COLOR=#ff0000] 0[/COLOR] | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR]
9[COLOR=#ff0000]0[/COLOR] | 1 | [COLOR=#ff0000]0[/COLOR] | 2 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR] | 3 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR] | 3 | 2 | 1 |[COLOR=#ff0000] 0[/COLOR] | [COLOR=#ff0000]0[/COLOR]
101 | 2 | 1 | 3 | 1 | 1 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR] | 1 | [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0 [/COLOR]| [COLOR=#ff0000]0[/COLOR] | [COLOR=#ff0000]0[/COLOR] | 1
Sheet1


Thank you all</SPAN></SPAN>

Excel 2000</SPAN></SPAN>
Regards,</SPAN>
Moti</SPAN></SPAN>
 
Last edited:

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Code:
Sub t()
Dim i As Long, j As Long
For i = 1 To 2
    For j = 1 To Len(Cells(i, 4))
        If Mid(Cells(i, 4).Value, j, 1) = 0 Then
            Cells(i, 4).Characters(j, 1).Font.ColorIndex = 3
        End If
    Next
Next
End Sub
 
Upvote 0
Code:
Sub t()
Dim i As Long, j As Long
For i = 1 To 2
    For j = 1 To Len(Cells(i, 4))
        If Mid(Cells(i, 4).Value, j, 1) = 0 Then
            Cells(i, 4).Characters(j, 1).Font.ColorIndex = 3
        End If
    Next
Next
End Sub
Wow! JLGWhiz, it worked spot on. Thank you so much</SPAN></SPAN>

Wish you a very Happy New Year 2019
</SPAN></SPAN>

Kind Regards,
</SPAN>
Moti :)
</SPAN></SPAN>
 
Upvote 0
Wow! JLGWhiz, it worked spot on. Thank you so much</SPAN></SPAN>

Wish you a very Happy New Year 2019
</SPAN></SPAN>

Kind Regards,
</SPAN>
Moti :)
</SPAN></SPAN>

You're welcome,
regards, JLG
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,941
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top