MEDIAN Formula in Excel

This guide treats “median formula in excel” the way busy spreadsheet users actually want it: answer first, a live tool to prove it on your own data, then the reasoning. It is written for Excel but calls out every place Google Sheets differs, and the platform toggle at the top switches all shortcuts between Windows and Mac so nothing here assumes the keyboard you are not on.

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. For “median formula 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 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. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.

In Google Sheets

Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. 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. Treat “median formula in excel” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.

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.