How to Calculate Average in Excel (Formulas and Examples)

Last updated October 2026

How to calculate average in Excel with the AVERAGE function

To calculate an average in Excel, type =AVERAGE(A2:A6) into an empty cell, replace the range with your own data, and press Enter. Excel adds up the numbers and divides by how many there are. For a condition, such as the average of one region only, use AVERAGEIF. For a weighted average, use SUMPRODUCT divided by SUM.

The AVERAGE Function Step by Step

  1. Enter your numbers in one column, one value per cell (for example, cells A2 through A6).
  2. Click an empty cell where you want the result.
  3. Type =AVERAGE(A2:A6), adjusting the range to match your data.
  4. Press Enter. Excel returns the mean straight away.

You can also select the numbers and look at the status bar at the bottom of the Excel window. It shows the average, the count and the sum of the selected cells without typing anything. If you do not see Average there, right-click the status bar and tick it.

Worked Example

Take five test scores: 82, 91, 76, 88 and 95, entered in cells A2 to A6.

=AVERAGE(A2:A6)
CellValue
A282
A391
A476
A588
A695

Behind the scenes, Excel adds the values (82 + 91 + 76 + 88 + 95 = 432) and divides by the count of numbers (5).

Result: 432 ÷ 5 = 86.4

Which Excel Average Function Should You Use?

FunctionWhat it doesExample
AVERAGEMean of the numbers in a range. Ignores blanks and text, counts zeros.=AVERAGE(B2:B6)
AVERAGEIFMean of the cells that meet one condition.=AVERAGEIF(A2:A6,"East",B2:B6)
AVERAGEIFSMean of the cells that meet several conditions.=AVERAGEIFS(B2:B6,A2:A6,"East",B2:B6,">100")
AVERAGEALike AVERAGE, but counts text as 0 and TRUE as 1.=AVERAGEA(B2:B6)
SUMPRODUCT / SUMWeighted average.=SUMPRODUCT(B2:B4,C2:C4)/SUM(C2:C4)
MEDIAN and MODE.SNGLThe middle value and the most frequent value.=MEDIAN(B2:B6)

Average with a Condition: AVERAGEIF

Suppose column A holds a region and column B holds sales: East 120, West 90, East 150, West 110, East 135 (rows 2 to 6). To average only the East sales:

=AVERAGEIF(A2:A6,"East",B2:B6)

The three East values are 120, 150 and 135, which add up to 405, so the average is 405 ÷ 3 = 135. The West average is (90 + 110) ÷ 2 = 100. Note the argument order: AVERAGEIF takes the criteria range first and the range to average last, while AVERAGEIFS takes the range to average first.

You can also test the numbers themselves. =AVERAGEIF(B2:B6,">100") averages only the sales above 100 (120, 150, 110 and 135), giving 515 ÷ 4 = 128.75. To ignore zeros in a list, use =AVERAGEIF(B2:B6,"<>0").

Weighted Average in Excel

When some values count more than others, such as course grades with different credit weights, a plain average is wrong. Excel has no weighted average function, so divide the weighted total by the total weight:

=SUMPRODUCT(B2:B4,C2:C4)/SUM(C2:C4)

Here column B holds the values and column C holds the weights. SUMPRODUCT multiplies each value by its weight and adds the results, and SUM adds the weights.

How to Average Averages Correctly

A very common mistake is averaging a list of averages. It only works when every group has the same number of items. Say Class A has 10 students with an average of 70, and Class B has 30 students with an average of 90.

ClassAverage (B)Students (C)
A7010
B9030
Key takeaway: To average averages, weight each average by how many values it came from. The weights are the group counts.

Common Mistakes and Errors

If you want the mean, median, mode and every step of the working without building a sheet, try the Average Calculator. To go from the average to how spread out the data is, see how to calculate standard deviation in Excel and what variance is.

Frequently Asked Questions

How do I calculate the average in Excel?
Type =AVERAGE(A2:A6) in an empty cell, replacing A2:A6 with your own range, and press Enter. Excel adds up the numbers in the range and divides by how many numbers there are. For the scores 82, 91, 76, 88 and 95, the result is 86.4.
How do I calculate an average of averages in Excel?
Do not simply average the averages, because that treats every group as the same size. Multiply each group's average by its count, add the results, and divide by the total count: =SUMPRODUCT(averages, counts)/SUM(counts). Two classes averaging 70 (10 students) and 90 (30 students) give 85, not 80.
Does Excel's AVERAGE function ignore blank cells and zeros?
AVERAGE ignores blank cells and text, but it counts zeros as real numbers, so a zero pulls the average down. To leave zeros out, use =AVERAGEIF(range,"<>0").
What is the difference between AVERAGE and AVERAGEA?
AVERAGE ignores text and logical values in a range. AVERAGEA counts text as 0, TRUE as 1 and FALSE as 0, so it usually returns a lower number when the range contains text. Use AVERAGE for ordinary numeric data.
How do I calculate a weighted average in Excel?
Use =SUMPRODUCT(values, weights)/SUM(weights). Excel has no built-in weighted average function, but this formula multiplies each value by its weight, adds the products, and divides by the total weight.
Why does my AVERAGE formula show #DIV/0!?
The range has no numbers in it. This usually happens when the numbers are stored as text (often shown with a green corner triangle) or the range is empty. Convert the text to numbers, or use =IFERROR(AVERAGE(range),"") to show a blank instead of the error.

Related Articles

Author

StepSolvers Team

The StepSolvers team writes plain-English math guides that go with our free step-by-step calculators. Each guide explains the idea, works through an example, and links to the calculator that does the arithmetic for you. About StepSolvers