Calculate MEDIAN in Excel

There are two ways to “calculate median in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: use =MEDIAN(range) — it returns the middle value once the numbers are ordered, which outliers cannot drag around the way they drag a mean.

On this page8

Syntax

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

Arguments

Argumentrequired / optionalDescription
number1requiredThe first number or range.
number2, ...optionalFurther values or ranges. Text and blanks are ignored.

Related functions

AVERAGEMODEQUARTILE
▤Annotated stepsExcel
1

Select the result cell and type =MEDIAN(.

2

Select the range — there is no need to sort it first.

3

Press Enter.

4

Put an AVERAGE beside it; the size of the gap is a direct read on how skewed the data is.

Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

MEDIAN returns the middle value of a sorted set, or the average of the two middle values when the count is even. You do not need to sort anything first — the function handles ordering internally. Its defining property is resistance to outliers: one enormous value moves a mean substantially and a median barely at all. That is why salary, house price and response-time reporting quote medians. Comparing the mean and the median of the same column is the fastest skew test available in a spreadsheet: if they diverge, the distribution has a tail. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. For “calculate median in excel”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.

A worked example

Salaries in C2:C200 including three executive packages: =MEDIAN(C2:C200) reports the typical salary, while =AVERAGE(C2:C200) sits well above it because of those three. Response times in D2:D500 behave the same way — the median is what an ordinary user experiences, the mean is what the worst outages do to the figure. MEDIAN is the summary that survives outliers, which is why it is the honest headline figure for pay, prices and response times. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. For “calculate median in excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Sorting the data first in the belief that MEDIAN needs it — it does not, and the sort risks disturbing the sheet.
  • Reporting a mean on skewed data out of habit, where the median is the honest summary.
  • Expecting the median of an even-sized set to be an actual data point; it is the average of the two central values.

Frequently asked questions

What is the difference between MEDIAN and AVERAGE?

AVERAGE is the total divided by the count and is pulled by extremes. MEDIAN is the middle value and is not. On skewed data they can differ substantially.

Do I need to sort the data first?

No. MEDIAN orders the values internally.

What does MEDIAN return for an even number of values?

The average of the two middle values, which may not be a value that appears in the data.

Other ways people ask this

On the way here you may have searched this as “calculate the median in excel”, “how do you calculate median in excel”, “how to calculate median excel” and “how to calculate a median in excel” — it is all the same task, and this page is the single, complete answer to it.

Why do people search for this in so many different ways?

Because the same task has many names. “calculate the median in excel”, “how do you calculate median in excel”, “how to calculate median excel” all point at the one operation explained on this page, which is why they all lead here.