SheetsLessons
Math & Counting function

MEDIAN function in Google Sheets

MEDIAN returns the middle value once the numbers are sorted. Unlike AVERAGE, a single extreme value barely moves it, so it's the better "typical value" for prices, salaries and response times.

Syntax

=MEDIAN(value1, [value2, ...])
value1
A number, cell or range.
value2, ...
Optional. More values or ranges.

Practice MEDIAN

Task 1 of 1

One mansion skews the average sale price. Find the median price instead. Answer in D2.

D2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

MEDIAN examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABCDE
1RepRegionProductUnitsRevenue
2AvaWestMonitor12$2,400.00
3LiamEastKeyboard30$1,500.00
4MayaWestMouse45$900.00
5NoahNorthMonitor8$1,600.00
6ZaraEastMonitor15$3,000.00
7OmarWestKeyboard22$1,100.00
Sales by rep
FormulaResultWhat it shows
=MEDIAN(E2:E7)$1,550.00With an even count, MEDIAN averages the two middle values.
=MEDIAN(D2:D7)18.5Median units sold.
=MEDIAN(1, 2, 100)2The outlier (100) doesn't drag the median up the way it would an average.

Tips and common mistakes

  • Blank cells and text are ignored.
  • Compare MEDIAN with AVERAGE on the same data: a big gap between them means your data is skewed by outliers.

Related functions