COUNTIFS Function: Mastering Multi-Criteria Counting

Last Updated on 27/11/2024
Reading time: 2 minutes

The COUNTIFS function is a powerful Excel function that counts rows based on multiple conditions. Unlike COUNTIF, which handles a single condition, COUNTIFS allows you to apply multiple criteria to your dataset. This makes it essential for advanced data analysis and precise filtering.

COUNTIF vs. COUNTIFS

This table shows the differences between the COUNTIF and COUNTIFS functions. There is no huge differences except the number of criteria.

FeatureCOUNTIFCOUNTIFS
ConditionsSingle condition onlyMultiple conditions supported (max 256 conditions)
Use CaseCount one type of dataAnalyze complex datasets
ExampleCount "East" in Area columnCount "Banana" in "West" region

COUNTIFS Syntax

  • criteria_range1: The first range to evaluate.
  • criteria1: The condition for the first range.
  • criteria_range2: The second range to evaluate.
  • criteria2: The condition for the second range.
  • Additional ranges and conditions can be added.

=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)

Examples with Multi-Criteria

The following document represents the sales of fruits per Region for different dates.

#1: Number of sales of Apricot in the East region

  1. Select the column with the fruits.
  2. Write your criteria "Apricot"
  3. Select the range of the second criteria, the Area
  4. Write the criterion "East"
Number of rows for Apricot and East with the COUNTIFS function

#2: Number of Cherry sales the 09/08/2024

We will select the date and fruit columns with the same logic.

Number of rows of Cherry for a specific date with COUNTIFS function

Remarks:

  1. It doesn't matter for the function the order of selection of the columns.
  2. For a date, you can write it as a string or with the DATE function DATE(2024,8,9)

#3: Amount of Sales greater than 20 for the North Region

This time, we will include in Sales criteria, the symbol greater to select all the sales greater than 20.

  • By default, when you write the name of your criteria, it's like if you write "=North"
  • So you can perferctly write any logical operator in your criteria
COUNTIFS with a logical operator greater than

Why Use COUNTIFS?

  • Automates filtering for large datasets.
  • Reduces errors from manual counting.
  • Saves time in multi-condition analysis.

Start using COUNTIFS to handle complex data analysis with ease!

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

COUNTIFS Function: Mastering Multi-Criteria Counting

Reading time: 2 minutes
Last Updated on 27/11/2024

The COUNTIFS function is a powerful Excel function that counts rows based on multiple conditions. Unlike COUNTIF, which handles a single condition, COUNTIFS allows you to apply multiple criteria to your dataset. This makes it essential for advanced data analysis and precise filtering.

COUNTIF vs. COUNTIFS

This table shows the differences between the COUNTIF and COUNTIFS functions. There is no huge differences except the number of criteria.

FeatureCOUNTIFCOUNTIFS
ConditionsSingle condition onlyMultiple conditions supported (max 256 conditions)
Use CaseCount one type of dataAnalyze complex datasets
ExampleCount "East" in Area columnCount "Banana" in "West" region

COUNTIFS Syntax

  • criteria_range1: The first range to evaluate.
  • criteria1: The condition for the first range.
  • criteria_range2: The second range to evaluate.
  • criteria2: The condition for the second range.
  • Additional ranges and conditions can be added.

=COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)

Examples with Multi-Criteria

The following document represents the sales of fruits per Region for different dates.

#1: Number of sales of Apricot in the East region

  1. Select the column with the fruits.
  2. Write your criteria "Apricot"
  3. Select the range of the second criteria, the Area
  4. Write the criterion "East"
Number of rows for Apricot and East with the COUNTIFS function

#2: Number of Cherry sales the 09/08/2024

We will select the date and fruit columns with the same logic.

Number of rows of Cherry for a specific date with COUNTIFS function

Remarks:

  1. It doesn't matter for the function the order of selection of the columns.
  2. For a date, you can write it as a string or with the DATE function DATE(2024,8,9)

#3: Amount of Sales greater than 20 for the North Region

This time, we will include in Sales criteria, the symbol greater to select all the sales greater than 20.

  • By default, when you write the name of your criteria, it's like if you write "=North"
  • So you can perferctly write any logical operator in your criteria
COUNTIFS with a logical operator greater than

Why Use COUNTIFS?

  • Automates filtering for large datasets.
  • Reduces errors from manual counting.
  • Saves time in multi-condition analysis.

Start using COUNTIFS to handle complex data analysis with ease!

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *