If and CountIF Nesting

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

Guest

I want to create a formula that will calculate how many rows satisfy the
following criteria:

Column A = Hartford
Column B = Yes
Column C = Yes

I'm run into a problem trying to nest the if and countif functions. Thanks!
 
COUNTIF works on only one criteria.

For multiple criteria you need to use SUMPRODUCT

=SUMPRODUCT(--(A1:A10="Hartford"),--(B1:B10="Yes"),--(C1:C10="Yes")) will
count all rows for which column A shows Hartford, column B shows Yes, and
column C shows Yes.

Dave
 

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