sumif 2 text conditions

G

Guest

In column A I have employee names, in coolumn B I have country names, and in
column C, I have department.

I want to do a sumif for example that would count how many people in the
United States are in the Sales department.

I've tried an array formula something like this, but it's not working,

{sum(if(and(b2:b100="United States",c2:c100="Sales"),1,0))}

Any ideas?
 
G

Guest

Try this:


=SUMPRODUCT((b2:b100="United States")*(c2:c100="Sales"))
or...this variation:
=SUMPRODUCT(--(b2:b100="United States"),--(c2:c100="Sales"))

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 

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