# MEDIAN

The MEDIAN function in Excel returns the median (middle) value in a set of numbers. It is useful for finding the middle data point in a dataset, making it ideal for statistical analysis and data processing tasks.

## Syntax

=MEDIAN(`number1`

, `[number2], [number3], ...`

)

`number1` | The first number or range of numbers. | ||

`[number2]` | [number3] | ... | Optional additional numbers or ranges to include in the calculation of the median. |

## About MEDIAN

When you have a collection of numeric values and want to pinpoint the middle value, the MEDIAN function in Excel stands out as a trustworthy ally. By leveraging the MEDIAN function, you effortlessly determine the median value, a pivotal metric for unraveling insights from numerical data. This function proves invaluable in statistical analyses, financial modeling, and various scenarios where identifying the median is essential for decision-making processes or data interpretation. Whether you're processing sales figures, exam scores, or any numerical dataset, MEDIAN equips you with a straightforward means to ascertain the central value amid a sea of numbers. Excel's MEDIAN function simplifies complex calculations by swiftly identifying the median, thereby streamlining your analysis and enhancing the depth of your data interpretation.

## Examples

Suppose you have a list of exam scores: 85, 90, 75, 88, 92. You want to find the median score. The MEDIAN formula would be: =MEDIAN(85, 90, 75, 88, 92), which returns 88 as the median score.

Consider a dataset of monthly sales figures: $4500, $6000, $4800, $5500, $5100, $5900. To calculate the median sales figure using the MEDIAN function, you would use the formula: =MEDIAN(4500, 6000, 4800, 5500, 5100, 5900), resulting in a median value of $5250.

## Questions

**How does the MEDIAN function handle even and odd numbers of values?**

For an odd number of values, the MEDIAN function returns the middle value in the dataset. In the case of an even number of values, it calculates the median by averaging the two middle values.

**Can the MEDIAN function handle non-numeric values in the dataset?**

No, the MEDIAN function works only with numeric values. If the dataset includes non-numeric values, Excel will return an error.

**Is it necessary to input values in a specific order for the MEDIAN function?**

No, the order in which you input the values does not affect the outcome of the MEDIAN function. It calculates the median based on the values provided, not their sequence.

## Related functions

AVERAGE

MODE

MAX

MIN

PERCENTILE