FWIW:
Sub antoanand1981()
Dim rcell As Range
For Each rcell In Range("I2:J" & Range("J" & Rows.count).End(3)(1).Row)
Select Case rcell.Value
Case Is = "G"
rcell.offset(, -2).Interior.ColorIndex = 4
Case Is = "Y"
rcell.offset(, -2).Interior.ColorIndex = 6
Case Is = "O"
rcell.offset(, -2).Interior.ColorIndex = 44
Case Is = "R"
rcell.offset(, -2).Interior.ColorIndex = 3
Case Is = "NR"
rcell.offset(, -2).Interior.ColorIndex = 16
Case Is = "ND", "NRW"
rcell.offset(, -2).Interior.ColorIndex = 37
End Select
Next rcell
End Sub
Bookmarks