Cellgrids Cellgrids
Home › Practice questions › COUNTA › Question 8

Excel COUNTA Practice Question: Using the customer table, how many rows have a name in column A but no status…

By Rinkesh Shah, founder of Cellgrids.

The question

Using the customer table, how many rows have a name in column A but no status in column B? Put it in D2.

The data

ABCD
1CustomerStatusResult
2AshaPaid?
3Ravi
4Pending
5KaranPaid
6Divya
7
8ImranPending
9SunitaPaid

The yellow cell is where your answer goes.

Show answer

Answer in D2: 2

How it works

Explanation: Multiplying two conditions works like AND: name present and status empty.
Syntax: =SUMPRODUCT((A2:A9<>"")*(B2:B9=""))
Ravi and Divya have a name but no status, so 2.

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