---
title: "MEDIAN function in Excel: syntax and examples | PracticeExcel"
description: "How to use MEDIAN in Excel and Google Sheets: the middle value, and why it resists outliers better than AVERAGE."
canonical_url: "https://practiceexcelonline.com/functions/median"
locale: en
meta:
  "og:description": "How to use MEDIAN in Excel and Google Sheets: the middle value, and why it resists outliers better than AVERAGE."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TUVESUFOIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBNRURJQU4gaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBtaWRkbGUgdmFsdWUsIGFuZCB3aHkgaXQgcmVzaXN0cyBvdXRsaWVycyBiZXR0ZXIgdGhhbiBBVkVSQUdFLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TUVESUFOKG51bWJlcjEsIFtudW1iZXIyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvbWVkaWFuIg%2Cs_Bn6zC78OJqJMI6xI.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "MEDIAN function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TUVESUFOIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBNRURJQU4gaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBtaWRkbGUgdmFsdWUsIGFuZCB3aHkgaXQgcmVzaXN0cyBvdXRsaWVycyBiZXR0ZXIgdGhhbiBBVkVSQUdFLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TUVESUFOKG51bWJlcjEsIFtudW1iZXIyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvbWVkaWFuIg%2Cs_Bn6zC78OJqJMI6xI.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The MEDIAN function**

Returns the middle value of a set of numbers. With an even count it averages the two in the middle.

=

MEDIAN(

## **Syntax**

```
MEDIAN(number1, [number2], ...)
```

<dl><dt>**number1 **</dt>
<dd>The first number, cell or range.</dd>
<dt>**number2 **(optional)</dt>
<dd>More numbers or ranges.</dd></dl>

## **Examples**

E1=MEDIAN(C2:C6)

|  | A | B | C | D | E |
| --- | --- | --- | --- | --- | --- |
| 1 | Region | Product | Sales |  | **300** |
| 2 | North | Shoes | 500 |  | |
| 3 | South | Shoes | 300 |  | |
| 4 | North | Bags | 250 |  | |
| 5 | North | Shoes | 420 |  | |
| 6 | South | Bags | 180 |  | |

B1=MEDIAN(1,2,3,10)

|  | A | B |
| --- | --- | --- |
| 1 |  | **2.5** |

## **Related functions**

- [**AVERAGE**](https://practiceexcelonline.com/functions/average)
- [**LARGE**](https://practiceexcelonline.com/functions/large)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/median#webpage","@type":"WebPage","description":"How to use MEDIAN in Excel and Google Sheets: the middle value, and why it resists outliers better than AVERAGE.","name":"MEDIAN function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/median","breadcrumb":{"@id":"https://practiceexcelonline.com/functions/median#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/median"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/median#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"MEDIAN function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/median#article","description":"How to use MEDIAN in Excel and Google Sheets: the middle value, and why it resists outliers better than AVERAGE.","headline":"MEDIAN function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TUVESUFOIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBNRURJQU4gaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBtaWRkbGUgdmFsdWUsIGFuZCB3aHkgaXQgcmVzaXN0cyBvdXRsaWVycyBiZXR0ZXIgdGhhbiBBVkVSQUdFLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TUVESUFOKG51bWJlcjEsIFtudW1iZXIyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvbWVkaWFuIg%2Cs_Bn6zC78OJqJMI6xI.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/median#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/median#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TUVESUFOIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBNRURJQU4gaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBtaWRkbGUgdmFsdWUsIGFuZCB3aHkgaXQgcmVzaXN0cyBvdXRsaWVycyBiZXR0ZXIgdGhhbiBBVkVSQUdFLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TUVESUFOKG51bWJlcjEsIFtudW1iZXIyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvbWVkaWFuIg%2Cs_Bn6zC78OJqJMI6xI.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~TUVESUFOIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBNRURJQU4gaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IHRoZSBtaWRkbGUgdmFsdWUsIGFuZCB3aHkgaXQgcmVzaXN0cyBvdXRsaWVycyBiZXR0ZXIgdGhhbiBBVkVSQUdFLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~TUVESUFOKG51bWJlcjEsIFtudW1iZXIyXSwgLi4uKQ%2Cp_Ii9mdW5jdGlvbnMvbWVkaWFuIg%2Cs_Bn6zC78OJqJMI6xI.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
