Excel MEDIAN Function

MEDIAN returns the middle numeric value from the numbers you provide, with Excel handling the ordering internally.

Use it when you need a typical value that is less affected by very high or very low outliers, such as response times, scores, prices, or call durations.

1
Provide numeric values Use cells, ranges, or constants
2
Excel orders the values Your source range does not need to be sorted
3
Return the center value Even counts average the two center values

MEDIAN syntax & arguments

Syntax

=MEDIAN(number1, [number2], ...)
Required Optional
  1. 1

    number1

    Required

    The first number, cell reference, range, or array to include when finding the middle value.

  2. 2

    number2

    Optional Repeatable

    Additional numbers, cell references, ranges, or arrays to include in the median calculation.

Example

=MEDIAN(C2:C30)

Return the middle numeric value from C2:C30.

MEDIAN caveats

  • Even counts average the middle pair

    When you provide an even number of values, there are two middle numbers. In that case, MEDIAN returns the average of those two numbers rather than selecting one.

  • Text in referenced cells is ignored

    Numbers stored as text do not contribute to the median when they are inside a referenced range.

  • Errors stop the calculation

    If any referenced cell contains an error, MEDIAN returns an error instead of skipping that value.

  • It is not the mean

    AVERAGE adds values and divides by their count. MEDIAN finds the middle after sorting.

Comparing typical values? Use AVERAGE for the mean, MEDIAN for the middle value, and MODE for the most frequently repeated number.

Intro MEDIAN practice problem

Solve the intro problem directly here, or open it on its own page.

Open full problem

Advanced MEDIAN practice problems

Use MEDIAN alongside other Excel functions in realistic, less-prescriptive challenges.