Practice by topic / Excel / Counting & Averaging

COUNT and COUNTA Exercises

Counting and averaging are how you summarise a list: how many orders, how many late, what the typical value is. Most reports start here. These 10 exercises build up step by step, starting with count numeric scores only, count all filled-in responses, count how many grades were entered.

3 of 10 free · no sign-up needed · graded on the formula you write

1

Count Numeric Scores Only

Free

A1:A6 hold test scores, but some cells contain text like "absent" instead of a number. Write a formula in A7 that counts only the numeric scores.

A
185
2absent
392
478
5absent
688
7?
Show the solution

Use =COUNT(A1:A6) — it ignores non-numeric cells.

Right — COUNT only counts cells containing actual numbers, skipping the text entries.

Expected result in A7: 4

Try it in the live spreadsheet →
2

Count All Filled-In Responses

Free

A1:A6 hold survey responses, a mix of numbers and text, with some cells left blank. Write a formula in A7 that counts every non-empty response regardless of type.

A
15
2yes
3
43
5no
6
7?
Show the solution

Use =COUNTA(A1:A6) to count every filled cell.

Good — COUNTA counts any non-empty cell, whether it holds text or a number.

Expected result in A7: 4

Try it in the live spreadsheet →
3

Count How Many Grades Were Entered

Free

B1:B5 hold grades where some students haven't been graded yet (blank cells). Write a formula in B6 that counts how many grades have actually been entered.

AB
190
2
385
477
5
6?
Show the solution

Use =COUNT(B1:B5).

Right — COUNT only counts the cells that actually contain a numeric grade.

Expected result in B6: 3

Try it in the live spreadsheet →
4

Count Total Entries Including Text Notes

A1:A5 hold order amounts, but one cell contains the text "cancelled" instead of a number. Write a formula in A6 that counts every non-blank entry, numeric or not.

A
140
2cancelled
360
425
580
6?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
5

Count Numeric Entries in a Mixed Column

A1:A7 hold a mix of prices and text placeholders like "TBD". Write a formula in A8 that counts only the actual priced items.

A
112
2TBD
38
4TBD
515
620
7TBD
8?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
6

Count Attendance Records

A1:A6 hold attendance marks, some blank for days with no class. Write a formula in A7 that counts how many days have any record at all.

A
1present
2absent
3
4present
5
6present
7?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
7

Count Completed Numeric Measurements

B1:B5 hold measurement readings, with a couple of cells still blank because the sensor hasn't reported yet. Write a formula in B6 that counts the completed numeric readings.

AB
122.5
2
319.8
425.1
5
6?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
8

Count Filled Form Fields

A1:A5 hold form field values, mixing text and numbers, with one field left empty. Write a formula in A6 that counts every filled field.

A
1Alex
230
3
4yes
55
6?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
9

Count Valid Numeric Prices in a Catalog

A1:A6 hold product prices, with two cells containing the text "discontinued" instead of a price. Write a formula in A7 that counts only the still-priced products.

A
115
2discontinued
322
418
5discontinued
630
7?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →
10

Count Every Row With Any Data

A1:A5 hold a mix of IDs (numbers) and blank rows for unused slots. Write a formula in A6 that counts how many rows actually have data.

A
1101
2
3103
4104
5
6?

Solution and instant grading: open it in the practice app (use one of your 20 free picks, or Pro).

Try it in the live spreadsheet →