Excel - Count rows where 2 conditions are true

September 2017


I am having problems counting the # rows of problem reports where the priority = 1 and the PR is active.
here is the array:
1 2 Y   
2 1   
3 2 Y   
4 1   
5 1 Y   
6 2   
7 1 Y 
  • I simply want to show that there are 2 problem reports active that are priority = 1.
  • I have tried many things, including:
  • This is simplified but the principle is the same. Please advise


Try with this formula (Column A containing PRIORITY, Column B containing ACTIVE):
  • =SUMPRODUCT((A1:A7=1)*(B1:B7="Y")) 

Note that

Thanks to aquarelle for this tip on the forum


Published by aakai1056. Latest update on November 21, 2011 at 11:35 AM by aakai1056.
This document, titled "Excel - Count rows where 2 conditions are true," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).