ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. COUNT vs COUNTIF in Excel

COUNT vs COUNTIF in Excel

By ExcelReady Team·Updated November 2, 2026·7 min read

The short answer

COUNT counts how many cells in a range contain numbers, with no condition: =COUNT(C2:C9). COUNTIF counts how many cells meet one condition you set, and works with text, numbers and dates: =COUNTIF(D2:D9,"Pass") or =COUNTIF(C2:C9,">=70"). Use COUNT to check how many values are filled in, and COUNTIF to answer "how many are...?"

Key takeaways

  • COUNT counts cells that hold numbers or dates. It ignores text, blanks and errors.
  • COUNTIF counts cells that match one condition, such as "Pass", 5 or ">=70".
  • COUNT on a column of text always returns 0. Use COUNTA or COUNTIF instead.
  • COUNT accepts many ranges; COUNTIF takes one range and one condition.
  • For two or more conditions, move up to COUNTIFS.
On this page+
  1. COUNT vs COUNTIF at a glance
  2. How COUNT works
  3. How COUNTIF works
  4. The same data counted both ways
  5. When to use COUNT
  6. When to use COUNTIF
  7. Common mistakes with COUNT and COUNTIF
  8. Our recommendation
  9. Practise it

The short answer to COUNT vs COUNTIF: COUNT tells you how many cells contain numbers, and COUNTIF tells you how many cells meet a condition you set. COUNT has no condition at all, while COUNTIF works with text, numbers and dates. This guide compares them side by side on one table, for anyone choosing between them in a report or a job test.

COUNT vs COUNTIF at a glance#

COUNT answers "how many numbers are there?". COUNTIF answers "how many cells match this?".

FeatureCOUNTCOUNTIF
Syntax=COUNT(value1, [value2], ...)=COUNTIF(range, criteria)
What it countsCells that contain numbers or datesCells that meet one condition
ConditionNoneOne (text, number, comparison or cell)
Counts text cells?NoYes, if they match the criteria
Counts blank cells?NoOnly if the criteria is ""
Number of rangesUp to 255One
Wildcards (*, ?)NoYes
Case-sensitive?Not relevantNo
Excel versionsAllAll

Both functions belong to a family. COUNTA counts every filled cell, COUNTBLANK counts empty cells, and COUNTIFS counts with several conditions.

How COUNT works#

COUNT looks at each cell and counts the ones that hold a number. Dates and times count too, because Excel stores them as numbers. Text, empty cells, errors and TRUE or FALSE in a range are ignored.

Excel formula
=COUNT(C2:C9)

You can give COUNT several ranges at once, such as =COUNT(C2:C9,F2:F9), and it adds the counts together. The COUNT function guide has the full rules, including how it treats values typed straight into the formula.

COUNT is a quick data check. If a column should be all numbers and COUNT is lower than the number of rows, something is missing or stored as text.

How COUNTIF works#

COUNTIF checks each cell in one range against a condition, called the criteria, and counts the matches. The criteria can be text, a number, a comparison or a cell reference:

Excel formula
=COUNTIF(D2:D9,"Pass")
=COUNTIF(C2:C9,">=70")

Text and operators go in double quotes. Numbers and cell references don't need them. COUNTIF ignores capital letters, and it accepts wildcards: * matches any number of characters and ? matches one. The COUNTIF function guide lists every criteria type.

The same data counted both ways#

Here is a small table of test results. Chen was absent, so his score is the word "Absent", and Eli's score is blank:

ABCD
1CandidateDeptScoreResult
2AnaSales82Pass
3BenHR64Fail
4ChenSalesAbsent
5DinaFinance91Pass
6EliHR
7FatimaSales73Pass
8GoranFinance58Fail
9HanaHR88Pass

Task 1: how many candidates have a score?#

COUNT gives the answer directly:

Excel formula
=COUNT(C2:C9)

The result is 6. The word "Absent" and the blank cell are not numbers, so COUNT skips them. COUNTA would return 7, because it counts "Absent" as a filled cell. The COUNT and COUNTA lesson practises the difference.

Task 2: how many scored 70 or more?#

COUNT can't do this, because it has no condition. COUNTIF can:

Excel formula
=COUNTIF(C2:C9,">=70")

The result is 4 (82, 91, 73 and 88). COUNTIF only compares numbers with ">=70", so "Absent" and the blank are left out.

Task 3: how many passed?#

The Result column is text, so COUNT returns 0:

Excel formula
=COUNT(D2:D9)

COUNTIF counts the word:

Excel formula
=COUNTIF(D2:D9,"Pass")

The result is 4 (Ana, Dina, Fatima and Hana).

Task 4: how many cells are filled, or have any text?#

COUNTIF can mimic other counting functions. =COUNTIF(C2:C9,"<>") counts non-empty cells: 7, the same as COUNTA. =COUNTIF(C2:C9,"*") counts only text cells: 1, the word "Absent". For more on these two patterns, see counting cells with text and COUNTIF not blank.

When to use COUNT#

Use COUNT when you need the number of numeric values and there is no condition. It fits well when:

  • You check that data is complete. If 8 people took the test and =COUNT(C2:C9) returns 6, two scores are missing or not numbers.
  • You find numbers stored as text. Compare COUNT with COUNTA on a column of amounts. If COUNTA is higher, some "numbers" are text.
  • You count dates. =COUNT(A2:A100) on a date column counts real dates and skips text like "TBC".
  • You count across several ranges at once, such as =COUNT(C2:C9,F2:F9).
  • You need an average by hand. SUM divided by COUNT gives the same result as AVERAGE, which is a common test question.

When to use COUNTIF#

Use COUNTIF whenever the question has a condition: "how many are...?", "how many over...?", "how many not...?". It is the better choice when:

  • You count a word or category, such as Pass, HR or Open.
  • You count numbers in a band, such as scores of 70 or more: ">=70".
  • You exclude something, such as everyone except HR: =COUNTIF(B2:B9,"<>HR") returns 5.
  • You count partial text with wildcards, such as every code starting with "INV": "INV*".
  • You count blanks or non-blanks in a specific way, with "" or "<>".
  • You check duplicates, for example =COUNTIF($A$2:$A$9,A2)>1; see how to count duplicates.

When the question has two conditions, such as HR candidates who scored 60 or more, use COUNTIFS: =COUNTIFS(B2:B9,"HR",C2:C9,">=60") returns 2 (Ben and Hana). The comparison of COUNTIF vs COUNTIFS explains when to switch. And if you need to add up values rather than count them, see SUMIF vs COUNTIF.

Common mistakes with COUNT and COUNTIF#

These are the slips that most often give wrong counts:

  1. Using COUNT on text. =COUNT(D2:D9) on Pass and Fail returns 0. Use COUNTIF for a word, or COUNTA for any filled cell.
  2. Trying to give COUNT a condition. =COUNT(D2:D9,"Pass") doesn't count passes. COUNT treats "Pass" as another value, and because it isn't a number, the result is still the count of numbers in D2:D9: 0.
  3. Numbers stored as text. Imported scores that are text are skipped by COUNT and by numeric criteria like ">=70". Convert them with VALUE or Data > Text to Columns.
  4. Leaving the operator outside the quotes. Write ">=70", not >=70. And to use a cell, join it with &: ">="&G1.
  5. Expecting COUNT to count blanks. It never does. Use COUNTBLANK or =COUNTIF(C2:C9,"").
  6. Giving COUNTIF two ranges. =COUNTIF(B2:B9,"HR",C2:C9,">=60") won't go in: Excel shows a "too many arguments" message. Use COUNTIFS.

Our recommendation#

Learn both, because they answer different questions and job tests ask for both. Use COUNT for a quick check of how many numeric values a range holds, and to spot missing or text numbers. Use COUNTIF whenever the question includes a condition, which is most real counting questions in reports.

In short: no condition and numbers only, COUNT; any condition, COUNTIF; two or more conditions, COUNTIFS.

Practise it#

Try the exercise on this page: it counts the scores of 70 or more, which COUNT can't do. Then practise COUNT, COUNTA and COUNTBLANK in a live spreadsheet, where each formula is checked instantly, and move on to the COUNTIF lesson to count words, number bands and cell-based criteria. To see where your counting skills stand overall, take the Excel level test.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

How many candidates scored 70 or more? Click G2 and use COUNTIF on the Score column (C2:C9), then press Enter.

fx
ABCDEFGH
1
Candidate
Dept
Score
Result
2
Ana
Sales
82
Pass
Score 70+
3
Ben
HR
64
Fail
4
Chen
Sales
Absent
5
Dina
Finance
91
Pass
6
Eli
HR
7
Fatima
Sales
73
Pass
8
Goran
Finance
58
Fail
9
Hana
HR
88
Pass
10
11
12

Tip: The range comes first, then the condition in double quotes, with the operator touching the number: ">=70".

Practise this in a lesson

LessonCOUNT, COUNTA and COUNTBLANKCount numbers, filled cells and empty cells, a quick way to audit data.LessonCOUNTIFCount the cells that match a condition, from exact words to number checks like ">=8".Function guideCOUNTCount cells that hold numbers or dates with Excel's COUNT. See what it skips, how it differs from COUNTA, then try a live exercise.Function guideCOUNTIFCount cells that match one condition with COUNTIF: text, numbers, wildcards and cell references. Real examples and a live exercise.

Frequently asked questions

What is the difference between COUNT and COUNTIF in Excel?

+

COUNT counts cells that contain numbers, with no condition. COUNTIF counts cells that meet a condition you choose, such as a word, a number or a comparison like ">=70", and it works on text as well as numbers.

Why does COUNT return 0?

+

COUNT only counts numbers. If the range holds text, such as names or Yes and No, or numbers stored as text, COUNT returns 0. Use COUNTA to count filled cells or COUNTIF to count a specific word.

Can COUNT have a condition?

+

No. COUNT has no criteria argument. To count numbers that meet a condition, use COUNTIF, for example =COUNTIF(C2:C9,">=70").

Does COUNT count dates?

+

Yes. Excel stores dates as numbers, so COUNT counts real dates. Dates stored as text are not counted.

Should I use COUNTIF or COUNTIFS?

+

Use COUNTIF for one condition and COUNTIFS for two or more. COUNTIFS also works with a single condition, but its arguments come in range and criteria pairs.

Sources

  • COUNT function - Microsoft Support
  • COUNTIF function - Microsoft Support
  • COUNTIFS function - Microsoft Support

Written and checked by the ExcelReady Team. First published November 2, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. COUNT vs COUNTIF at a glance
  2. How COUNT works
  3. How COUNTIF works
  4. The same data counted both ways
  5. When to use COUNT
  6. When to use COUNTIF
  7. Common mistakes with COUNT and COUNTIF
  8. Our recommendation
  9. Practise it

Keep reading

Conditional math· 6 min read

How to Count Cells With Text in Excel

To count cells that contain text in Excel, use COUNTIF with an asterisk: =COUNTIF(B2:B8,"*"). The * wildcard matches any text, so numbers, dates and blank cells are not counted. COUNTA is different: it counts every cell that isn't empty, numbers included. To count one specific word, put it in quotes: =COUNTIF(B2:B8,"Yes").

Conditional math· 6 min read

Count Non-Blank Cells With a Condition in Excel

To count cells that are not blank, use =COUNTIF(C2:C8,"<>"), where "<>" means "not equal to nothing". To add a condition, use COUNTIFS: =COUNTIFS(B2:B8,"Sales",D2:D8,"<>") counts Sales rows whose column D is filled in. Use "" instead of "<>" to count the blank ones. COUNTA also counts non-blank cells, but takes no condition.

Comparisons· 7 min read

COUNTIF vs COUNTIFS: What's the Difference?

COUNTIF counts cells that meet one condition, such as tickets marked Open. COUNTIFS counts rows that meet several conditions at once, such as Open tickets with High priority, and every condition must be true. COUNTIFS with one pair works exactly like COUNTIF, so many people simply use COUNTIFS for everything.

More on comparisons

  • COUNTIFS vs SUMPRODUCT for Counting With Conditions
  • CSV vs XLSX: Which File Format to Use
  • DATE vs DATEVALUE in Excel
  • DATEDIF vs YEARFRAC: Ages and Years Between Dates
  • DAYS vs DATEDIF vs Subtracting Dates in Excel
  • EDATE vs EOMONTH: Adding Months the Right Way
All comparisons articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free