Counting records in a column range occuring between specific dates
Try the SUMPRODUCT function:
Something like:
=SUMPRODUCT(--(A1:A200=DATE(2008,12,1)),--(A1:A200<=DATE(2008,12,31)))
You could also place your min and max dates in separate cells, such as B1
and B2. Then use:
=SUMPRODUCT(--(A1:A200=B1),--(A1:A200<=B2))
HTH
Elkar
"Jeremy Prosser" wrote:
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.
|