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

Google sheet COUNTIF with more than 3 criteria or use different formula?

I’m trying to get a count based on a specific entry in one column AND add the choice made from a separate column in my google sheets.
Should I use a different formula than COUNTIF since I have multiple entries to count?

Example:
Countif(I:I, "j", "k", "l") + Countif(J:J, "SPH", K:K "SPH")

Is there a better way to count more than 3 criterion in a column? if so, could a second count be added to include a separate columns criterion?

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

>Solution :

You should be using COUNTIFS

COUNTIFS Function helps us get conditional counts within a range based upon multiple criteria’s. It’s a enhanced version of it’s sister function COUNTIF which also gives us conditional counts but only with a single criteria.

= COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...])

applied to your criteria:

= COUNTIFS(I:I, "j", I:I, "k", I:I, "l", J:J, "SPH", K:K, "SPH")
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