Maths function
AVERAGE function in Google Sheets and Excel
AVERAGE returns the arithmetic mean of numbers: their total divided by how many numbers there are.
Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet
- Excel 2016
- Excel 2019
- Excel 2021
- Excel 2024
- Microsoft 365
- Google Sheets
Syntax
AVERAGE(number1, [number2], ...)Arguments in [brackets] are optional. Google Sheets writes it AVERAGE(value1, [value2, ...]).
Example
=AVERAGE(D2:D9) reads: Add the eight August figures in D2:D9 and divide the total by how many numbers there are, 8.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Rep | Region | Jul | Aug | Sep | Target |
| 2 | Amara Osei | North | $12,400 | $13,100 | $11,800 | $36,000 |
| 3 | Ben Fischer | South | $9,800 | $10,250 | $12,100 | $30,000 |
| 4 | Lina Chen | East | $15,200 | $14,800 | $16,900 | $45,000 |
| 5 | Diego Alvarez | West | $8,700 | $9,100 | $8,400 | $28,000 |
| 6 | Eva Novak | North | $11,200 | $12,600 | $13,900 | $36,000 |
| 7 | Farid Haddad | South | $13,300 | $12,900 | $14,100 | $39,000 |
| 8 | Grace Kim | East | $10,100 | $9,600 | $10,800 | $33,000 |
| 9 | Hugo Martin | West | $14,500 | $15,800 | $15,100 | $42,000 |
| 10 | ||||||
| 11 | Average | $12,269 |
D11 shows $12,269: $98,150 ÷ 8 reps = $12,268.75, shown without cents by the cell's format.
How the spreadsheet calculates it
Works out the average of D2:D9: the numbers added up, divided by how many there are.
- 1. AVERAGE: Works out the average of
D2:D9: the numbers added up, divided by how many there are.range=`D2:D9`: the numbers to average
More AVERAGE examples
=AVERAGE(C2:E2)One rep's average month across July to September.=ROUND(AVERAGE(D2:D9),0)The August average rounded to a whole number.=AVERAGE(C2:C9,E2:E9)The average of July and September together, as one list of 16 numbers.=AVERAGE(LARGE(D2:D9,{1,2,3}))The average of the three best August figures.=IFERROR(AVERAGE(H2:H20),"No data yet")A message instead of #DIV/0! while the column is still empty.
Paste any of these into the formula explainer to see it step by step.
Tips
- Leave cells empty for "no data yet": empty cells are skipped, zeros are counted.
- Round the result with ROUND when it feeds other calculations, so they use the number people see.
- For an average with conditions, use
AVERAGEIFSrather than filtering by hand. - Wrap it in IFERROR when the range may still be empty, so a new sheet doesn't show #DIV/0!.
What AVERAGE is used for
Average sale per rep, average order value, average score or rating, average monthly spend in a budget, and the baseline other figures are compared against ("above average" flags with IF).
Arguments
| Argument | Required | What it is |
|---|---|---|
| number1 | Yes | The first number, cell or range to average, such as D2:D9.Watch out: A range with no numbers at all (only text or empty cells) leaves nothing to divide by: #DIV/0!. |
| number2, ... | No | Up to 255 numbers, cells or ranges in all. They're averaged together as one list, not averaged separately. |
Common mistakes
Typing a 0 for “no data yet”: it drags the average down. Leave the cell empty instead.
Averaging a range that includes the total row, which counts the total as one more rep.
Averaging rates or group averages of different sizes: the average of each region's average isn't the team's average. Divide the totals instead, or use a weighted average.
Expecting a note like "n/a" to count as zero: AVERAGE skips text in a range, so it averages fewer cells than you might think.
In Google Sheets
Google Sheets has AVERAGE with the same arguments (value1, value2…). Google's help describes it as returning the average while ignoring text, as in Excel.
Errors you may see with AVERAGE
Questions
How do I average without the zeros?
Use AVERAGEIF with "<>0" as the condition: =AVERAGEIF(D2:D9,"<>0") skips cells holding 0 but keeps every other number.
How do I average the top three values?
Feed AVERAGE the three largest: =AVERAGE(LARGE(D2:D9,{1,2,3})). LARGE returns the 1st, 2nd and 3rd biggest, and AVERAGE averages them.
Why does my average show so many decimals?
The cell shows the full result of the division. Either format the cell, or round the value itself: =ROUND(AVERAGE(D2:D9),0). Formatting changes only what you see; ROUND changes the number.
When should I use MEDIAN instead?
When a few very large or very small values would pull the average away from what's typical, like salaries or house prices. MEDIAN returns the middle value. See statistics functions.
Sources
Official documentation the facts on this page were checked against.