Count widgets between two dates - Excel 2003

G

Guest

I want to count the number of Widgets by type in column A (Widget x, Widget
y, Widget z) which were sold on or after 01/01/07 and before 02/01/07
 
T

T. Valko

Try this:

=SUMPRODUCT(--(A1:A10="Widget
z"),--(B1:B10>=DATE(2007,1,1)),--(B1:B10<DATE(2007,2,1)))

Better to use cells to hold the criteria:

D1 = Widget z
E1 = 1/1/2007
F1 = 2/1/2007

=SUMPRODUCT(--(A1:A10=D1),--(B1:B10>=E1),--(B1:B10<F1))

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top