Edit: Sorry, but I didn't see any reference in your question to an interior color fill of 'Green'. The assumption was, in light of the absence of that bit of information, that there was no other 'filling' occurring.
So, are you saying that if any cell has an interior color of 'Green' to leave it green? If so, which green? Dark Green, light green, Green, etc?
Also, please provide any/all other details about the structure of your worksheet that may have a bearing on total functionality.
==========================
This event handler might do as you ask.
It will color fill in the order you have listed. So, if N2 is not blank it fill magenta regardless of other conditions being met 'down stream'.
If M2 is not blank, it will fill gray regardless whether other conditions are met 'down stream'.
If M2 is blank and H2 is not blank, it will fill Gold, regardless of other conditions 'down stream'.
Etc.
If is not your goal, please provide a detailed synopsis of the multiple condition situations. Otherwise,
Copy this code to the clipboard:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim i, j, LastRow
LastRow = Range("B" & Rows.Count).End(xlUp).Row + 1
Application.ScreenUpdating = False
For i = 2 To LastRow
For j = 2 To 16
If Cells(i, "M").Value <> "" Then
Cells(i, j).Interior.ColorIndex = 15
cIndex = 15
ElseIf Cells(i, "H").Value <> "" Then
Cells(i, j).Interior.ColorIndex = 45
cIndex = 45
ElseIf Cells(i, "G").Value <> "" Then
Cells(i, j).Interior.ColorIndex = 8
cIndex = 8
ElseIf Cells(i, "F").Value <> "" Then
Cells(i, j).Interior.ColorIndex = 3
Cells(i, j).Font.ColorIndex = 2
cIndex = 3
Else: Cells(i, j).Interior.ColorIndex = xlNone
End If
Next j
Next i
For i = 2 To LastRow
If Cells(i, "N").Value <> "" Then
Cells(i, "N").Interior.ColorIndex = 7
Else
Cells(i, "N").Interior.ColorIndex = Cells(i, "B").Interior.ColorIndex
End If
Next
End Sub
Select the appropriate worksheet and right click the sheet tab.
Select 'View Code'
Paste the code into the editing area to the right.
Close the VBE and return to the worksheet.
Enter values in columns F, G, H, M, and the rows will color fill as coded.