ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If and CountIF Nesting (https://www.excelbanter.com/excel-worksheet-functions/133101-if-countif-nesting.html)

nperpill

If and CountIF Nesting
 
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!

Dave F

If and CountIF Nesting
 
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
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"nperpill" wrote:

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!



All times are GMT +1. The time now is 04:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com