=sumproduct(--(b2:b100="united states"),--(c2:c100="sales"))
Adjust the ranges to match--but you can't use whole columns.
=sumproduct() likes to work with numbers. The -- stuff changes trues and falses
to 1's and 0's.
Bob Phillips explains =sumproduct() in much more detail he
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html
Ted Metro wrote:
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?
--
Dave Peterson