Sub Does_Not_Equal()
'Modified 9/22/2018 9:41 PM EDT
Application.ScreenUpdating = False
Dim i As Long
For i = 1 To 10
If Cells(i, 1).Value <> Cells(i, 3) Then
Cells(i, 4).Value = "Yes"
Else
Cells(i, 4).Value = "No"
End If
Next
Application.ScreenUpdating = True
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
'Modified 9/22/2018 11:49:57 PM EDT
If Not Intersect(Target, Range("A1:A10")) Is Nothing Then
If Target.Cells.CountLarge > 1 Then Exit Sub
If Target.Value <> "" Then
Target.Offset(, 2).Value = "True"
Else
Target.Offset(, 2).Value = ""
End If
End If
End Sub