How to use MEDIAN in Excel
MEDIAN sorts the numbers and returns the one in the middle. With an even count it averages the two middle values. Unlike AVERAGE, a few extreme values barely move it — that's why salaries and house prices are usually reported as medians.
Syntax
=MEDIAN(number1, [number2], ...)
number1 | A number, cell or range. |
[number2], … | Optional additional values. |
Examples
=MEDIAN(B2:B100)Typical salary in a company.=AVERAGE(B2:B100)-MEDIAN(B2:B100)How much outliers pull the average up.Common mistakes
- Expecting MEDIAN to ignore zeros
- Zeros are numbers and are included. Remove them or filter them out first.
- Different from AVERAGE — is it wrong?
- No. The two measure different things; a big gap means the data has outliers.
Available in: All versions of Excel, Excel for the web, Google Sheets