Excel Tutorial
Excel tutorials, quizzes & AI guides — all levels
RSS
  • Online Excel Exercises
  • Training
  • Excel Tests
  • Sitemap
  • Premium Quizzes
  • Shop
  • My account

COUNTIFS Function: Mastering Multi-Criteria Counting

Conditional
Reading time: 2 minutes
Views: 60,049

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

  • The COUNTIF Function in Excel
  • GROUPBY function: The future of COUNTIF SUMIF
  • Test Your Skills with COUNTIF and COUNTIFS
  • Wildcard with COUNTIFS or SUMIFS

Frédéric LE GUEN

COUNTIF, COUNTIFS

Leave a Reply Cancel reply

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

Most Viewed Posts

  • Displaying Negative Numbers in Parentheses in Excel (310,065)
  • Top 10 Excel Functions You Must Know (232,001)
  • How to make automatic calendar in Excel (212,775)
  • Dash for a zero in Excel automatically (190,812)
  • Converting a Date from YYYYMMDD to DD/MM/YYYY in Excel (171,033)
image excel exercises
Excel Exercises
image excel quizzes
Excel Quizzes

COUNTIFS Function: Mastering Multi-Criteria Counting

Reading time: 2 minutes
Views: 60,049

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

  • The COUNTIF Function in Excel
  • GROUPBY function: The future of COUNTIF SUMIF
  • Test Your Skills with COUNTIF and COUNTIFS
  • Wildcard with COUNTIFS or SUMIFS
Tags: COUNTIFCOUNTIFS

Frédéric LE GUEN

Leave a Reply Cancel reply

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

Contact us
About me 
Privacy Policy

© 2022 – 2026 – excel-tutorial.com. All Rights Reserved.
Excel Tutorial is managed by majordome du net

Contact us
About me 
Privacy Policy

© 2022 – 2026 – excel-tutorial.com. All Rights Reserved.
Excel Tutorial is managed by majordome du net