Back to functions
Statistical2026-11-251 related article

MEDIAN Function in Excel

Return the middle numeric value, or the average of the two middle values when the count is even.

Syntax

MEDIAN(number1, [number2], ...)
Table of Contents

Arguments

number1

Required

The first number, or an array or reference containing numbers.

number2

Optional

Additional numbers, arrays, or references; up to 255 arguments in total.

What it returns

The middle value in numeric order, or the mean of the two middle values for an even count.

What MEDIAN does

MEDIAN finds the center of a set of numbers by their position in numeric order. With an odd count, it returns the middle number. With an even count, it returns the average of the two middle numbers.

This makes the median useful when a few unusually large or small values pull the arithmetic mean away from the center of most observations. You don't need to sort the worksheet first.

Practical examples

Find the middle of four delivery times

Enter these delivery times in A2:A5:

CellMinutes
A232
A336
A440
A572

Enter:

=MEDIAN(A2:A5)
Formula

The result is 38 minutes, the average of the two middle values, 36 and 40. It doesn't need to be a value that appears in the data.

For comparison, the arithmetic mean of these same four times is 45 minutes: their total, 180, divided by four. The 72-minute delivery affects that mean more strongly than it affects the median. Both measures describe the data; neither is a reason to discard a valid delivery time.

Find the middle of nine delivery times

On a separate worksheet, enter 32, 35, 38, 40, 42, 45, 50, 54, and 60 in A2:A10 respectively. These are nine delivery times in minutes:

=MEDIAN(A2:A10)
Formula

The result is 42 minutes. With nine values in numeric order, the fifth is in the middle: four values sit on either side.

Add a tenth delivery

In that second worksheet, enter 72 in A11 and extend the range:

=MEDIAN(A2:A11)
Formula

The result is 43.5 minutes. With ten values, the middle positions are the fifth and sixth, containing 42 and 45. MEDIAN averages those two numbers.

Common mistakes and notes

  • Blank isn't zero. In a referenced range, MEDIAN ignores empty cells, text, numbers stored as text, and logical values. Numeric zeros are included and can change which values occupy the middle positions.
  • Direct arguments have different counting rules. Logical values and quoted numbers typed directly into the argument list count. Direct text that cannot be converted to a number, or an error argument, causes an error.
  • The median is a value, not a row number. It uses numeric order, regardless of where the values appear in your worksheet.
  • Choose the measure for the question. The median describes the middle by position; AVERAGE calculates the arithmetic mean. See the AVERAGE function in Excel for a comparison with a high delivery time.

Related functions

Related articles

Deep dives, troubleshooting guides, and practical examples that use MEDIAN.

Official documentation