I would like to count the non empty rows that meet specific criteria.
I have a very simplified version of my data in the table below (my table is much larger and is confined to excel). I can count the non empty cells that meet multiple criteria by using a sumproduct formula:
sumproduct((B1:F1=2014)*(A2:A6=”Yes”)*(B2:F6>0))
What I would like to do is count the non empty rows where certain criteria is met in row 1 and column A. So the count of the rows that satisfy Year = 2014 (row 1) and Criteria = Yes (column A) should produce 3. I need to count the rows once so I am not double counting when I aggregate the years.
<tbody>
</tbody>
I have a very simplified version of my data in the table below (my table is much larger and is confined to excel). I can count the non empty cells that meet multiple criteria by using a sumproduct formula:
sumproduct((B1:F1=2014)*(A2:A6=”Yes”)*(B2:F6>0))
What I would like to do is count the non empty rows where certain criteria is met in row 1 and column A. So the count of the rows that satisfy Year = 2014 (row 1) and Criteria = Yes (column A) should produce 3. I need to count the rows once so I am not double counting when I aggregate the years.
Criteria | 2014 | 2014 | 2015 | 2015 | 2016 |
Yes | 4 | 2 | 3 | ||
Yes | 3 | 8 | 8 | 2 | |
No | 3 | 6 | 4 | ||
No | 5 | 7 | 1 | ||
Yes | 1 | 1 | 3 | 3 |
<tbody>
</tbody>