What MEDIAN does
MEDIAN finds the center of a set of numbers by their position in numeric order. With an odd count, it returns the middle number. With an even count, it returns the average of the two middle numbers.
This makes the median useful when a few unusually large or small values pull the arithmetic mean away from the center of most observations. You don't need to sort the worksheet first.
Practical examples
Find the middle of four delivery times
Enter these delivery times in A2:A5:
| Cell | Minutes |
|---|---|
| A2 | 32 |
| A3 | 36 |
| A4 | 40 |
| A5 | 72 |
Enter:
=MEDIAN(A2:A5)FormulaThe result is 38 minutes, the average of the two middle values, 36 and 40. It doesn't need to be a value that appears in the data.
For comparison, the arithmetic mean of these same four times is 45 minutes: their total, 180, divided by four. The 72-minute delivery affects that mean more strongly than it affects the median. Both measures describe the data; neither is a reason to discard a valid delivery time.
Find the middle of nine delivery times
On a separate worksheet, enter 32, 35, 38, 40, 42, 45, 50, 54, and 60 in A2:A10 respectively. These are nine delivery times in minutes:
=MEDIAN(A2:A10)FormulaThe result is 42 minutes. With nine values in numeric order, the fifth is in the middle: four values sit on either side.
Add a tenth delivery
In that second worksheet, enter 72 in A11 and extend the range:
=MEDIAN(A2:A11)FormulaThe result is 43.5 minutes. With ten values, the middle positions are the fifth and sixth, containing 42 and 45. MEDIAN averages those two numbers.
Common mistakes and notes
- Blank isn't zero. In a referenced range, MEDIAN ignores empty cells, text, numbers stored as text, and logical values. Numeric zeros are included and can change which values occupy the middle positions.
- Direct arguments have different counting rules. Logical values and quoted numbers typed directly into the argument list count. Direct text that cannot be converted to a number, or an error argument, causes an error.
- The median is a value, not a row number. It uses numeric order, regardless of where the values appear in your worksheet.
- Choose the measure for the question. The median describes the middle by position; AVERAGE calculates the arithmetic mean. See the AVERAGE function in Excel for a comparison with a high delivery time.