Excel MEDIAN Function

There are two ways to “excel median function”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above with a tool to test it; 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
ƒxAverage, Median & ModeLive

n = 7 · Sum = 103.00 · Min = 9.00 · Max = 21.00

Average (mean)
14.71

7 values

Median
15.00
Mode
15.00
=AVERAGE(A1:A7) · =MEDIAN() · =MODE.SNGL()
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

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 “excel median function”, 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 formula 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. One habit worth forming early: name the cells that hold your inputs, so the formula reads in plain language instead of a string of cell addresses. A reviewer — or you in three months — can then follow the logic without decoding what B7 and D2 were supposed to mean, which is most of what makes a sheet maintainable.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Here is the takeaway for “excel median function”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

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.