Count Occurrences with Multiple Criteria in Google Sheets (The Easiest Method in 2024)

Video countif different sheet google sheets

Are you tired of manually counting occurrences in your Google Sheets? Look no further, because we have the solution for you! In this article, we will show you how to use the COUNTIFS function to count occurrences with multiple criteria in Google Sheets. It’s easy, efficient, and will save you valuable time. So, let’s dive right in!

Syntax

To count cells in Google Sheets that meet multiple criteria, you can use the COUNTIFS function. The basic syntax of the COUNTIFS function is as follows:

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

Where:

  • criteria_range1, criteria_range2, etc. are the ranges of cells you want to use as criteria.
  • criterion1, criterion2, etc. are the criteria you want to use.

The criteria are placed in quotation marks. For example, if the criterion is “the value is greater than 3”, then the criterion is added to the formula as ">3".

Here are the symbols to use for comparing values:

  • Greater than: >
  • Greater than or equal to: >=
  • Equal to: = or no symbol before the value itself
  • Less than or equal to: <=
  • Less than: <

You can add as many ranges and criteria as you need. It’s that flexible!

Let’s see it in action with an example.

1. Identify the Criteria and Ranges to Analyze

In our example, we have a list of names with their scores. Our goal is to count the entries that meet the following requirements:

  • Score 1 is greater than 14
  • Score 2 is greater than 4
  • Score 3 is greater than 12

The ranges of the scores are as follows:

  • Score 1: B2:B20
  • Score 2: C2:C20
  • Score 3: D2:D20

Finally, we will use cell F1 to hold the number of entries that fulfill our given set of criteria.

2. Use the Formula =COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...])

Using what we listed in step 1, we get the following criteria:

  • Score 1 is greater than 14: ">14"
  • Score 2 is greater than 4: ">4"
  • Score 3 is greater than 12: ">12"

So, we have the following range/criterion pairs:

  • Criteria_range1: B2:B20; Criterion1: ">14";
  • Criteria_range2: C2:C20; Criterion2: ">4";
  • Criteria_range3: D2:D20; Criterion3: ">12"

Now, let’s combine them in the formula:

=COUNTIFS(B2:B20,">14",C2:C20,">4",D2:D20,">12")

And then insert it into cell F1:

Formule COUNTIFS dans la cellule F1

When you enter the formula, the ranges within the formula are highlighted with a color matching the dotted border color that highlights the ranges. This visually confirms if the correct ranges are entered in the formula.

3. Press Enter

Google Sheets will analyze the specified ranges and populate the answer in cell F1. It’s as simple as that!

FAQs

Q: How do I use COUNTIF with multiple criteria, comparing string values?

If the criterion involves checking if a cell contains a certain string, you just need to insert the string itself as the criterion. For example, if we want to count the cells in the Score 1 column that have a value greater than 13 and are marked as “Probationary,” we would set the range to C2:C20 and the corresponding criterion to “Probationary.” The formula becomes:

=COUNTIFS(B2:B20,">14",C2:C20,"Probationary")

Use our invoice approval software to easily set up invoice approvals from your Google Sheets in just a few clicks.

If you enjoyed this article, you might also like our article on using the COUNTIF function in Google Sheets or our article on using COUNTIF with the CONTAINS function in Google Sheets.

If you’re interested in learning how to send reminders in Google Sheets, we also suggest checking out our detailed guide.

Now that you know how to count occurrences with multiple criteria in Google Sheets, your data analysis tasks will become a breeze. Start using the COUNTIFS function today and save yourself time and effort. Happy counting!

To learn more about Google Sheets and other helpful tips, visit Crawlan.com.

Related posts