1. Home
  2. Functions
  3. Statistical
  4. MEDIAN

MEDIAN function

Returns the middle number of the values (the average of the two middle ones for an even count).

Syntax

=MEDIAN(number1, [number2], ...)

Arguments

ArgumentRequiredDescription
number1RequiredA number, cell or range
number2OptionalMore numbers or ranges

How to use MEDIAN

MEDIAN takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =MEDIAN( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=MEDIAN(1, 2, 3, 4, 5)Result 3
=MEDIAN(1, 2, 3, 4, 5, 6)Result 3.5

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.