AND function using COUNTIF

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to count entries in column "B" that equal a criteria and also
meet a criteria in column "A".

For EX:

If entry in column "A" equals "Walt" and entry in column "B" equals "x" then
count

Note: I think I had a solution a few years ago that used the -- function.

Please help me solve this again.

Thanks
 
=SUMPRODUCT(--(A2:A200="Walt"),--(B2:B200="x"))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Hi Walter,

You could try something like this..


=SUMPRODUCT(--(A1:A1000="Walt"),--(B1:B1000="X"))

Hope this helps,

Gav.
 
=SUMPRODUCT((A1:A100="Walt")*(B1:B100="x")) or
=SUMPRODUCT(--(A1:A100="Walt"),--(B1:B100="x"))
 
Back
Top