
The AVERAGE, MEDIAN and MODE functions in Excel each describe the "middle" of a list in a different way. AVERAGE adds the numbers and divides by how many there are. MEDIAN returns the middle value when the list is sorted. MODE returns the number that appears most often. This guide shows the formulas, which one to use when the data has outliers, and how to handle blanks, text and conditions. The sample data is made up.
AVERAGE
=AVERAGE(B2:B20)
AVERAGE ignores empty cells and text. It counts zeros, so a zero pulls the average down. For the numbers 10, 20 and 60 the average is 30.

MEDIAN
=MEDIAN(B2:B20)
MEDIAN sorts the numbers in its head and returns the middle one. For 10, 20 and 60 the median is 20. With an even count it returns the average of the two middle numbers, so for 10, 20, 30 and 60 it returns 25.

MODE
Excel has MODE.SNGL, which returns one value, and MODE.MULT, which returns all values that tie. The old MODE function still works and matches MODE.SNGL.
=MODE.SNGL(B2:B20)
For 5, 7, 7, 9 the mode is 7. If no number repeats, MODE.SNGL returns #N/A. MODE only works with numbers. To find the most common text, use INDEX, MATCH and COUNTIF together, or a pivot table.

Which one should you use?
With the made-up salaries 30, 32, 35, 36 and 200 (in thousands), the average is 66.6 and the median is 35. One very large value pulls the average up and leaves the median almost alone. When the data has outliers, such as salaries, house prices or delivery times, MEDIAN is often the fairer summary. When the values are similar, AVERAGE is fine. Use MODE for the most frequent size, score or category code.

Average with a condition
For one condition use AVERAGEIF, and for several use AVERAGEIFS. Our AVERAGEIF guide covers both. MEDIAN has no condition version, but in Excel 365 you can combine it with FILTER: =MEDIAN(FILTER(B2:B20, A2:A20="East")). See the FILTER function guide.
Do not count zeros
If zeros mean "no data", leave them out: =AVERAGEIF(B2:B20, "<>0"). Decide first whether a zero is a real value, such as a zero sale, or a placeholder.
Numbers stored as text
AVERAGE skips numbers stored as text, so the result can be wrong without any warning. Check with COUNT against COUNTA, as in our COUNT, COUNTA and COUNTBLANK guide. If the counts differ, some cells are text.
Weighted average
When values have different weights, such as marks with different credit hours, use SUMPRODUCT: =SUMPRODUCT(B2:B6, C2:C6) / SUM(C2:C6). See the SUMPRODUCT guide.
Common errors
- #DIV/0! AVERAGE found no numbers. Check the range.
- #N/A from MODE. No value repeats.
- Average looks too low. Zeros are being counted.
- Average looks too high. An outlier or a typo, such as an extra zero.
Questions and answers
What is the difference between mean and average?
In everyday use they are the same. AVERAGE in Excel returns the arithmetic mean.
Do these functions work in Google Sheets?
Yes. AVERAGE, MEDIAN and MODE exist in Google Sheets with the same purpose.
Can I average every other row?
Use a helper column or a formula with MOD and SUMPRODUCT. The functions above only take ranges as they are.
What if my data has errors?
An error in the range makes the result an error. Clean the data, or use AGGREGATE with an option that ignores errors.
