If and Sumproduct

G

Guest

I have about 250 pieces of equipment that are serviced periodically every 3,
6 or 12 months. Each piece is located in a specific department and I want to
identify the number of pieces serviced in a defined time frame by department.

Column C contains service dates; column E contains the department names and
all columns between A & E have headings. The other columns have info not
related to the query. K1 & K2 contain the beginning and end dates for the
query.

The formula I wrote:
=IF(E$1:E$250="Research",SUMPRODUCT(C$1:C$250>=K$1)*(C$1:C$250<=K$2),0)
returns the value of 0. What have I done wrong?

Thanks,

Ron
 
P

PCLIVE

May be this:

=SUMPRODUCT(--(E$1:E$250="Research"),--(C$1:C$250>=K$1),--(C$1:C$250<=K$2))
 

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