One way, assuming data in cols A and B expected within rows 2 to 10
In say, C2, copied down:
=IF(A2="","",SUMPRODUCT((TEXT(A$2:A$10,"mmmyy")="Jun08")*(B$2:B$10=B2)))
Adapt ranges to suit
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Opal" wrote:
> Im trying to generate a count that will tell me how many of 'x' are in
> column B only if column A's data are within a date range eg for the month of
> June.
>
> A B
> 16-Jun-08 Apple
> 16-Jun-08 Pear
> 30-May-08 Apple
> 18-Jun-08 Orange
> 16-Jun-08 Apple
> 12-Apr-08 Pear
>
> Thanks
> --
> Opal