Counting in between a date range with conditions

C

Courtney Rae

I am trying to count in between a date range with conditions
(condition is the department code). This is the formula I have that is
not working:

=Sumproduct((A1:A779>=Date(2009,1,1))*(A1:A779<=Date(2009,1,31))*
(B1:B779="Department"))
 
D

Dave Peterson

How do you know that it's wrong? What happens?

The formula looks ok to me. Maybe the data isn't correct. Any chance that the
values in column A aren't really dates--that they're just plain old text?

Any chance that the values in column B aren't really "department"--maybe they
have leading/trailing spaces?
 
C

Courtney Rae

How do you know that it's wrong?  What happens?

The formula looks ok to me.  Maybe the data isn't correct.  Any chance that the
values in column A aren't really dates--that they're just plain old text?

Any chance that the values in column B aren't really "department"--maybe they
have leading/trailing spaces?

Thanks! I just had to format the dates to dates!
 

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