Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$1" Then Range("A1").Value = Range("A1").Value + 1
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$B$5" Then Range("A1").Value = Range("A1").Value + 1
End Sub