Average three exam scores
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)
| A | B | |
|---|---|---|
| 1 | Student | Score |
| 2 | Alex | 90 |
| 3 | Betty | 80 |
| 4 | Chris | 70 |
| 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.
- Target cell is B5
- Use the
AVERAGEfunction - 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
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.