Hey guys i am trying to search a column of dates and count how many fall between two dates. I get an error Type mismatch when i run it.
Dim iVal As Integer
iVal = Application.WorksheetFunction.CountIfs("Incident_stats!k:k", ">=" & B1, "Incident_stats!k:k", "<=" & B2)
Range("D1").Value = iVal