Private Sub Worksheet_Change(ByVal R As Range)
If Application.Intersect(R, [B4:F8]) Is Nothing Then Exit Sub
If R(1, 1) = "" Then
R.Interior.ColorIndex = Cells(R.Row, 1).Interior.ColorIndex
Else
R.Interior.ColorIndex = IIf(R = R(1, 10), 14, 3)
End If
End Sub