The MEDIAN guide
=MEDIAN(B2:B12) puts the numbers in order and returns the middle one. One very large or very small value moves the average a lot and the median hardly at all, so the median is the better answer to "what's a typical delivery, salary or order?".
Average or median?
The average adds everything up and divides by the count. The median is the value in the middle once the numbers are in order. With ten deliveries that took 2 to 7 days and one that sat in customs for 41, the average comes out at 8 days, slower than nine of the ten. The median is 4.5, which is what a customer can expect.
Use the median when a few values are far from the rest: delivery times, house prices, salaries, order sizes. Use the average when every value should count fully, such as a budget total spread over months.
The syntax
=MEDIAN(number1, [number2], ...)
Usually one range: =MEDIAN(B2:B12). Empty cells and text are skipped, like AVERAGE does. A cell with 0 in it is not empty, so it counts.
An even count
With an odd number of values there is one in the middle. With an even number there are two, and MEDIAN returns the point halfway between them: for 2, 3, 3, 4, 4, 5, 5, 6, 7, 41 the middle two are 4 and 5, so the median is 4.5. Picking the fifth or sixth value by hand gives 4 or 5, which is close but not the median.
Don't point at the middle cell
The middle row of the table is only the median if the table is sorted, and only until a value changes. MEDIAN sorts a copy of the numbers itself, every time the sheet recalculates.
Common mistakes
- Dividing by the number of rows.
=SUM(B2:B12)/11counts an order that has no time yet. AVERAGE divides by the numbers that are there. - MODE instead of MEDIAN. MODE is the most common value, which is a different question.
- A range that stops early. The last rows drop out, and with them maybe the slowest delivery.
The same data skills in a test: MIN and MAX and COUNT and COUNTA.
FAQ
- What is the difference between median and average in Excel?
- AVERAGE adds the values and divides by how many there are. MEDIAN returns the middle value once they are in order. A few very large or small values move the average much more than the median.
- How does MEDIAN work with an even number of values?
- It takes the two values in the middle and returns the point halfway between them. For 4 and 5 that is 4.5.
- Does MEDIAN ignore blank cells?
- Yes. Empty cells and text are skipped. A 0 is a number, so it is counted.
- When should I use the median instead of the average?
- When a few values are far from the rest, such as salaries, house prices or delivery times. The median then says more about a typical case.
This task is in the timed data analyst practice test. What Excel interview tests check






























































