Calculating MEDIAN in Excel

“calculating median in excel” comes up constantly, so this page leads with the exact answer, gives you a tool to try it on your own numbers, and only then explains the detail. Everything works in Excel on Windows and Mac and maps almost one-to-one to Google Sheets. Copy the answer above and get back to work, or read on to turn a one-off fix into something you never have to look up again.

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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “calculating median in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. 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. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.

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. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

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. If you take one thing from this page on “calculating median in excel”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.

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.