EDUCBA

EDUCBA

MENUMENU
  • Explore
    • Lifetime Membership
    • All in One Bundles
    • Fresh Entries
    • Finance
    • Data Science
    • Programming and Dev
    • Excel
    • Marketing
    • HR
    • PDP
    • VFX and Design
    • Project Management
    • Exam Prep
    • All Courses
  • Blog
  • Enterprise
  • Free Courses
  • Login
Home Excel Excel Resources Statistical Functions in Excel COUNTIF Examples in Excel

COUNTIF Examples in Excel

Ashwani Jaiswal
Article byAshwani Jaiswal
Madhuri Thakur
Reviewed byMadhuri Thakur

Updated June 8, 2023

Countif Function Example in Excel

Excel COUNTIF Example (Table of Contents)

Start Your Free Excel Course

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

  • Excel COUNTIF Examples
  • Syntax of COUNTIF Example in Excel
  • How to implement Excel COUNTIF Examples?

Excel COUNTIF Examples

Excel COUNTIF Example counts the cells that meet certain criteria or conditions. It can count cells that match specific criteria with text, numbers or dates. By referring to some COUNTIF examples in Excel, you can understand the use and implantation of the COUNTIF Function.

Syntax of COUNTIF Example in Excel

The Syntax of the COUNTIF Function includes 2 parameters. Before we apply COUNTIF, first let’s see the syntax of the COUNTIF Function in Excel, as shown below;

Countif Function Example 1-2

Range = The range we must select from where we will get the count.

Criteria = Criteria should be any exact word or number we need to count.

The return value of COUNTIF in Excel is a positive number. The value can be zero or non-zero.

How to implement Excel COUNTIF Examples?

Using the COUNTIF Function in Excel is very easy. Let’s understand the working of the COUNTIF Function in Excel by the examples below.

You can download this Excel COUNTIF Example Template here – Excel COUNTIF Example Template

Excel COUNTIF Example – Illustration #1

The COUNTIF function in Excel is used for counting cell content in selected range data. The selected cells may contain numbers or text. Here we have a list of some products which are repeated multiple times. Now we need to check how many times a product gets repeated.

Countif Function Example 1-1

As we can see in the above screenshot. We have some product types, and besides that, we have chosen a cell for counting cells of a specific product type.

For applying the COUNTIF Function example, go to the cell where we need to see the output and type the “=” (Equal) sign to enable all the inbuilt functions of Excel. Now type COUNTIF and select it.

Range = Select the range as A2:A18.

Criteria = For text, let’s select the criteria as Mobile in inverted commas (“); it is a text.

As we see below the screenshot, how our applied COUNTIF final formula will look like. Blue colored cells are our range value, and in inverted commas, Mobile is our criteria to be calculated.

Countif Function Example 1-3

Once we press the Enter key, we will get the applied formula as shown below.

Countif Function Example 1-4

As we can see, the count of product type Mobile is coming as 5, which is also highlighted in yellow in the above screenshot.

We can test different criteria to check the correctness of the applied formula.

Excel COUNTIF Example – Illustration #2

There is one more method of applying the COUNTIF Function in Excel. For this, put the cursor on the cell where we need to apply COUNTIF and then go to the Formula menu tab and click on Insert Function, as shown in the below screenshot.

Countif Function Example 1-5

Once we click on it, we will get the Insert Function box with the Excel list of inbuilt functions, as shown below. From the tab, select a category, and choose All to get the list of all functions.

Or select a category

And from the Select a function box, select COUNTIF and click OK. Or type COUNTIF or a keyword related to this and find related functions in the Search for a function box.

Insert Function

After that, we will see the function argument box, where we need to select the same range as we did in Illustration #1 but with different criteria as Desktop and click on OK.

Criteria

If the formula is correct, we will see it resulting in the Function arguments box, as highlighted. After that, we will get the result in the output cell, as shown below.

Output Result

As we can see in the above screenshot, the Desktop count is 4. Which are also highlighted in yellow color in the above screenshot?

For this process also, we can test different criteria to check the correctness of the applied formula.

This is how the COUNTIF function is used to calculate the numbers or words that are repeated multiple times. This is quite helpful where the data is so huge that we cannot apply filters.

Excel COUNTIF Example – Illustration #3

Let’s see one more example of the COUNTIF Function in Excel. We have a list of some students where student marks of Subject X and Subject Y are mentioned in columns B and C. Now with the help of the COUNTIF Function Example, we will see how many students got 19 Marks out of 20.

Student's Data

For this, go to the cell where we need to see the output. Type = (Equal) sign and search for the COUNTIF function and select it as shown below.

Countif Function

Now select the range. Here, as we have two columns where we can count the values, we will select columns B and C from cell B2 to B6. By this, we will be covering the B2 to C6 cell range. For the criteria, type 19 in inverted commas, as shown below.

Formula in Cell

After that, press the Enter key to apply the formula, as shown below.

Applying the Formula

As we can see in the above screenshot, the COUNTIF function counted that only 2 students got marks that are 19 in any subject.

Here, by applying COUNTIF functions where the range is more than one column, the function checks the criteria in the selected range and gives the result. As per the above marks, Kane and Reema are students who got 19 marks in one of the subjects. There could be cases where we could get 19 marks against a single entry irrespective of the range selected, but the output will be the combined result of data available in the complete selected range.

Things to Remember

  • The second parameter in the formula “Criteria” is case-insensitive.
  • As a result, only the values that meet the criteria will be returned.
  • If the wildcard characters are to be used as they are in the criteria, the tilde operator must precede them, i.e., ‘~? ‘, ‘*’.

Recommended Articles

This has been a guide to Examples of the COUNTIF Function in Excel. Here we discuss how to use COUNTIF Example in Excel, practical illustrations, and a downloadable Excel template. You can also go through our other suggested articles –

  1. COUNTIF with Multiple Criteria
  2. COUNTIFS in Excel
  3. COUNTIF Examples in Excel
  4. COUNTIF Formula in Excel
ADVERTISEMENT
All in One Excel VBA Bundle
500+ Hours of HD Videos
15 Learning Paths
120+ Courses
Verifiable Certificate of Completion
Lifetime Access
ADVERTISEMENT
Financial Analyst Masters Training Program
2000+ Hours of HD Videos
43 Learning Paths
550+ Courses
Verifiable Certificate of Completion
Lifetime Access
ADVERTISEMENT
All in One Data Science Bundle
2000+ Hour of HD Videos
80 Learning Paths
400+ Courses
Verifiable Certificate of Completion
Lifetime Access
ADVERTISEMENT
All in One Software Development Bundle
5000+ Hours of HD Videos
149 Learning Paths
1050+ Courses
Verifiable Certificate of Completion
Lifetime Access
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

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

EDUCBA

Download Excel COUNTIF Example Template

EDUCBA

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

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

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

*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 Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download Excel COUNTIF Example Template

EDUCBA

डाउनलोड Excel COUNTIF Example Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

🚀 Extended Cyber Monday Price Drop! All in One Universal Bundle (3700+ Courses) @ 🎁 90% OFF - Ends in ENROLL NOW