Code:
Sub Maybe()
Dim c As Range
For Each c In Range("A1:D12") '<---- Change Range as required
With c
Select Case .Interior.Color
Case Is = vbRed
c.Value = -1
Case Is = vbGreen
c.Value = 1
Case Is = vbYellow
c.Value = 0
Case Else
End Select
End With
Next c
End Sub
You might have to find out the RGB colors of the cells and change the code accordingly