FxFormula Drills

Free exercise · Excel formula basics

Count numbers vs text

Practice Excel COUNT and COUNTA by counting numeric responses separately from every non-empty cell.

Column A mixes numbers and words. COUNT and COUNTA answer different questions.

In D1, count only the numbers. In D2, count every non-empty entry. Both formulas should cover A2:A6.

Dataset

Starter sheet. Cells marked formula are where the formula goes.

Starter sheet for this exercise
RowABCD
1ResponseNumbersFormula goes in D1. formula
212Any entryFormula goes in D2. formula
3apple
47
5north
63

Hint

COUNT ignores text. COUNTA counts text and numbers, and skips blanks.

Explanation

This exercise practices COUNT and COUNTA in Excel. The formula goes in D1, D2.

COUNT only counts numbers, so the three numeric responses total 3. COUNTA counts text and numbers, so all five filled cells are included.

One formula that works: D1: =COUNT(A2:A6). D2: =COUNTA(A2:A6). Other formulas that return the same result are accepted.

Solve this exercise

Drill 7 of 10

Practice this formula

Drag to select a range. The fill handle copies formulas the way Excel does, and the Shortcuts button lists the keyboard.

D1
A
B
C
D
E
F
1
2
3
4
5
6
7
8
9
10
11
12

Highlighted cells are yours. Drag to select, then drag the green square to fill. Shortcuts lists the keyboard.

Loading the formula engine…