Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Count Rows with Multiple Criteria

I am going to count rows based on the values of two columns (i.e., count if the Priority is "1" and Status is "not defined"). Here is an example:

Priority Status
1 implemented
0 implemented
1 not defined
0 not defined
0 implemented
1 not defined
1 implemented
1 implemented

which I would like to get 2 because there are only two rows with Priority = 1 and Status = "not defined".

I tried the following but not successful in this regard:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

=SUMPRODUCT((COUNTA(M3:M20))*(J3:J20="not defined"))

>Solution :

Use either of the one, refer image

=SUMPRODUCT(($A$2:$A$9=1)*($B$2:$B$9="not defined"))

=COUNTIFS($A$2:$A$9,1,$B$2:$B$9,"not defined")

Count Rows with Multiple Criteria

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading