All you need is a simple SUMPRODUCT formula
="Past dates = "&SUMPRODUCT(--(A4:A1000<TODAY()))
="Future dates = "&SUMPRODUCT(--(A4:A1000>=TODAY()))
This VBA should work
Sub GetData()
Dim i As Long
Dim cPast As Long
Dim cFuture As Long
For i = 4 To Cells(Rows.Count, "A").End(xlUp).Row
If Cells(i, "A").Value < Date Then
cPast = cPast + 1
Else
cPast = cPast + 1
End If
Next i
Range("B3").Value = "Past dates = " & cPast
Range("C3").Value = "Future dates = " & cFuture
End Sub
Typo alert
Sub GetData()
Dim i As Long
Dim cPast As Long
Dim cFuture As Long
For i = 4 To Cells(Rows.Count, "A").End(xlUp).Row
If Cells(i, "A").Value < Date Then
cPast = cPast + 1
Else
cFuture = cFuture + 1
End If
Next i
Range("B3").Value = "Past dates = " & cPast
Range("C3").Value = "Future dates = " & cFuture
End Sub