Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("J1:J14")) Is Nothing Then
If LCase(Target.Value) = "yes" Then
Target.Offset(0, 4).Value = Date
Else
Target.Offset(0, 4).Value = " "
End If
End If
If Not Intersect(Target, Range("G1:G14")) Is Nothing Then
If LCase(Target.Value) = "others" Then
Target.Offset(0, 4).Value = "Marianne Elder"
Else
Target.Offset(0, 4).Value = " "
End If
End If
End Sub
Your code will not work without capitalizing.
I made the assumption that you did not want to require that "Yes" and "Others" need to be capitalized.
You could eliminate the LCase function to force an exact case match.
Bookmarks