Skip to content

AVERAGE

Returns the arithmetic mean of the numbers you give it. Blank cells and text are skipped, but zeros count.

Syntax

=AVERAGE(, [number2], ...)

Statistical

All versions of Excel, including Excel for Microsoft 365 and Excel for the web.

Try it

Edit the formula in B9 or change the inputs. The sheet recalculates as you type.

B9
A
B
C
1
Order
Days to deliver
2
PO-5101
3
3
PO-5102
5
4
PO-5103
2
5
PO-5104
4
6
PO-5105
6
7
PO-5106
4
8
9
Average days
4

B9 =AVERAGE(B2:B7) returns 4

How AVERAGE works

AVERAGE adds up the numbers it finds and divides by how many numbers there were. It is the quickest way to answer "what is typical?" for delivery times, order values, scores or monthly sales.

What AVERAGE counts

AVERAGE looks at every argument and keeps only the numbers. In a cell or range reference:

  • Numbers and dates are included. A date is a number to Excel, so averaging dates gives a date.
  • Zeros are included. A zero pulls the average down, and that is usually correct: zero deliveries really did happen.
  • Blank cells are skipped. They don't count towards the total or the divisor.
  • Text is skipped, including text that looks like a number, such as "12" stored as text, and notes such as n/a.
  • TRUE and FALSE inside a range are skipped. Typed straight into the formula, TRUE counts as 1.
  • Error values are not skipped. One #N/A in the range makes the whole result #N/A.

If there are no numbers at all, AVERAGE returns #DIV/0!, because it would be dividing by zero. Wrap it in IFERROR when a blank result should read as "No data".

Several ranges

Add more arguments to average cells that are not adjacent. =AVERAGE(B2:B4,D2:D4) pools both ranges and divides by the combined count. That is different from averaging the two averages, which would give the wrong answer if the ranges are different sizes.

Averages that mislead

The mean is pulled by extreme values. One very large order can drag the average well above what most orders look like. When the data is lopsided, check MEDIAN as well. If some rows should count for more than others, use a weighted average with SUMPRODUCT rather than AVERAGE. To average only the rows that meet a condition, use AVERAGEIF or AVERAGEIFS.

AVERAGE and AVERAGEA

AVERAGEA is the same idea with different rules for text and logicals: text and FALSE in a range count as 0 and TRUE counts as 1. Choose it only when text entries really should behave as zeros. For ordinary numeric data, AVERAGE is the safer choice because it quietly ignores notes and labels.

Format the result to suit the data. AVERAGE returns many decimal places, such as 42.857142857, so use a number format or ROUND for display or reporting.

Arguments

number1
The first number, cell or range to average, such as B2:B9. Point at cells instead of typing numbers so the result follows the data.
number2, ...optional
More numbers, cells or ranges, up to 255 arguments in all. Use them to average ranges that are not next to each other, such as B2:B4,D2:D4.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

Average delivery time

B9 =AVERAGE(B2:B7)

Result: 4

Six orders add up to 24 days, and 24 / 6 is 4.

B9
A
B
C
1
Order
Days to deliver
2
PO-5101
3
3
PO-5102
5
4
PO-5103
2
5
PO-5104
4
6
PO-5105
6
7
PO-5106
4
8
9
Average days
4

B9 =AVERAGE(B2:B7) returns 4

Example 2

Text and blanks are skipped, zeros are not

B9 =AVERAGE(B2:B7)

Result: 9

Tuesday is blank and Wednesday is text, so both are ignored. Thursday's 0 counts: 36 / 4 = 9. If Thursday were blank, the answer would be 12.

B9
A
B
C
1
Day
Returns
2
Mon
12
3
Tue
4
Wed
n/a
5
Thu
0
6
Fri
18
7
Sat
6
8
9
Average returns
9

B9 =AVERAGE(B2:B7) returns 9

Example 3

Average two separate ranges

B6 =AVERAGE(B2:B4,D2:D4)

Result: 11

The target column in between is left out. All six deal counts add up to 66, and 66 / 6 is 11.

B6
A
B
C
D
1
Rep
Q1 deals
Q1 target
Q2 deals
2
Ines
8
10
9
3
Tom
12
10
11
4
Priya
10
10
16
5
6
Average deals
11

B6 =AVERAGE(B2:B4,D2:D4) returns 11

Example 4

Show a message when there is nothing to average

B6 =IFERROR(AVERAGE(B2:B4),"No data")

Result: No data

With no numbers in the range, AVERAGE alone returns #DIV/0!. IFERROR replaces it with a message.

B6
A
B
C
1
Day
Returns
2
Mon
3
Tue
4
Wed
5
6
Average returns
No data

B6 =IFERROR(AVERAGE(B2:B4),"No data") returns No data

Your turn.

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In B10, return the average number of calls per day for Team 1.

Answer in B10.

B10
A
B
C
1
Day
Team 1 calls
Team 2 calls
2
Mon
42
30
3
Tue
38
closed
4
Wed
45
33
5
Thu
40
35
6
Fri
51
closed
7
Sat
36
28
8
Sun
48
31
9
10
Average
11
12

Common mistakes

  • #DIV/0! means the range contained no numbers. Check that the values are real numbers and not text, or wrap the formula in IFERROR.
  • Blank cells are skipped but zeros are counted. If a missing reading was entered as 0, the average comes out too low. Leave missing values empty.
  • Numbers stored as text are ignored without any warning, so the average is calculated from fewer rows than you expect. Compare COUNT with COUNTA on the same range to spot them.
  • A single error value in the range, such as #N/A, makes the whole result an error. Fix the source cell or use AGGREGATE to ignore errors.
  • Averaging percentages or rates of different-sized groups gives a misleading answer. Average the underlying totals, or use a weighted average.

Questions people ask

Does AVERAGE ignore zeros?

No. Zeros are real numbers and are included. To leave them out, use `=AVERAGEIF(B2:B9,"<>0")`.

Why does AVERAGE return #DIV/0!?

The range had no numbers in it. It is either empty, all text, or numbers stored as text. Convert the text to numbers, or show a message with `=IFERROR(AVERAGE(B2:B9),"No data")`.

How do I average only the cells that meet a condition?

Use AVERAGEIF for one condition, such as `=AVERAGEIF(A2:A9,"East",B2:B9)`, or AVERAGEIFS for several.

What is the difference between AVERAGE and MEDIAN?

AVERAGE is the mean: the total divided by the count. MEDIAN is the middle value once the numbers are sorted. A few extreme values move the mean a lot and the median very little.

How do I average the last three values in a column?

Point AVERAGE at the last three cells, such as `=AVERAGE(B7:B9)`. For a range that follows the data automatically, combine it with INDEX or TAKE.

Learn AVERAGE in a real sheet.

AVERAGE is taught in Excel foundations, lesson 6: AVERAGE, MIN and MAX. Each lesson is a short, graded exercise like the one above.