Excel COUNT function: counting cells with numbers, with examples
COUNT counts only numbers and dates: who took the test, days with sales, and how to spot numbers stored as text together with COUNTA — examples and traps.
COUNT doesn’t add numbers — it counts how many cells in a range contain a number. For example: how many students took the test and got a score, on how many days of the month there were sales, how many orders have a delivery date.
The key rule: COUNT sees only numbers. Names, text like “absent”, empty cells and TRUE/FALSE are not counted. Dates and times are numbers to Excel, so they are counted.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Score | ||
| 2 | Aziz | 85 | ||
| 3 | Dilnoza | 92 | ||
| 4 | Javohir | absent | ||
| 5 | Malika | 74 | ||
| 6 | Sardor | |||
| 7 | Nodira | 68 | ||
| 8 | Took test | 4 | ||
| 9 |
=СЧЁТ(B2:B7) = 4: “absent” (text) and the empty B6 are not counted — only cells with a scoreSyntax
=СЧЁТ(value1; [value2]; ...)
- value1 — required: a cell, a range or a value.
- value2, ... — optional: up to 254 more ranges or values, separated by commas.
Counted: numbers, dates, times, formulas that return a number, including 0.
Not counted: text (including number-like text such as “15000”), empty cells, TRUE/FALSE, errors (#N/A, #DIV/0!).
A subtle point: values typed straight into the arguments follow a different rule — =СЧЁТ(5;"7";ИСТИНА) returns 3. Inside a range, the text “7” and TRUE are not counted.
Example
Formula:
=COUNT(B2:B5)→ result: 3 — days with sales (“day off” is not counted)
Entering COUNT
1
Select the result cell (B8). On the Главная tab click the small arrow next to Автосумма and choose Count Numbers.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Score | ||
| 2 | Aziz | 85 | ||
| 3 | Dilnoza | 92 | ||
| 4 | Javohir | absent | ||
| 5 | Malika | 74 | ||
| 6 | Sardor | |||
| 7 | Nodira | 68 | ||
| 8 | Took test | 1 | ||
| 9 |
2
Excel inserts =СЧЁТ(B2:B7) and shows the range with a moving border. If it’s right, press Enter. If not, select the correct cells with the mouse.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Score | ||
| 2 | Aziz | 85 | ||
| 3 | Dilnoza | 92 | ||
| 4 | Javohir | absent | ||
| 5 | Malika | 74 | ||
| 6 | Sardor | |||
| 7 | Nodira | 68 | ||
| 8 | Took test | 42 | ||
| 9 |
3
Or type it: =СЧЁТ(, select the range and press Enter. The Автосумма menu on the Формулы tab has the same Count Numbers item.
4
Check without a formula: select the cells and look at the status bar. By default it shows Count — that counts all non-empty cells (like COUNTA). Right-click the status bar and turn on Numerical Count to see the COUNT result too.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Order | Customer | Delivered | |
| 2 | O-101 | Aziz | 01.01.2026 | |
| 3 | O-102 | Dilnoza | pending | |
| 4 | O-103 | Javohir | 03.01.2026 | |
| 5 | O-104 | Malika | 04.01.2026 | |
| 6 | O-105 | Sardor | pending | |
| 7 | Delivered | 3 | ||
| 8 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Price (imported) | ||
| 2 | Tea | 18000 | ||
| 3 | Coffee | 65000 | ||
| 4 | Sugar | 14000 | ||
| 5 | Rice | 22000 | ||
| 6 | Oil | 31000 | ||
| 7 | All filled | 5 | ||
| 8 | Numbers | 3 | ||
| 9 | Text numbers | 23 | ||
| 10 |
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Student | HW 1 | HW 2 | HW 3 | Submitted | |
| 2 | Aziz | 9 | 8 | 10 | 3 | |
| 3 | Dilnoza | 10 | no | 9 | 2 | |
| 4 | Javohir | 7 | 1 | |||
| 5 | Malika | 8 | 9 | 0 | 3 | |
| 6 | Share | 75% | 50% | 100% | ||
| 7 |
COUNT/ROWS. Note: Malika’s 0 is a number too, so it is countedPro level: COUNT with other functions
- Guard against #DIV/0!:
=ЕСЛИ(СЧЁТ(B2:B7)=0;"No data";СРЗНАЧ(B2:B7))— until a score is entered, you get a clear message instead of an error. - Is the row complete?
=ЕСЛИ(СЧЁТ(B2:D2)=3;"Ready";"Missing")checks that all three months are filled in a report. - Counting with a condition: questions like “score of 80 or more” are answered by
=СЧЁТЕСЛИ(B2:B7;">=80"); for several conditions use COUNTIFS. - After filtering: COUNT includes hidden rows. To count only visible ones use
=ПРОМЕЖУТОЧНЫЕ.ИТОГИ(2;B2:B100). - Is one cell a number? COUNT is for ranges; for a single cell
=ЕЧИСЛО(B2)is handier — it returns TRUE/FALSE.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Branch | January | February | March | Status | |
| 2 | Tashkent | 12 000 000 | 14 500 000 | 15 100 000 | Ready | |
| 3 | Samarkand | 8 300 000 | 9 100 000 | Missing | ||
| 4 | Bukhara | 6 100 000 | 6 400 000 | pending | Missing | |
| 5 | Andijan | 5 200 000 | 5 600 000 | 5 900 000 | Ready | |
| 6 |
Try it in the simulator
Type =СЧЁТ(B2:B7) in B8 (result 4), then =СЧЁТЗ(B2:B7) in B9 (result 5). Where does the difference come from? “absent” in B4 is text: COUNT skips it, COUNTA counts it.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Student | Score | ||||||||||||||||||||||
| 2 | Aziz | 85 | ||||||||||||||||||||||
| 3 | Dilnoza | 92 | ||||||||||||||||||||||
| 4 | Javohir | absent | ||||||||||||||||||||||
| 5 | Malika | 74 | ||||||||||||||||||||||
| 6 | Sardor | |||||||||||||||||||||||
| 7 | Nodira | 68 | ||||||||||||||||||||||
| 8 | COUNT | |||||||||||||||||||||||
| 9 | COUNTA | |||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 | ||||||||||||||||||||||||
| 12 | ||||||||||||||||||||||||
| 13 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.