Navigation:  Formula Reference > Spreadsheet Formula Functions >

MEDIAN

Previous pageReturn to chapter overviewNext page

 

This function returns the median, the number in the middle of the provided set of numbers; that is, half the numbers have values that are greater than the median, and half have values that are less than the median.

Syntax

MEDIAN(value1,value2,...)

MEDIAN(array)

MEDIAN(array1,array2,...)

Arguments

Each argument can be a double-precision floating-point value, an integer value, or an array (cell range) of these. Up to 255 arguments may be included. You can use a single array (cell range) instead of a list of values. You can use multiple arrays (cell ranges) as well.

If there are an even number of arguments, the function calculates the average of the two numbers in the middle.

Data Types

Accepts numeric data for all arguments. Returns numeric data.

Examples

MEDIAN(A3,B5,C1,D4,E7)

MEDIAN(A1:A9)

MEDIAN(R1C2,R3C5,R4C7,R6C7)

MEDIAN(89,95,76,88,92) gives the result 89

 

See Also

AVERAGE

MODE