Cellgrids Cellgrids
Home › Practice questions › COUNT › Question 4

Excel COUNT Practice Question: Absent students are marked AB. Using COUNT, find how many students appeared…

By Rinkesh Shah, founder of Cellgrids.

The question

Absent students are marked AB. Using COUNT, find how many students appeared and put it in E2. Then find how many were absent (use COUNTA minus COUNT) and put it in E3.

The data

ABCDE
1StudentMarksLabelResult
2Gita56Appeared?
3HariABAbsent?
4Iqbal71
5JayaAB
6Karan64
7Leena48

The yellow cells are where your answer goes.

Show answer

Expected results:

  • E2 = 4
  • E3 = 2

How it works

Explanation: COUNT counts numbers only, while COUNTA counts everything that is not empty. The difference between them is the number of text entries.
Syntax: =COUNT(B2:B7) and =COUNTA(B2:B7)-COUNT(B2:B7)
Numbers: 56, 71, 64, 48 gives 4. All entries: 6. Absent = 6 - 4 = 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 →

COUNT syntax

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

Counts how many cells in a range contain numbers. COUNT is used in data analysis work to summarize or test patterns across a data set. Full COUNT guide.

More COUNT practice questions

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