Average three exam scores

Easy Math
Description
Hints 0/3
Solutions 1
–
Test case
1
2
3
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

You're a teacher wrapping up an exam: the scores for Alex, Betty, and Chris are already in B2:B4, and the report still needs the class average. Fill the Average cell B5 with the mean of the three scores.

AVERAGE must skip Betty's blank cell (case 3) — treating it as 0 gives 50, not 75.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
AB
1 StudentScore
2 Alex90
3 Betty80
4 Chris70
5 Average

Notes

AVERAGE ignores text and blank cells by default. For interview prep, know the difference between AVERAGE and AVERAGEA.

How to approach

Your answer goes in B5. On submit we re-run your formula against 3 different sets of input, so a hardcoded number will fail — the formula has to follow the cells.

  1. Target cell is B5
  2. Use the AVERAGE function
  3. Pass the contiguous range B2:B4

Official solutions

Show 1 solution — try it yourself first

Approach 1: Standard contiguous AVERAGE

=AVERAGE(B2:B4)

AVERAGE calculates the arithmetic mean of all numeric cells in range B2:B4. Blank cells and text are excluded automatically.

Function guide

Related practice

FAQ

What formula averages B2:B4 in Excel?

Use =AVERAGE(B2:B4). It returns the arithmetic mean of the numeric values in that range.

Does AVERAGE ignore blank cells?

Yes. Blank cells are ignored. Text values are also ignored by AVERAGE (unlike AVERAGEA).

Is AVERAGE different from SUM divided by COUNT?

Yes when blanks exist. AVERAGE(B2:B4) ignores an empty cell entirely, while SUM(B2:B4)/COUNT(B2:B4) may count it as 0 depending on the range — case 3 is exactly that situation, where the average of 90 and 60 is 75, not 50.