Returns the value of the midpoint of the range of numbers
Syntax
MEDIAN(number1, [number2, ...])
- number1—The numbers, cell reference, or range for which you want the median
- number2, ... —[optional]Additional numbers, cell references, or ranges for which you want the median
Sample usage
MEDIAN(Cost1:Cost5)
Examples
This example references the following sheet information:
Item Number | Transaction Total | Units Sold | Price Per Unit | |
---|---|---|---|---|
1 | Item Number C001 | Transaction Total 1,170.00 | Units Sold 78 | Price Per Unit 15.00 |
2 | Item Number C002 | Transaction Total 1,491.00 | Units Sold 42 | Price Per Unit 35.50 |
3 | Item Number C003 | Transaction Total 812.00 | Units Sold 217 | Price Per Unit 200.00 |
Given the table above, here are some examples of using MEDIAN in a sheet:
Formula | Description | Result |
---|---|---|
Formula =MEDIAN([Transaction Total]:[Transaction Total]) | Description Gives the median of the Transaction Total column. | Result 1,170.00 |
Formula =IF([Price Per Unit]@row > 14, MEDIAN([Units Sold]:[Units Sold], " ")) | Description If the price per unit on each row is greater than 14, give the median of the Units Sold column. Otherwise, do nothing. | Result 78 |
Still need help?
Use the Formula Handbook template to find more support resources and view 100+ formulas. It includes a glossary of every function that you can practice working with in real-time and examples of commonly used and advanced formulas.
You can find examples of how other Smartsheet customers use this function or ask about your specific use case in the Smartsheet online Community.