multiple conditional counts

  • Thread starter Thread starter N. Halvin
  • Start date Start date
N

N. Halvin

I am trying to do a conditional count...but with several
conditionals involving two columns. Does anyone know how
to do this?

Example:

A B
MD yes
CK yes
MD yes
DW no
MD no
CK yes
CK no
What I want to know is: count how many of value "MD" in
column A, when value in B is "yes". Can anyone help?
 
=SUMPRODUCT((RngA="MD")*(RngB="yes"))

or

=SUMPRODUCT(--(RngA="MD"),--(RngB="yes"))
 

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

Back
Top