How To Calculate Mean, Median And Mode In Excel (2026)
Excel can find the mean, median, and mode of a list of numbers with three short formulas.
The three results answer different questions, so it helps to know which one you actually need.
This guide uses the definitions and sample data from Microsoft’s own Excel support pages.
Table of Contents
- Quick answer: the three formulas
- What mean, median, and mode mean
- Worked example with six numbers
- Calculate the mean with AVERAGE
- AVERAGE examples from Microsoft
- Calculate the median with MEDIAN
- Calculate the mode with MODE.SNGL
- When there is more than one mode
- Argument limits
- The older MODE function
- How zeros, blanks, and text are handled
- Which measure to use
- Typed values behave differently by function
- Empty cells versus zeros
- When a plain average is not enough
- Official sources
- More Word, Excel and PowerPoint guides
Quick answer: the three formulas
| Measure | Formula | What it returns |
|---|---|---|
| Mean (average) | =AVERAGE(A2:A7) | The sum divided by the count |
| Median | =MEDIAN(A2:A7) | The middle value |
| Mode | =MODE.SNGL(A2:A7) | The most frequent value |
Replace A2:A7 with the range that holds your numbers, then press Enter.
What mean, median, and mode mean
Microsoft defines the average as the arithmetic mean, which you get by adding the numbers and dividing by how many there are.
The median is the middle number, with half the values above it and half below.
The mode is the most frequently occurring value in the set.
Microsoft calls these the three common measures of central tendency.
For a symmetrical distribution all three are the same, and for a skewed distribution they can differ.
Worked example with six numbers
Microsoft uses the set 2, 3, 3, 5, 7, and 10 to show all three measures.
| Measure | Working | Result |
|---|---|---|
| Average | 30 divided by 6 | 5 |
| Median | Average of the middle two values, 3 and 5 | 4 |
| Mode | 3 appears twice | 3 |
The three results are different here because the set is skewed toward larger numbers.
Calculate the mean with AVERAGE
The syntax is AVERAGE(number1,[number2],…), and Microsoft says you can pass up to 255 numbers, cell references, or ranges.
- Type your numbers into a column, such as A2 to A7.
- Click an empty cell.
- Type =AVERAGE(A2:A7) and press Enter.
For a quick method on a row or column of numbers, click a cell below or beside them, open the arrow next to AutoSum in the Editing group on the Home tab, choose Average, and press Enter.
AVERAGE examples from Microsoft
| Data | Formula | Result |
|---|---|---|
| 10, 7, 9, 27, 2 in A2:A6 | =AVERAGE(A2:A6) | 11 |
| Same range plus the number 5 | =AVERAGE(A2:A6,5) | 10 |
| 10, 15, 32 in A2:C2 | =AVERAGE(A2:C2) | 19 |
The second formula shows that you can mix a range and a typed number in one formula.
Calculate the median with MEDIAN
The syntax is MEDIAN(number1,[number2],…), and number1 is the only required argument.
- Click an empty cell.
- Type =MEDIAN(A2:A7) and press Enter.
If the list has an even count of numbers, MEDIAN returns the average of the two middle values.
| Data | Formula | Result |
|---|---|---|
| 1, 2, 3, 4, 5 | =MEDIAN(A2:A6) | 3 |
| 1, 2, 3, 4, 5, 6 | =MEDIAN(A2:A7) | 3.5 |
Calculate the mode with MODE.SNGL
MODE.SNGL returns the most frequently occurring, or repetitive, value in an array or range of data.
- Click an empty cell.
- Type =MODE.SNGL(A2:A7) and press Enter.
With 5.6, 4, 4, 3, 2, and 4 in A2:A7, the formula returns 4.
Microsoft says that if the data has no duplicate values, MODE.SNGL returns #N/A.
When there is more than one mode
MODE.SNGL gives only one value, so use MODE.MULT when several values tie for most frequent.
Microsoft says MODE.MULT returns a vertical array of the most frequently occurring values, and it must be entered as an array formula.
In Microsoft’s example, the values 1, 2, and 3 each appear three times, so MODE.MULT returns all three.
Entered as a regular formula, it returns only 1.
For a horizontal result, Microsoft says to wrap the formula in TRANSPOSE.
If there are fewer modes than selected cells, the extra cells show #N/A.
Argument limits
AVERAGE accepts up to 255 arguments, and each one can be a number, a cell reference, or a range.
MODE.SNGL accepts up to 254 arguments, or a single array or reference.
In practice you will almost always pass one range, such as A2:A7, so these limits rarely matter.
The older MODE function
Microsoft marks MODE as replaced and says it may not be available in future versions of Excel.
It recommends MODE.SNGL and MODE.MULT instead, so use those in new workbooks.
On the same sample data, =MODE(A2:A7) returns 4, the same answer as MODE.SNGL.
How zeros, blanks, and text are handled
| Cell contents | AVERAGE, MEDIAN, and MODE.SNGL |
|---|---|
| Zero | Included |
| Empty cell in a range | Ignored |
| Text in a range | Ignored |
| Logical value in a range | Ignored |
| Error value or text that cannot be converted | Causes an error |
To leave zeros out of an average, Microsoft shows =AVERAGEIF(A2:A7,”<>0″), which returned 11.4 for its sample list.
If numbers are being skipped because they are stored as text, see how to convert numbers stored as text in Excel.
Which measure to use
Use the mean when you want a single figure that reflects every value, such as an average score.
Use the median when a few very large or very small values would pull the mean away from what is typical.
Use the mode when you want the most common value, such as the most frequent order size.
Microsoft notes that the three match for a symmetrical distribution but can differ for a skewed one, so comparing them tells you how lopsided your data is.
Typed values behave differently by function
Microsoft notes that logical values and text versions of numbers typed directly into AVERAGE are not counted.
For MEDIAN, Microsoft says those same typed logical values and number text are counted.
Inside a range or cell reference, both functions ignore text, logical values, and empty cells, so the difference only matters for values typed into the formula itself.
To include logical values and text numbers from a reference in an average, Microsoft points to AVERAGEA.
Empty cells versus zeros
Microsoft warns that empty cells and zeros are treated differently by AVERAGE.
If the Excel option Show a zero in cells that have a zero value is turned off, empty cells are not counted but zeros are.
A cell that looks empty because its zero is hidden still counts as a zero in the average.
When a plain average is not enough
If some values count more than others, a weighted average is the right tool.
Microsoft shows it with SUMPRODUCT divided by SUM, which we cover in our weighted average guide.
To average only the cells that meet a condition, see how to use SUMIF and COUNTIF in Excel.
Official sources
- Microsoft Support: AVERAGE function
- Microsoft Support: MODE.SNGL function
- Microsoft Support: MODE.MULT function
- Microsoft Support: Calculate the average of a group of numbers