Sumproduct help

M

Mosqui

I want to count how many valves I have with fw1, so two conditions.

fw1 valve
fw1 pin
fw1 pin
fw2 valve
fw2 pin

Thanks
Mosqui
 
T

T. Valko

Try this:

=SUMPRODUCT(--(A1:A5="fw1"),--(B1:B5="valve"))

Better to use cells to hold the criteria:

D1 = fw1
E1 = valve

=SUMPRODUCT(--(A1:A5=D1),--(B1:B5=E1))
 
M

Mosqui

That was just perfect.

Many Thanks


T. Valko said:
Try this:

=SUMPRODUCT(--(A1:A5="fw1"),--(B1:B5="valve"))

Better to use cells to hold the criteria:

D1 = fw1
E1 = valve

=SUMPRODUCT(--(A1:A5=D1),--(B1:B5=E1))
 

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