Counting records in a column range occuring between specific dates
Try one of these:
=COUNTIF(A1:A200,"="&DATE(2008,12,1))-COUNTIF(A1:A200,""&DATE(2008,12,31))
Or, better to use cells to hold the date boundaries:
C1 = lower boundary = 12/1/2008
D1 = upper boundary = 12/31/2008
=COUNTIF(A1:A200,"="&C1)-COUNTIF(A1:A200,""&D1)
--
Biff
Microsoft Excel MVP
"Jeremy Prosser" wrote in message
...
I'm using Excel 2003, Win XP. I just want to enter a funtion/formula that
counts how many times a record appears in a range between two specific
dates
rather than having to filter the records and do a count. I've been trying
the COUNTIF function but without any luck. Example:
=COUNTIF(A1:A200,=12012008,<=12312008). I know this is completely wrong
but you get the idea. Thanks in advance. Jeremy.
|