Syntax
=MEDIAN(number1, [number2], ...)
| Argument | What it means |
|---|---|
number1 | The numbers, cells or range. |
Examples with results
Every result below is calculated by the practice engine on the sample data shown, not typed in by hand.
Team list (fictional)
| Row | A | B | C | D | E |
|---|---|---|---|---|---|
| 1 | Name | Department | Salary | Start date | Rating |
| 2 | Amira Hassan | Finance | 9200 | 2019-03-04 | 4 |
| 3 | Ben Carter | Sales | 7800 | 2021-07-19 | 3 |
| 4 | Chen Wei | Sales | 8100 | 2020-01-13 | 5 |
| 5 | Dina Ali | HR | 7200 | 2022-09-01 | 4 |
| 6 | Emil Novak | Operations | 6900 | 2018-11-26 | 2 |
| 7 | Farah Khan | Finance | 10400 | 2016-05-09 | 5 |
| 8 | Gabriel Silva | Operations | 6500 | 2023-02-14 | 3 |
=MEDIAN(C2:C8)Middle salary
=ROUND(AVERAGE(C2:C8),2)The average, for comparison
Try it yourself
Change the formula or switch to other sample data.
Press Calculate to see the result.
The practice box runs in your browser with BDK’s own calculator, which covers about 60 common functions. Cell references work as in Excel (B2, B2:B9). Your formulas are not saved or sent anywhere. For anything unusual, check the result in Excel itself.
How people use MEDIAN at work
- HR
A typical salary that one very high pay does not skew.
Data: Team list (fictional)=MEDIAN(C2:C8) - Finance and accounting
Typical invoice size.
Data: Customer invoices (fictional)=MEDIAN(C2:C6)
Common mistakes and tips
- With an even number of values, MEDIAN averages the two middle ones.
Works in
All versions of Excel, and Google Sheets.
Related formulas
Lessons that use it
Need Something Different? Let’s Talk.
Looking for different features or something built around your workflow? Share your idea with us.