If and CountIF Nesting

N

nperpill

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!
 
D

Dave F

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
 
Top