How do I COUNTIF in excel using multiple criteria?

G

Guest

I am trying to set up a function which looks to see if multiple criteria,
across different columns are met.

Idealy I should think the following function should work, but alas, it does
not:

=COUNTIF(AND(A1:A5=1, B1:B5=2))

Any suggestions?
 
K

Ken Wright

=SUMPRODUCT((A1:A5=1)*(B1:B5=2)*(C1:C5=3)) etc

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :)
------------------------------­------------------------------­----------------
 

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

Similar Threads

Countif(and 1
Excel function - countif 2
Help with function 2
COUNTIF criteria 2
Countif Function Using "AND" 3
Countif, multiple criteria 6
SUMIF with criteria "<>" & "=" 4
countif with variabel criteria? 2

Top