Syntax
=MEDIAN(number1, [number2], ...)Arguments
| Argument | Required | Description |
|---|---|---|
number1 | Required | A number, cell or range |
number2 | Optional | More 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 =MEDIAN(1, 2, 3, 4, 5, 6)Result Related statistical functions
- LOGNORM.INVReturns the inverse of the cumulative lognormal distribution.
- MAXReturns the largest number.
- MAXAReturns the largest value, counting text as 0 and TRUE as 1.
- MAXIFSReturns the largest number among the cells that meet all conditions.
- MINReturns the smallest number.
- MINAReturns the smallest value, counting text as 0 and TRUE as 1.
- MINIFSReturns the smallest number among the cells that meet all conditions.
- MODE.MULTReturns a vertical list of all values that occur most often.
- MODE.SNGLReturns the value that occurs most often.