AVERAGE function
Returns the arithmetic mean of numbers: add them up and divide by how many there are. Blank cells and text are skipped; zeros count.
Available in All versions of Excel, Excel for the web, Excel for Mac
In every Excel versionWorks in Google Sheets
Syntax
AVERAGE(number1, [number2], ...)| Argument | What it means | |
|---|---|---|
number1 | Required | The first number, cell reference or range to average. |
number2, ... | Optional | Up to 254 more numbers, references or ranges. They can be scattered across the sheet. |
Returns: A number: the sum of all numeric values divided by the count of numeric values.
How AVERAGE works
AVERAGE gives you the everyday "mean": it adds every number you point it at and divides by how many numbers it found. It is the quickest way to answer questions like "what did we sell in a typical month?", "what is the class average?" or "what is the average invoice value?"
The most important rule is what it counts. Inside a range, AVERAGE looks only at cells that contain numbers (dates and times are numbers too). Empty cells, text and TRUE/FALSE values are skipped completely, so they neither add to the total nor to the count. A cell containing 0, however, is a real number and drags the average down. This difference between a blank and a zero is the source of most "wrong" averages.
If a single cell in the range shows an error such as #N/A or #DIV/0!, AVERAGE returns that error too. You can wrap the range in IFERROR or use AGGREGATE to skip errors. When you want to average only some rows, switch to AVERAGEIF or AVERAGEIFS; when one huge value distorts the picture, the MEDIAN or TRIMMEAN may describe the "typical" value better.
Examples
1Average monthly sales
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Month | Sales | ||
| 2 | Jan | 12400 | 14,983.33 | |
| 3 | Feb | 15100 | ||
| 4 | Mar | 13800 | ||
| 5 | Apr | 16200 | ||
| 6 | May | 14500 | ||
| 7 | Jun | 17900 |
Result: 14,983.33
The six months add up to 89,900 and there are 6 numbers, so the mean is 89,900 / 6 = 14,983.33 (shown with a thousands separator and 2 decimals).
2Blank cells are skipped, zeros are not
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Quiz score | ||
| 2 | Ana | 18 | 11.25 | |
| 3 | Ben | |||
| 4 | Chloe | 0 | ||
| 5 | Dan | 15 | ||
| 6 | Eva | 12 |
Result: 11.25
Ben was absent, so his cell is empty and AVERAGE ignores it. Chloe sat the quiz and scored 0, which counts. The result is (18 + 0 + 15 + 12) / 4 = 11.25. If Ben's cell held a 0 instead, the average would fall to 9.
3Average of the top three results
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Sales rep | Deals closed | ||
| 2 | Kim | 42 | 57.67 | |
| 3 | Liam | 57 | ||
| 4 | Mia | 39 | ||
| 5 | Noah | 61 | ||
| 6 | Olga | 48 | ||
| 7 | Pete | 55 |
Result: 57.67
LARGE with the array {1,2,3} returns the three biggest values (61, 57 and 55). AVERAGE then divides their total of 173 by 3, giving 57.67 when shown with 2 decimals.
4Skip error cells in the range
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Cost per unit | ||
| 2 | Pens | 4.5 | 5 | |
| 3 | Paper | 5 | ||
| 4 | Folders | #DIV/0! | ||
| 5 | Tape | 5.5 |
Result: 5
A plain =AVERAGE(B2:B5) would return #DIV/0! because one cell already contains that error. IFERROR turns the error into empty text, which AVERAGE ignores, so the result is (4.5 + 5 + 5.5) / 3 = 5. In Excel 2019 and older, confirm this formula with Ctrl+Shift+Enter.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#DIV/0! | There are no numbers to average: the range is empty or contains only text, blanks or logical values. | Check for numbers stored as text (often left-aligned with a green triangle) and convert them, or wrap the formula: =IFERROR(AVERAGE(B2:B7), ""). |
#VALUE! | A text argument typed directly into the formula cannot be turned into a number, e.g. =AVERAGE("abc", 5). | Reference cells instead of typing text into the formula. |
#N/A (or another error) | One of the cells in the range already shows an error, and AVERAGE passes it on. | Fix the source cell, or use =AGGREGATE(1, 6, B2:B7) which averages while ignoring errors. |
Tips
- Numbers typed directly into the formula are treated differently:
=AVERAGE(10, TRUE)counts TRUE as 1, but TRUE in a cell is ignored. - Select a range and look at the status bar at the bottom of the window: Excel shows the Average, Count and Sum without any formula.
- To average every row's ratio rather than the ratio of totals, be careful: the average of percentages is usually not the same as total profit divided by total revenue.
Questions
Why does AVERAGE give a different answer from SUM divided by the number of rows?
AVERAGE divides by the count of numeric cells only. If some rows are blank or hold text, SUM(B2:B7)/ROWS(B2:B7) divides by more rows and gives a smaller result.
How do I average while ignoring zeros?
Use =AVERAGEIF(B2:B7, "<>0"). It averages only the cells that are not equal to zero.
What is the difference between AVERAGE and MEDIAN?
AVERAGE adds everything and divides, so one huge value (a single big order) pulls it up. MEDIAN takes the middle value after sorting, which is often a fairer picture of a "typical" salary or house price.
Google Sheets
AVERAGE also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
AVERAGE in other languages
In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.
| Language | Function name |
|---|---|
| Czech | PRŮMĚR |
| Danish | MIDDEL |
| Dutch | GEMIDDELDE |
| Finnish | KESKIARVO |
| French | MOYENNE |
| German | MITTELWERT |
| Hungarian | ÁTLAG |
| Italian | MEDIA |
| Norwegian (Bokmål) | GJENNOMSNITT |
| Polish | ŚREDNIA |
| Portuguese (Brazil) | MÉDIA |
| Portuguese (Portugal) | MÉDIA |
| Russian | СРЗНАЧ |
| Spanish | PROMEDIO |
| Swedish | MEDEL |
| Turkish | ORTALAMA |
Recipes that use AVERAGE
- How to average ignoring zeros in Excel
- How to calculate a weighted average in Excel
- How to calculate CAGR in Excel