In Excel 2007:
=COUNTIFS(A1:A10,">="&DATE(2008,1,1),A1:A10,"<="&DATE(2008,1,31),B1:B10,"Paul")
Or, using cells to hold the criteria:
D1 = 1/1/2008
E1 = 1/31/2008
F1 = Paul
=COUNTIFS(A1:A10,">="&D1,A1:A10,"<="&E1,B1:B10,F1)

Signature
Biff
Microsoft Excel MVP
> One more:
>
[quoted text clipped - 31 lines]
>>
>> -Peter
Dave Peterson - 26 Jan 2008 20:10 GMT
Thanks, Biff.
And from what I've read, =countifs() and =sumifs() are faster than =sumproduct()
and can use the whole column.
> In Excel 2007:
>
[quoted text clipped - 51 lines]
> >
> > Dave Peterson

Signature
Dave Peterson