FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

MEDIAN in Google Sheets

MEDIAN with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the MEDIAN Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Odd number of values

A
1Value
22
34
44
57
68

Formula: C2: =MEDIAN(A2:A6)

Result: 4

The ordered middle of 2, 4, 4, 7, 8 is 4.

Even number of values

A
1Value
22
34
46
58

Formula: C2: =MEDIAN(A2:A5)

Result: 5

The two middle values 4 and 6 average to 5.

Resist an outlier

A
1Value
22
33
4100

Formula: C2: =MEDIAN(A2:A4)

Result: 3

The extreme 100 does not move the middle position.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =MEDIAN(C2:C7)

Example spreadsheet for MEDIAN
ABCDEF
1RegionProductUnitsPriceResult
2EastPen1202.552.5
3WestPen802.5
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: 52.5
Practice this in a lesson: MEDIAN, LARGE, RANK

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.