Sub Long_Winded()
Dim a As String, aa As String, b As String, bb As String
Dim aRow As Long, aCol As Long, aaRow As Long, aaCol As Long
Dim bRow As Long, bCol As Long, bbRow As Long, bbCol As Long
Dim ValueColor As Long
Dim lr As Long, j As Long
a = Application.InputBox(Prompt:="Please enter the first name", Title:="Name required")
aa = Application.InputBox(Prompt:="Please enter the second name", Title:="Name required")
b = Application.InputBox(Prompt:="Please enter the first name to be colored", Title:="Name required")
bb = Application.InputBox(Prompt:="Please enter the second name to be colored", Title:="Name required")
ValueColor = Application.InputBox(Prompt:="Please enter value for color change", Title:="Value required")
aRow = Cells.Find(a, , , 1).Row
aCol = Cells.Find(a, , , 1).Column
aaRow = Cells.Find(aa, , , 1).Row
aaCol = Cells.Find(aa, , , 1).Column
bRow = Cells.Find(b, , , 1).Row
bCol = Cells.Find(b, , , 1).Column
bbRow = Cells.Find(bb, , , 1).Row
bbCol = Cells.Find(bb, , , 1).Column
lr = Cells(Rows.Count, aCol).End(xlUp).Row
For j = aRow + 1 To lr
If Cells(j, aCol).Value = 0 And Cells(j, aaCol) = 0 Then
If Cells(j, bCol).Value >= ValueColor Then Cells(j, bCol).Interior.Color = vbRed
If Cells(j, bCol).Value < ValueColor Then Cells(j, bCol).Interior.Color = vbBlue
If Cells(j, bbCol).Value >= ValueColor Then Cells(j, bbCol).Interior.Color = vbRed
If Cells(j, bbCol).Value < ValueColor Then Cells(j, bbCol).Interior.Color = vbBlue
End If
Next j
End Sub