ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

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

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Math
  3. COUNT, COUNTA and COUNTBLANK: Counting Cells in Excel

COUNT, COUNTA and COUNTBLANK: Counting Cells in Excel

By ExcelReady Team·Updated October 30, 2026·6 min read

The short answer

The Excel COUNT function counts cells that contain numbers, such as =COUNT(B2:B7). COUNTA counts every cell that isn't empty, numbers and text alike, and COUNTBLANK counts the empty cells. Use =COUNTA(B2:B7)-COUNT(B2:B7) to find values that are filled in but aren't real numbers.

Key takeaways

  • COUNT counts numbers only, including dates; it skips text and blanks.
  • COUNTA counts every non-empty cell: numbers, text, errors and formulas.
  • COUNTBLANK counts empty cells, and also cells whose formula returns empty text ("").
  • =COUNTA(range)-COUNT(range) finds text in a column that should hold numbers.
  • To count cells that meet a condition, use COUNTIF or COUNTIFS instead.
On this page+
  1. What do COUNT, COUNTA and COUNTBLANK count?
  2. A worked example: checking applicant data
  3. How to use the Excel COUNT function
  4. How to use COUNTA
  5. How to use COUNTBLANK
  6. Find text hiding in a number column
  7. When to use COUNTIF instead
  8. Common counting mistakes
  9. Practise it

The Excel COUNT function counts cells that hold numbers. Its two partners count other things: COUNTA counts every filled cell, and COUNTBLANK counts the empty ones. Together they are the fastest way to check a list before you trust it, which is exactly what employers want to see in a data test.

What do COUNT, COUNTA and COUNTBLANK count?#

Each function counts a different kind of cell. They all take a range and return a number.

FunctionSyntaxCountsSkips
COUNT=COUNT(value1, [value2], ...)Numbers and datesText, blanks, TRUE/FALSE in cells
COUNTA=COUNTA(value1, [value2], ...)Any cell that isn't emptyTruly empty cells only
COUNTBLANK=COUNTBLANK(range)Empty cells, and formulas that return ""Everything with a value

COUNT and COUNTA accept several ranges separated by commas. COUNTBLANK takes a single range. For a side-by-side comparison of all three, read COUNT vs COUNTA vs COUNTBLANK.

What each function counts: the tricky cases#

The table shows how each function treats contents that often cause confusion. "Yes" means the cell is counted.

Cell containsCOUNTCOUNTACOUNTBLANK
A number, such as 42YesYesNo
Zero (0)YesYesNo
A dateYesYesNo
A number stored as text, such as '42NoYesNo
A single spaceNoYesNo
A formula that returns ""NoYesYes
An error, such as #N/ANoYesNo
Nothing at allNoNoYes

Zero is a number, so it is never "blank". If you see a 0 in a list of scores, COUNTBLANK won't flag it.

A worked example: checking applicant data#

Here is a list of job applicants. One score was typed as a word, one is missing, and one status is missing.

ABC
1ApplicantTest scoreStatus
2J. Okafor88Interview
3M. SilvaabsentPending
4H. Lee72
5P. Novak91Interview
6D. HaddadRejected
7S. Ito67Pending
QuestionFormulaResult
Scores recorded as numbers=COUNT(B2:B7)4
Score cells filled in=COUNTA(B2:B7)5
Statuses entered=COUNTA(C2:C7)5
Missing statuses=COUNTBLANK(C2:C7)1
Scores that need fixing=COUNTA(B2:B7)-COUNT(B2:B7)1

COUNT gives 4 because "absent" is text. COUNTA gives 5 because "absent" is still something. Start each range at row 2, so the header isn't counted.

How to use the Excel COUNT function#

COUNT tells you how many cells in a range hold real numbers. Type =COUNT(, select the range, type ) and press Enter.

Use it when the column should contain only numbers: amounts, scores, quantities or dates. Excel stores dates as numbers, so COUNT includes them. (Learn why in why Excel stores dates as numbers.)

COUNT is also how you spot numbers stored as text. These look like numbers, but Excel treats them as words, often after copying from another system. If a column has six amounts and COUNT returns 5, one of them is text. SUM and AVERAGE skip it too, so your totals are quietly wrong.

How to use COUNTA#

COUNTA counts every cell that isn't empty, whatever it contains. Use it on text columns such as names, statuses or email addresses, where COUNT would return 0.

COUNTA counts more than you might expect:

  • Text and numbers, including a single space typed by mistake.
  • Error values such as #N/A.
  • Formulas that return empty text, like =IF(B2>80,"Pass",""). The cell looks blank, but it contains a formula, so COUNTA counts it.

If COUNTA seems too high, look for these "invisible" values. The COUNTA function guide has more examples.

How to use COUNTBLANK#

COUNTBLANK counts the empty cells in one range. =COUNTBLANK(C2:C7) returns 1, the missing status for H. Lee.

COUNTBLANK and COUNTA don't always add up to the number of rows. A formula that returns "" is counted by both: COUNTA sees a formula, and COUNTBLANK sees an empty result. A cell with a space is counted only by COUNTA.

A useful follow-up is a completion rate: what share of the rows are filled in.

Excel formula
=COUNTA(C2:C7)/ROWS(C2:C7)

ROWS returns how many rows the range has (6), so the result is 5 ÷ 6 = 0.833, or 83% once you format the cell as a percentage. The same idea is behind the percent change formula: one number divided by another, shown as a percent. To display a clean 83% instead of 83.3333%, see how to round numbers in Excel.

Find text hiding in a number column#

Subtract COUNT from COUNTA on the same range. The difference is the number of filled cells that aren't numbers.

Excel formula
=COUNTA(B2:B7)-COUNT(B2:B7)

On the applicant data this returns 1: M. Silva's "absent". On a clean column it returns 0. This one-line check works on any list of amounts, and it catches numbers stored as text before they break a total. If you copy the check across several columns, keep each range relative, or lock it with $ signs when it must stay fixed. Absolute references and the $ sign explains how.

When to use COUNTIF instead#

COUNT, COUNTA and COUNTBLANK count by type of content. They can't count by condition, such as "status is Interview" or "score above 80". For that, use COUNTIF with one condition or COUNTIFS with several:

Excel formula
=COUNTIF(C2:C7,"Interview")

This returns 2. Learn the criteria rules in how to use COUNTIF in Excel.

Common counting mistakes#

  • Using COUNT on text. =COUNT(C2:C7) on the status column returns 0. Text needs COUNTA.
  • Including the header row. =COUNTA(B1:B7) counts "Test score" as a value and returns 6.
  • Trusting a blank-looking cell. Spaces and "" formulas look empty but count in COUNTA.
  • Confusing COUNT with SUM. COUNT tells you how many numbers there are, not what they add up to.

Practise it#

Practise COUNT, COUNTA and COUNTBLANK in a live spreadsheet: you'll audit the applicant list above, count missing statuses and build the text check in one formula. Then try the survey exercise on this page.

Try it yourself

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

Some survey replies are missing. In D2, type =COUNTBLANK(B2:B8) and press Enter.

fx
ABCDE
1
Respondent
Rating (1-5)
Missing ratings
2
R-01
4
3
R-02
4
R-03
5
5
R-04
3
6
R-05
7
R-06
4
8
R-07
2
9
10
11

Tip: COUNTBLANK takes one range. Use the ratings column from row 2 to row 8.

Practise this in a lesson

LessonCOUNT, COUNTA and COUNTBLANKCount numbers, filled cells and empty cells, a quick way to audit data.Function guideCOUNTAUse COUNTA to count non-empty cells in Excel. Learn how it differs from COUNT, what it secretly counts, and try a live exercise.

Frequently asked questions

What is the difference between COUNT and COUNTA?

+

COUNT counts only cells that hold numbers. COUNTA counts every cell that isn't empty, so it includes text as well as numbers.

Why does COUNT return 0 when my cells have numbers?

+

The numbers are probably stored as text, for example after an import. COUNT skips text. Convert the cells to real numbers and COUNT includes them.

Does COUNTA count cells with spaces?

+

Yes. A cell with a space looks empty but isn't, so COUNTA counts it and COUNTBLANK doesn't. Clear the cell or use TRIM to clean the data.

How do I count cells with specific text in Excel?

+

Use COUNTIF, for example =COUNTIF(C2:C7,"Interview"). COUNT, COUNTA and COUNTBLANK can't take a condition.

Does COUNT include dates?

+

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

Sources

  • COUNT function - Microsoft Support
  • COUNTA function - Microsoft Support
  • COUNTBLANK function - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 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. What do COUNT, COUNTA and COUNTBLANK count?
  2. A worked example: checking applicant data
  3. How to use the Excel COUNT function
  4. How to use COUNTA
  5. How to use COUNTBLANK
  6. Find text hiding in a number column
  7. When to use COUNTIF instead
  8. Common counting mistakes
  9. Practise it

Keep reading

Math· 6 min read

How to Round Numbers in Excel (ROUND, ROUNDUP, ROUNDDOWN)

Use =ROUND(number, digits) to round to a set number of decimal places, so =ROUND(B2,2) turns 3.4567 into 3.46. ROUNDUP always rounds away from zero and ROUNDDOWN always rounds towards zero, using the same two arguments. Unlike number formatting, these functions change the stored value that later formulas use.

Math· 6 min read

Percent Change Formula in Excel (With Examples)

The percent change formula in Excel is =(new-old)/old. If last year's sales are in B2 and this year's in C2, type =(C2-B2)/B2, then press Ctrl+Shift+% to show it as a percentage. A positive result is an increase and a negative result is a decrease. Always divide by the old value.

Math· 6 min read

Absolute References and the $ Sign in Excel

An Excel absolute reference uses dollar signs, like $F$1, to lock a cell so it doesn't change when you copy or fill a formula. Use it for a value every row shares, such as a tax rate: =B2*(1+$F$1). Press F4 while editing to add the $ signs. $F1 locks only the column; F$1 locks only the row.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free