What AVERAGE does

AVERAGE returns the mean of a list of numbers: it adds them up and divides by how many there are. =AVERAGE(B2:B7) averages the numbers in B2 to B7. Five deliveries that took 2, 3, 3, 4 and 8 days average 4 days, because 20 days in total spread over 5 deliveries is 4 each.

At work it answers questions like “how long do customers take to pay?” It’s also a first step in spotting what’s unusual, because a value far from the average stands out.

Inside a range, AVERAGE only looks at cells that hold numbers. Empty cells and text are left out of both the total and the count. A 0 is a real number, though, so it counts and pulls the average down.

Syntax

=AVERAGE(number1, [number2], ...)
Arguments in square brackets are optional; the rest are required.
number1Required
The first number to average. Usually a range such as B2:B13; it can also be one cell or a number you type.
number2Optional, can repeat
More cells, ranges or numbers, separated by commas, up to 255 arguments in all. Everything you list goes into the same average.

Example: how long customers take to pay

The days each customer took to pay their last invoice are in B2 to B7.

146 days in total over 6 invoices. The cell is formatted to one decimal place. In B8, =AVERAGE(B2:B7) returns 24.3.

The total is 146 days and there are six numbers, so the average is 146 ÷ 6, about 24.3 days. Excel keeps every decimal (24.3333…) and the format decides how many you see. To store the rounded value instead, wrap the formula in ROUND: =ROUND(AVERAGE(B2:B7),1).

Example: a blank is not a zero

Sales calls for one week. Cleo was on leave, so her cell is empty. Dan was in but made no calls, so his cell holds 0.

The empty cell is left out; the 0 is counted. 240 calls over 4 reps. In B7, =AVERAGE(B2:B6) returns 60.

AVERAGE adds 80, 72, 0 and 88 to get 240, then divides by 4, because only four cells hold numbers. If Cleo’s cell held 0 as well, the average would drop to 48. Decide which one is true before you type a 0 into an empty cell.

Common mistakes

  • A 0 typed into a gap counts as a real value and drags the average down. Leave a cell empty until its number is known.
  • Figures imported as text are skipped, just like a blank, so the average comes from fewer values than you think. =COUNT(B2:B7) counts only the real numbers, which shows the gap.
  • An average of averages ignores size: a region with 500 orders counts the same as one with 20. Average the underlying orders instead, or weight each region by its size.
  • One very large order can pull the average far from what’s typical. When a few big values distort the picture, MEDIAN gives the middle value instead.
  • With no numbers in the range, AVERAGE shows #DIV/0! because it would divide by zero. That usually means the range points at the wrong cells.

Frequently asked questions

Does AVERAGE ignore blank cells?

Yes. Empty cells and cells with text are left out of the calculation completely. Cells that hold 0 are included, which lowers the average.

How do I calculate an average without zeros?

Use AVERAGEIF with the condition "<>0": =AVERAGEIF(B2:B7,"<>0") averages every number in the range except the zeros, and ">0" would leave out negative numbers too. AVERAGEIF takes other conditions as well, such as one region’s rows, and the lesson Average by condition with AVERAGEIF and AVERAGEIFS covers them.

Why does AVERAGE show #DIV/0!?

The range holds no numbers, so AVERAGE would have to divide by zero. Check that it points at the right cells and that the figures aren’t stored as text. To show a blank until numbers arrive, wrap it in IFERROR: =IFERROR(AVERAGE(B2:B7),"").

What is the difference between AVERAGE and MEDIAN?

AVERAGE adds the numbers and divides by how many there are, and MEDIAN returns the middle value once they’re sorted. For deliveries of 2, 3, 3, 4 and 8 days, AVERAGE gives 4 and MEDIAN gives 3, because the one slow delivery pulls only the average up.

How do I average only the visible rows after filtering?

Use =SUBTOTAL(101,B2:B50). It averages the numbers in the rows you can see and leaves out the rows that a filter or Hide Rows has hidden.

How do I calculate a weighted average?

Multiply each value by its weight, add the results and divide by the total weight. With prices in B2:B5 and quantities in C2:C5, =SUMPRODUCT(B2:B5,C2:C5)/SUM(C2:C5) gives the average price per unit sold.