How do I count number of cels the matches 2 conditions ?

G

Guest

How do I count number of cels the matches 2 conditions (I am using COUNTIF
and AND) ??? I need the total of cels that matches the 2 conditions and not
the sum of the cels.
Thanks
 
B

Bob Phillips

=SUMPRODUCT(--(A1:A100="value1"),--(A1:A100="value2"))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
R

Ragdyer

You could use Countif() in conjunction with Sum() to count against any
number of conditions:

=SUM(COUNTIF(A1:A100,{"cond#1","cond#2","cond#3"}))
 

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