Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Average Numbers in Excel: Step-by-Step Guide

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To average numbers in Excel, select an empty cell, type =AVERAGE(, then drag to select the numbers you want to average (or type the range like B2:B10), and press Enter. The result appears in the cell. That is the fastest method and it works in every modern version of Excel on Windows, Mac, and the web. The rest of this guide covers the variations you will actually run into: averaging non-adjacent cells, ignoring zeros or errors, averaging by condition, and fixing the common reasons a formula returns an error instead of a number.

What You'll Need

  • A copy of Excel (Microsoft 365, Excel 2019 or later, Excel for Mac, or Excel for the web) — the steps below use the standard ribbon, which is consistent across these versions.
  • Numbers entered in cells as actual numbers, not text. If a number is left-aligned in the cell by default, Excel is probably treating it as text, which will break the average.
  • At least one empty cell where the result can go.

Step-by-Step

  1. Click the cell where you want the average to appear. Pick a cell outside your data range so the result does not get mixed into the numbers being averaged.
  2. Type =AVERAGE( — the opening parenthesis is required. As you type, Excel shows a tooltip listing the function and its arguments; you can ignore it or press Tab to accept the function name.
  3. Select the range of numbers. With the cursor still inside the parentheses, click the first cell and drag to the last, or type the range directly (for example C2:C20). Excel inserts the range reference into the formula automatically.
  4. Close the parenthesis and press Enter. The formula should look like =AVERAGE(C2:C20). The cell now shows the average of those numbers.
  5. For non-adjacent cells, separate each reference with a comma. For example =AVERAGE(B2,B5,B9) averages only those three cells. You can mix single cells and ranges: =AVERAGE(B2:B5,D2:D5).
  6. To average an entire column quickly, use the status bar. Select the column of numbers and look at the bottom-right of the Excel window; Excel displays Average, Count, and Sum automatically without writing a formula. This is handy for a one-off check.
  7. To average numbers that meet a condition, use AVERAGEIF. The syntax is =AVERAGEIF(range, criteria, average_range). For example, =AVERAGEIF(A2:A50,"North",B2:B50) averages only the values in column B where column A says North. For multiple conditions, use AVERAGEIFS.
  8. To ignore zeros, use AVERAGEIF with a not-equal criterion. =AVERAGEIF(B2:B20,"<>0") averages the range while skipping any cell containing zero. Plain AVERAGE includes zeros, which drags the result down.
  9. To ignore error values, wrap the range in AGGREGATE. =AGGREGATE(1,6,B2:B20) averages the range while ignoring errors. The 1 means AVERAGE and the 6 means ignore errors. This is useful when some cells contain #DIV/0! or #N/A.
  10. Copy the formula down or across if needed. Drag the fill handle (the small square at the bottom-right of the cell) to apply the same formula to other rows. Use absolute references like $B$2:$B$20 if the range should stay fixed.

Common Mistakes

  • Including the header row. If your range starts at row 1 and row 1 contains a text label like "Sales," AVERAGE ignores the text but the range may look wrong. Start the range at the first data row.
  • Averaging text that looks like numbers. Numbers imported from other systems sometimes arrive as text. AVERAGE skips text entirely, so the result can be wrong or produce a #DIV/0! error if no numeric cells remain. Convert them with Text to Columns or by multiplying by 1.
  • Forgetting that blanks are ignored but zeros are not. A blank cell is excluded from the count; a cell containing 0 is included. If you want blanks treated as zero, you must enter the zeros explicitly.
  • Selecting the wrong range when dragging. It is easy to miss the last row. Check the range reference in the formula bar before pressing Enter.
  • Typing the formula into a cell formatted as Text. The formula will display as text instead of calculating. Change the cell format to General, then re-enter the formula.
  • Using AVERAGE on a range that includes the average cell itself. This creates a circular reference and Excel will warn you. Keep the result cell outside the range.

Tips

  • Use the Name Box to select a range quickly: type B2:B100 into the Name Box and press Enter, then type your formula.
  • Press Alt+= (Windows) or Command+Shift+T (Mac) to insert an AutoSum, then change SUM to AVERAGE in the formula bar — faster than typing the whole function.
  • Format the result cell to show the number of decimal places you need. Right-click the cell, choose Format Cells, and pick Number.
  • Use =ROUND(AVERAGE(B2:B10),2) if you need the average rounded to two decimals in the underlying value, not just displayed that way.
  • For a weighted average, use =SUMPRODUCT(values,weights)/SUM(weights) — plain AVERAGE treats every number equally.
  • Name your ranges (Formulas > Define Name) so formulas like =AVERAGE(Sales) are easier to read and audit.

Troubleshooting

  • #DIV/0! error: Excel found no numeric values in the range. Check that the cells contain numbers, not text, and that the range is correct.
  • #VALUE! error: One of the arguments is not a number or a valid reference. Look for stray text inside the parentheses or a mistyped range.
  • #NAME? error: The function name is misspelled (for example AVERGE instead of AVERAGE) or the function is not available in your version. Check the spelling first.
  • The result looks too low: Zeros are probably included. Switch to AVERAGEIF with the "<>0" criterion.
  • The result looks too high: Check for outlier values or accidentally included totals in the range. Select the range and use the status bar to compare Count with what you expect.
  • The formula shows as text: The cell is formatted as Text. Change the format to General, then click the cell, press F2, and press Enter to force recalculation.
  • Circular reference warning: The formula's range includes its own cell. Move the formula to a cell outside the range.
  • Numbers left-aligned in cells: They are stored as text. Select the column, use Data > Text to Columns, and click Finish to convert them to numbers.

Frequently Asked Questions

What is the difference between AVERAGE and AVERAGEA?

AVERAGE ignores text and blank cells. AVERAGEA counts text as 0 and logical values like TRUE as 1, which usually gives a lower or misleading result. Use AVERAGE unless you specifically need that behavior.

Does AVERAGE include blank cells?

No. Blank cells are excluded from both the sum and the count, so they do not affect the result. Cells containing 0 are included.

How do I average only visible cells after filtering?

Use =SUBTOTAL(101,range). The 101 function number tells Excel to average only the visible rows, ignoring rows hidden by a filter.

Can I average numbers across multiple sheets?

Yes. Use a 3D reference like =AVERAGE(Sheet1:Sheet3!B2:B10), which averages the same range on every sheet between Sheet1 and Sheet3.

Why does my average change when I sort the data?

It should not, unless the formula uses relative references that shift when rows move. Use absolute references ($B$2:$B$20) to keep the range fixed.

How do I average a column that keeps growing?

Convert the range to an Excel Table (Insert > Table) and reference the column, for example =AVERAGE(Table1[Sales]). The formula expands automatically as new rows are added.