Syntax
| Parameter | Description |
|---|---|
| value1 | Parameter of the MEDIAN function. |
| [value2 | (Optional.) Parameter of the MEDIAN function. |
| ...] | Parameter of the MEDIAN function. |
Examples
Median home price
=MEDIAN(C2:C150)
Median of specific values
=MEDIAN(12, 15, 100, 18, 14)
Median response time
=MEDIAN(E2:E5000)
Common Errors
Returned when the range contains no numeric values. At least one number is required.
Occurs if a non-numeric argument is supplied directly, such as =MEDIAN("abc").
Tips
When there is an even count of numbers, MEDIAN returns the average of the two middle values. For example, MEDIAN(1,3,5,7) returns 4.
Use MEDIAN instead of AVERAGE when your data has extreme values. Salary data is a classic case — a few executives earning millions would inflate the average far above what most employees actually earn.
There is no built-in MEDIANIF, but you can use an array formula like =MEDIAN(IF(A2:A100="East",B2:B100)) to get the median for a specific group.
Try MEDIAN in Viztab
Import your data and use MEDIAN with 370+ other formulas. No signup required.
Open Viztab