EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • All Courses
    • All Specializations
  • Blog
  • Enterprise
  • Free Courses
  • All Courses
  • All Specializations
  • Log in
  • Sign Up
Home Excel Excel Resources Statistical Functions in Excel COUNTIF with Multiple Criteria
 

COUNTIF with Multiple Criteria

Madhuri Thakur
Article byMadhuri Thakur

Updated August 23, 2023

COUNTIF with Multiple Criteria

 

 

COUNTIF Function with Multiple Criteria (Table of Contents)
  • COUNTIF with Multiple Criteria
  • COUNTIF Formula with Multiple Criteria
  • How to Use COUNTIF Function with Multiple Criteria?

COUNTIF with Multiple Criteria

Countif function in Excel is used to count the cell numbers in any given range and specifying the criteria. But what if we have multiple criteria to be counted in the same set of data. This can be done when we use one CountIf function with another one separated by a plus sign. Plus, sign this allows us to use multiple CountIf functions in any way. Also, we use multiple criteria in a single Countif function in curly brackets separated by commas.

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

There can be two ways to multiple counting:

  1. COUNTIF Function with multiple criteria in the same column.
  2. COUNTIF Function with multiple criteria in multiple columns.

COUNTIF Formula with Multiple Criteria

Below is the COUNTIF Formula :

COUNTIF Formula

The COUNTIF Formula has two arguments, i.e., range and criteria.

  • Range: The range of cells to count.
  • Criteria: This defines the condition that tells the function of which cells to count. It can be a number, text string, cell reference, or expression.

Here in this article, we will discuss the COUNTIF Function with multiple criteria in the same column.

As we know, the COUNTIF function is a built-in function in Excel that falls under the FORMULAS tab. Thus, the COUNTIF function can be entered in the cell-like below screenshot:

COUNTIF Function

How to Use COUNTIF Function with Multiple Criteria?

It is very simple and easy to use. Let us understand the working of the COUNTIF Function by some COUNTIF Formula examples.

You can download this COUNTIF with Multiple Criteria Template here – COUNTIF with Multiple Criteria Template

Example #1

We have given some product lists:

Product list

We need to find out the count of Laptop & Mobile. As these products are in the same column, hence we will use the COUNTIF function here.

We have given two conditions; hence the COUNTIF formula will apply as follows:

= COUNTIF(range, criteria1) + COUNTIF(range, criteria2) + …….

Please refer to the below screenshot:

COUNTIF with Multiple Criteria Example 1-2

Explanation:

  • Here, we will apply the condition one by one. First will take the range and 1st condition under the COUNTIF function. Again will take the same range and 2nd condition under the COUNTIF function and so on…
  • After applying all the given conditions, sum up all the results to find out the final conclusion.

The final result is:

Result of Example 1

Example #2

We have given some product details here. In this example, we will use a COUNTIF function between two numbers.

COUNTIF with Multiple Criteria Example 2-1

Here we will calculate the count of items greater than 12 and less than 30.

The COUNTIF formula will apply as follows:

=COUNTIF( $C$19:$C$30, “>12”) + COUNTIF($C$19:$C$30, “<30”)

Please refer to the below screenshot:

COUNTIF with Multiple Criteria Example 2-2

Explanation:

  • We pass the condition one by one and, in the end, sum all the results.

Hence the final result is:

Result of Example 2

Example #3

Let’s take the same product details again.

COUNTIF with Multiple Criteria Example 3-1

Here, we will calculate the sum of products sold out in the month of Jan, Feb & May.

We will apply the COUNTIF formula as follows:

=COUNTIF($D$40: $D$51, “Jan”) + COUNTIF( $D$40:$D$51,”Feb”) + COUNTIF( $D$40:$D$51, “May”)

COUNTIF with Multiple Criteria Example 3-2

Explanation:

  • First, we will select the range of cells from D40:D51 and pass 1st condition, “Jan.”
  • Second, we will again select the range of cells from D40:D51 and will pass the 2nd condition, “Feb.”
  • A third will again select the range of cells from D40:D51 and will pass the 3rd condition, “May.”
  • After passing all the conditions one by one, in the end, add all the results.

The Final Result is:

Result of Example 3

Things to Remember

  • First, analyze the problem and condition mentioned.
  • If the conditions are related to one specific column, we will apply the COUNTIF function in a single column, as discussed in the above article.
  • If conditions are related to multiple columns, we use the COUNTIFS function, which we will discuss later.

Recommended Articles

This has been a guide to COUNTIF with Multiple Criteria. Here we discuss the COUNTIF Formula with Multiple Criteria, how to use the COUNTIF Function, practical examples, and a downloadable Excel template. You can also go through our other suggested articles –

  1. COUNTIFS in Excel
  2. COUNTIF Examples in Excel
  3. COUNTIF Formula in Excel
  4. COUNTA Function in Excel
Primary Sidebar
Footer
Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

© 2025 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download COUNTIF with Multiple Criteria Template

EDUCBA Login

Forgot Password?

EDUCBA

Download COUNTIF with Multiple Criteria Template

EDUCBA

डाउनलोड COUNTIF with Multiple Criteria Template

🚀 Limited Time Offer! - 🎁 ENROLL NOW