MEDIAN Function

MEDIAN Function

MEDIAN Function

Find the middle value in a set of numbers. A good choice when very high or very low values would distort the average.

ExcelClash Team
PUBLISHED

Summary

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.

Purpose

Find the middle number

Returns the center value in a set of numbers.

Return Value

Number

Returns the median. If there is an even number of values, Excel averages the two numbers in the middle.

Syntax

=MEDIAN(number1, [number2], ...)

You can use cell references, ranges, typed numbers, or a mix of them. Excel supports up to 255 arguments.

Arguments

  • number1 - [required] The first number, cell reference, or range to include.
  • number2, ... - [optional] More numbers, references, or ranges to include.

MEDIAN vs Other Functions

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

Using the MEDIAN Function

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.

Example 1 - Find the middle value in a range

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.
Check Answer
Challenge #1
Target: Sheet1!F1
Basic Middle Value

Find the median in cells B1 to B5. Formula: =MEDIAN(B1:B5).

Example 2 - Use MEDIAN when one value is far too large

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.
Check Answer
Challenge #2
Target: Sheet1!F2
Compare with an Outlier

Find the median of 10, 20, 30, 40, and 1000. Formula: =MEDIAN(A1:A5).

Example 3 - Show a typical value from a wider range

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.
Check Answer
Challenge #3
Target: Sheet1!F3
Typical Value from a Range

Find the median of the values in B1:B10. Formula: =MEDIAN(B1:B10).

Example 4 - Use the middle score as a fairer benchmark

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.
Check Answer
Challenge #4
Target: Sheet1!F4
Typical Score Check

Calculate the median score from B1:B10. Formula: =MEDIAN(B1:B10).

Conclusion Recap

  • Main job: MEDIAN returns the middle value in a set of numbers.
  • No manual sorting needed: Excel handles the ordering for you.
  • Even-number rule: If there are two middle values, Excel averages them.
  • Outlier-friendly: MEDIAN is often better than AVERAGE when extremes distort the mean.
  • Range behavior: In references, text, logical values, and blanks are ignored, but zero is counted.
  • Typical use: Great for prices, salaries, response times, and scores.
Tactical Arena
Select Scenario:
Share MEDIAN Function!

Tell your friends about this post

Discussion

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster.

© 2026 ExcelClash, Inc. All rights reserved.