Cellgrids Cellgrids
Home › Practice questions › COUNTA › Question 5

Excel COUNTA Practice Question: Attendance is marked P in B2:C7 (two days) and left empty when absent. How…

By Rinkesh Shah, founder of Cellgrids.

The question

Attendance is marked P in B2:C7 (two days) and left empty when absent. How many P marks are there in total? Put it in E2.

The data

ABCDE
1StudentDay 1Day 2Result
2AnilPP?
3BinaP
4Chetan
5DevPP
6EshaP
7FarahP

The yellow cell is where your answer goes.

Show answer

Answer in E2: 7

How it works

Explanation: COUNTA works on a block of cells.
Syntax: =COUNTA(B2:C7)
Day 1 has 4 marks and Day 2 has 3, so 7.

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