CountIF multiple conditions

  • Thread starter Thread starter potentus
  • Start date Start date
P

potentus

Hi,

I have been searching for some help:

I have multiple columns and 2000 rows with numbers



I want the to count only those instances where the number 2 appears in
column A
AND the number 5 also appears in columns B


Thanks for the help


zach
 
=sumproduct(--(a1:a2000=2),--(b1:b2000=5))

Adjust the ranges to match--but you can't use whole columns (except in xl2007).

=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 here:
http://www.xldynamic.com/source/xld.SUMPRODUCT.html

And J.E. McGimpsey has some notes at:
http://mcgimpsey.com/excel/formulae/doubleneg.html


And if you're using xl2007, you may want to look at =countifs() in excel's help.
 
Back
Top