Cellgrids Cellgrids
Home › Practice questions › COUNTA › Question 3

Excel COUNTA Practice Question: Quantities are in B2:B9. Some cells hold the text n/a and some are empty. How…

By Rinkesh Shah, founder of Cellgrids.

The question

Quantities are in B2:B9. Some cells hold the text n/a and some are empty. How many cells have an entry (number or text)? Put it in D2.

The data

ABCD
1ItemQtyResult
2Item 1120?
3Item 2n/a
4Item 395
5Item 4
6Item 5210
7Item 6n/a
8Item 7
9Item 8160

The yellow cell is where your answer goes.

Show answer

Answer in D2: 6

How it works

Explanation: Unlike COUNT, COUNTA also counts text. COUNT would return 4 here.
Syntax: =COUNTA(B2:B9)
120, n/a, 95, 210, n/a and 160 are entries, so 6.

Try it yourself in the live sheet

Type your formula in the highlighted cell and get instant feedback. Free, no Excel install needed.

Try this question in the live sheet →

COUNTA syntax

=COUNTA(value1, [value2], ...)

Counts how many cells in a range are not empty. COUNTA is used in data analysis work to summarize or test patterns across a data set. Full COUNTA guide.

More COUNTA practice questions

All practice questions · Excel exercises · Interview prep · Cheat sheet