Syntax: one or more ranges
All three take ranges and add up the matching cells:
=COUNT(value1, [value2], …) · =COUNTA(value1, [value2], …) · =COUNTBLANK(range)
COUNT and COUNTA accept up to 255 arguments, so =COUNT(B2:B11,D2:D11) counts both columns together. COUNTBLANK takes a single range. None of them has a condition argument; for "count the cells that are greater than 100" or "count the rows for region North" use COUNTIF or COUNTIFS, described in COUNTIFS with multiple criteria.
What each function sees, cell type by cell type
The example classifies every cell in column B with ISBLANK, ISNUMBER, ISLOGICAL and ISTEXT and shows a 1 or 0 for each function. Row by row:
Numbers, including 0, are counted by COUNT and COUNTA. A zero is a real value, not a blank. Dates are numbers to Excel, so 14 March 2026 counts in COUNT as well. Text such as "n/a" counts only in COUNTA. A number stored as text, here typed as '120 with a leading apostrophe or imported from a system that exports text, looks like 120 but is text, so COUNT skips it. This is the most common reason why COUNT is lower than expected.
Logical values (TRUE, FALSE) in a range are ignored by COUNT and counted by COUNTA. Typed directly as an argument, =COUNT(TRUE) returns 1, one of the few places where the two forms differ. Error values such as #N/A are counted by COUNTA and ignored by COUNT.
Truly empty cells count only in COUNTBLANK. The tricky one is a formula returning "", often from =IF(A2="","",A2*B2). It looks empty, but it contains a formula, so COUNTA counts it, and its value is empty text, so COUNTBLANK counts it too. A cell holding only a space is not blank either: COUNTA counts it and COUNTBLANK does not.
Step by step: a completeness check
Data quality checks usually ask what share of a column is filled. Start with the size of the range: =ROWS(B2:B11) = 10. COUNTA says 8 cells are not empty, but that includes the ="" cell, so 80% would overstate the completeness.
A cleaner test is the length of each value: =SUMPRODUCT(--(LEN(B2:B11)>0)) counts cells whose content has at least one character. It returns 7, because the ="" cell has length 0, so completeness is 7 ÷ 10 = 70%. The double minus turns TRUE and FALSE into 1 and 0 so that SUMPRODUCT can add them.
Completeness is not the same as usability. For an amount column only real numbers can be summed, and =COUNT(B2:B11)/ROWS(B2:B11) shows that only 40% of the rows have one. The gap, =COUNTA(B2:B11)-COUNT(B2:B11) = 4 entries, is the list of cells to fix: the text '120, "n/a", the TRUE and the empty-text formula. Convert text numbers with VALUE, replace placeholders such as "n/a" with empty cells, and decide whether 0 is a real amount or a missing one.
Worked example: ten order amounts through COUNT, COUNTA and COUNTBLANK
Column B holds ten typical entries from an order list (yellow, row 8 is a formula). Columns D to F show which function counts each cell; the block below applies the functions to the whole range.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Entry | Amount cell | What Excel sees | COUNT | COUNTA | COUNTBLANK |
| 2 | Order 1001: number | 120.00 | number | 1 | 1 | 0 |
| 3 | Order 1002: zero | 0.00 | number | 1 | 1 | 0 |
| 4 | Order 1003: left empty | empty | 0 | 0 | 1 | |
| 5 | Order 1004: typed as '120 (text) | '120 | text | 0 | 1 | 0 |
| 6 | Order 1005: n/a | n/a | text | 0 | 1 | 0 |
| 7 | Order 1006: a date | 14 Mar 2026 | number | 1 | 1 | 0 |
| 8 | Order 1007: formula ="" (looks empty) | empty text | 0 | 1 | 1 | |
| 9 | Order 1008: TRUE | TRUE | logical | 0 | 1 | 0 |
| 10 | Order 1009: number | 45.50 | number | 1 | 1 | 0 |
| 11 | Order 1010: left empty | empty | 0 | 0 | 1 | |
| 12 | Column totals, row by row | 4 | 8 | 3 | ||
| 13 | ||||||
| 14 | The functions on B2:B11 | Result | ||||
| 15 | COUNT: cells with numbers (dates included) | 4 | ||||
| 16 | COUNTA: cells that are not empty | 8 | ||||
| 17 | COUNTBLANK: empty cells and empty text | 3 | ||||
| 18 | ROWS: size of the range | 10 | ||||
| 19 | COUNTA + COUNTBLANK (the ="" cell is counted twice) | 11 | ||||
| 20 | Non-numeric entries: COUNTA − COUNT | 4 | ||||
| 21 | Text cells: SUMPRODUCT(--ISTEXT(…)) | 3 | ||||
| 22 | Really filled: SUMPRODUCT(--(LEN(…)>0)) | 7 | ||||
| 23 | Completeness: really filled ÷ rows | 70% | ||||
| 24 | Share of usable amounts: COUNT ÷ rows | 40% | ||||
- C8
=IFS(ISBLANK(B8),"empty",ISNUMBER(B8),"number",ISLOGICAL(B8),"logical",B8="","empty text",TRUE,"text")Classify a cell - F15
=COUNT(B2:B11)Numbers and dates - F16
=COUNTA(B2:B11)Non-empty cells - F17
=COUNTBLANK(B2:B11)Empty cells and empty text - F19
=COUNTA(B2:B11)+COUNTBLANK(B2:B11)More than the 10 rows - F22
=SUMPRODUCT(--(LEN(B2:B11)>0))Really filled cells - F23
=SUMPRODUCT(--(LEN(B2:B11)>0))/ROWS(B2:B11)Completeness
Fictional order data. The counting rules are the same in Excel, Google Sheets and LibreOffice for these examples.
Variants and alternatives
Count text cells only: =SUMPRODUCT(--ISTEXT(B2:B11)) returns 3 here (the text number, "n/a" and the empty text). Count non-blank cells with a condition: COUNTIFS with the condition you need, for example =COUNTIFS(B2:B11,">0") for positive amounts, which ignores text automatically.
Count visible rows only: after filtering, COUNT and COUNTA still count the hidden rows. =SUBTOTAL(102,B2:B11) is COUNT and =SUBTOTAL(103,B2:B11) is COUNTA for visible cells only. Count unique values: =COUNTA(UNIQUE(B2:B11)) in Excel 365.
Find the cells behind the numbers: a helper column like the "What Excel sees" column in the example, built from ISBLANK, ISNUMBER, ISLOGICAL and ISTEXT, makes every difference between the three functions visible and is quick to filter on.
Which one to use
Use COUNT when the question is "how many usable numbers or dates are there", for example before averaging or summing. Use COUNTA to count entries of any kind, such as names in a list or responses to a free-text question. Use COUNTBLANK to find gaps, remembering that it also counts formulas returning "". When the exact meaning of "filled" matters, as in a data-quality report, count with LEN(…)>0 and say in the report what you counted.
Common mistakes
- Using COUNT to count names or text. COUNT only sees numbers, so a list of names returns 0. Use COUNTA.
- Treating COUNTA as "filled in". Formulas returning "" and cells with a single space are counted. Use LEN(…)>0 when it matters.
- Expecting COUNTA + COUNTBLANK to equal the number of rows. Empty-text formulas are counted by both, so the sum can be higher.
- Missing numbers stored as text. Imported values that look like numbers may be text, and COUNT skips them. Check with ISNUMBER and convert with VALUE.
- Counting zeros as blanks. 0 is a number: COUNT counts it and COUNTBLANK does not. Decide whether a zero means "nothing" before reporting completeness.
- Counting after a filter. COUNT and COUNTA include hidden rows. Use SUBTOTAL(102,…) or SUBTOTAL(103,…) for visible rows only.
Frequently asked questions
What is the difference between COUNT and COUNTA in Excel?
COUNT counts only cells that contain numbers, including dates. COUNTA counts every cell that is not empty, including text, logical values, errors and formulas that return an empty string.
Does COUNTBLANK count cells with formulas?
Yes, if the formula returns an empty string (""). Such a cell is counted by COUNTBLANK and by COUNTA at the same time. A formula returning 0 is not blank.
Why does COUNT return 0 when my cells have numbers?
The numbers are probably stored as text, for example after an import. Check with ISNUMBER, then convert them with VALUE or Text to Columns.
How do I count non-empty cells in Excel?
Use =COUNTA(range). If cells with formulas returning "" should not count, use =SUMPRODUCT(--(LEN(range)>0)) instead.
Does COUNT include dates?
Yes. Excel stores dates as serial numbers, so COUNT counts them like any other number.