
Find the middle value in a set of numbers. A good choice when very high or very low values would distort the average.
MEDIAN returns the middle number in a set of values. Excel sorts the numbers behind the scenes and then picks the center point, so you do not need to arrange the data yourself first.
This is often a better way to describe what is typical when the list contains one unusually high or unusually low value. A few extremes can pull the average away from what most people actually experience, but the median usually stays closer to the middle of the real pattern.
Returns the center value in a set of numbers.
Returns the median. If there is an even number of values, Excel averages the two numbers in the middle.
=MEDIAN(number1, [number2], ...)
You can use cell references, ranges, typed numbers, or a mix of them. Excel supports up to 255 arguments.
These functions all summarize the center of a dataset, but they answer slightly different questions.
| Function | What it returns | Use it when |
|---|---|---|
MEDIAN |
The middle value | You want a typical result that is less affected by outliers |
AVERAGE |
The arithmetic mean | You want the standard average of all values |
MODE.SNGL |
The most frequent value | You want to know what shows up most often |
SMALL |
The nth smallest value | You want a ranked position instead of the center |
A simple way to think about MEDIAN is this: it answers the question, "What is the value in the middle once everything is lined up?" That makes it especially useful for prices, salaries, wait times, and other real-world numbers where a few unusual entries can distort the average.
Microsoft notes a few rules that are easy to miss. If you type values directly in the argument list, logical values and text representations of numbers are counted. But when MEDIAN looks at ranges or references, text, logical values, and blank cells are ignored, while zero is still counted. That difference matters when you are comparing a formula built from typed values with one built from a worksheet range.
If the dataset has an odd number of values, MEDIAN returns the single middle number. If the dataset has an even number of values, there is no single middle entry, so Excel returns the average of the two middle values. That is why the result can sometimes be a number that does not appear in the original list.
This is the standard use case. Excel orders the values and returns the one in the middle.
=MEDIAN(B1:B5) // Returns the middle value from the range.
Find the median in cells B1 to B5. Formula: =MEDIAN(B1:B5).
In this list, 1000 is much bigger than the rest. The median still lands on the middle of the group instead of being pulled upward.
=MEDIAN(A1:A5) // Returns 30.
Find the median of 10, 20, 30, 40, and 1000. Formula: =MEDIAN(A1:A5).
When you want a center point from a larger block of data, MEDIAN can give a more realistic summary than a straight average.
=MEDIAN(B1:B10) // Returns the middle value from the full range.
Find the median of the values in B1:B10. Formula: =MEDIAN(B1:B10).
This works well in score and performance sheets because the middle result often feels more realistic than the mean when a few values are unusually high or low.
=MEDIAN(B1:B10) // Returns the middle score in the range.
Calculate the median score from B1:B10. Formula: =MEDIAN(B1:B10).
Tell your friends about this post