MEDIAN Function in Excel: Complete Tutorial with Examples

MEDIAN finds the true middle value, resists outliers better than AVERAGE, and reveals what's actually typical in skewed datasets like salaries.

Need to find the middle value in a dataset? MEDIAN returns the central number when values are sorted, making it more reliable than AVERAGE when dealing with outliers. It shows you what’s truly typical in your data.

What Makes MEDIAN Useful

MEDIAN reveals the true center of your data:

  • Outlier resistant – Extreme values don’t skew results like they do with AVERAGE
  • True middle value – Shows what’s actually typical in your dataset
  • Salary analysis – Better than average for income data with high earners
  • Real estate pricing – More accurate than mean for property values
  • Performance metrics – Find the middle performer, not distorted averages
The Syntax
=MEDIAN(number1, [number2], ...)

Include cells, ranges, or both. MEDIAN handles up to 255 arguments and automatically sorts values.


Example 1: Home Prices

Find the median home price in a neighborhood:

Formula: =MEDIAN(B2:B6)

Result: $275,000

Compare to: =AVERAGE(B2:B6) = $454,000

The mansion skews the average, but MEDIAN shows the true middle price.


Example 2: Test Scores

Find the middle score in a class:

Formula: =MEDIAN(B2:B6)

Result: 88

Values sorted: 78, 85, 88, 92, 95. The middle value is 88.


Example 3: Even Number of Values

What happens with an even count?

Formula: =MEDIAN(B2:B5)

Result: $55,000

With even counts, MEDIAN averages the two middle values: (52,000 + 58,000) / 2 = 55,000.


Example 4: Response Times

Find typical customer service response time:

Formula: =MEDIAN(B2:B6)

Result: 8

Ticket 005 took unusually long, but MEDIAN shows the typical response is 8 minutes.


Example 5: Multiple Ranges

Find median across different quarters:

Formula: =MEDIAN(B2:B4, C2:C4)

Result: $5,350

All six values combined: 4500, 4800, 5200, 5500, 6100, 6200. Average of two middle values: (5200 + 5500) / 2.


Example 6: Filtering Out Extremes

Compare median vs average with outliers:

MEDIAN: =MEDIAN(B2:B6) = 1,290

AVERAGE: =AVERAGE(B2:B6) = 2,704

Thursday’s spike distorts the average. Median shows normal traffic is around 1,290.


MEDIAN vs AVERAGE
What MEDIAN Includes

Considered:

  • All numbers in the range
  • Negative numbers
  • Zero
  • Decimals
  • Dates (stored as numbers)

Ignored:

  • Text
  • Empty cells
  • Logical values (TRUE/FALSE)
  • Error values
How MEDIAN Works

Odd count (5 values):

  • Sort: 10, 20, 30, 40, 50
  • Middle position: 3rd value
  • Result: 30

Even count (6 values):

  • Sort: 10, 20, 30, 40, 50, 60
  • Middle positions: 3rd and 4th
  • Result: (30 + 40) / 2 = 35
Common Use Cases

Income Analysis Median income is more meaningful than average when high earners skew data.

Real Estate Median home prices better represent typical market values.

Performance Metrics Find the middle performer without influence from extremes.

Quality Control Identify typical values in measurements with occasional defects.

Practical Combinations

Compare to average:

=MEDIAN(B2:B10) vs =AVERAGE(B2:B10)

Big difference? You have outliers.

Find if value is above/below median:

=IF(B2>MEDIAN($B$2:$B$10), "Above Median", "Below Median")

Median absolute deviation:

=MEDIAN(ABS(B2:B10-MEDIAN(B2:B10)))
Common Mistakes to Avoid

Confusing with AVERAGE

  • MEDIAN finds the middle value
  • AVERAGE calculates the mean
  • They’re different and serve different purposes

Text Formatted Numbers

  • Numbers stored as text are ignored
  • Check formatting if values are missing

Expecting Middle Position

  • MEDIAN finds middle value, not middle position
  • Order in your spreadsheet doesn’t matter
  • Excel sorts internally
When to Use MEDIAN

Use MEDIAN when:

  • Data has outliers or extreme values
  • You want the “typical” value
  • Dealing with skewed distributions
  • Working with salary, home prices, or response times

Use AVERAGE when:

  • Data is evenly distributed
  • Outliers are meaningful, not errors
  • You need mathematical precision
  • Working with controlled measurements
Start Using It

Open a spreadsheet with numbers that might have outliers. Calculate both MEDIAN and AVERAGE. Compare the results. If they’re very different, you’ve got outliers affecting your average.

MEDIAN shows you what’s truly typical in your data.


Questions about MEDIAN? Want to explore MODE for most common values? Let’s connect.