fxExcelReps
← All functions Σ Math & statistics · Beginner

AVERAGE The mean of a set of numbers.

How to use AVERAGE in Excel

AVERAGE returns the arithmetic mean: it adds the numbers and divides by how many there are. Empty cells and text are ignored, but zeros are counted.

Syntax

=AVERAGE(number1, [number2], ...)

number1A number, cell or range, e.g. B2:B20.
[number2], …Optional additional numbers or ranges.

Examples

=AVERAGE(B2:B20)Average score of a class.
=ROUND(AVERAGE(B2:B20), 1)Average rounded to one decimal place.
=AVERAGE(B2:B20, D2:D20)Average across two ranges.

Average without the zeros

Months with no data are often filled with 0, and AVERAGE counts them. Leave them out with AVERAGEIF.

=AVERAGEIF(B2:B13, ">0")The average of the months that have a value.
=SUM(B2:B13)/COUNT(B2:B13)The same as AVERAGE: total divided by how many numbers there are.

Weighted average: when rows aren't equal

The average interest rate of a loan book isn't the plain AVERAGE of the rates: a 1,000,000 loan matters more than a 10,000 one. Weight each rate by the amount.

=SUMPRODUCT(B2:B100, C2:C100)/SUM(B2:B100)Rates in C weighted by the amounts in B.

Averages that ignore outliers

One huge or tiny value can pull the average far away. MEDIAN and TRIMMEAN give a fairer picture.

=MEDIAN(B2:B100)The middle value: half the numbers are above it, half below.
=TRIMMEAN(B2:B100, 10%)The average after removing the top and bottom 5% of values.

Common mistakes

The average looks too low
Cells contain 0 instead of being empty — zeros pull the average down. Leave missing values blank or use AVERAGEIF(range, "<>0").
#DIV/0! error
The range has no numbers at all. Wrap it: =IFERROR(AVERAGE(B2:B20), 0).
Extreme values distort the result
One very large or small value skews the mean. Consider MEDIAN instead.

Frequently asked questions

Does AVERAGE include blank cells?

No, blank cells and text are skipped. Zeros are included, which is why AVERAGE can look too low.

Why does AVERAGE return #DIV/0!?

There are no numbers in the range: it's empty, or the numbers are stored as text. Use =IFERROR(AVERAGE(B2:B20), "") to show a blank instead.

What's the difference between AVERAGE and MEDIAN?

AVERAGE adds everything and divides. MEDIAN takes the middle value, so a few extreme values don't move it. For salaries or house prices, the median is usually more honest.

How do I average with a condition?

AVERAGEIF for one condition, AVERAGEIFS for several: =AVERAGEIFS(C2:C500, A2:A500, "North", B2:B500, "Loan").

Available in: All versions of Excel, Excel for the web, Google Sheets

Related functions

MEDIANAVERAGEIFSUMROUNDMAX

↑ Practise AVERAGE in the sheet above