To get the average in Excel, select an empty cell and type =AVERAGE(range), replacing range with the cells you want to average (for example, =AVERAGE(B2:B10)). Press Enter and Excel returns the arithmetic mean of those numbers. You can also use the AutoSum drop-down on the Home tab and choose Average, or use AVERAGEIF or AVERAGEIFS when you only want to average rows that meet a condition.
This guide walks through the exact steps for the most common cases, plus what to do when the result looks wrong. It applies to Excel for Microsoft 365, Excel 2021 and 2019, and Excel for the web; menu labels can differ slightly by version, device and region.
What You'll Need
- A spreadsheet open in Excel (desktop or web) with at least one column or row of numbers.
- Numbers stored as actual numbers, not text. If a cell is left-aligned by default, it may be text.
- An empty cell where the result can go.
Step-by-Step
- Click the cell where you want the average to appear. Pick a cell outside the range you are averaging, such as the row directly below your numbers.
- Type the formula. Enter
=AVERAGE(and then select the cells with your mouse or type the range, for exampleB2:B10. Close the bracket so the formula reads=AVERAGE(B2:B10). - Press Enter. The cell shows the mean of the numbers in that range.
- Check the range. Click the result cell and look at the coloured outline around the source cells. If the outline misses a row or includes a header, drag the corner of the outline to correct it, or edit the range in the formula bar.
- Copy the formula if needed. Drag the fill handle (the small square at the bottom-right of the cell) down or across to apply the same formula to other rows or columns. Relative references adjust automatically.
- Use AutoSum for a quick average. Select the cell below a column of numbers, go to the Home tab, click the arrow next to AutoSum and choose Average. Excel proposes a range; press Enter to accept it.
- Average only some rows with AVERAGEIF. Use
=AVERAGEIF(criteria_range, criteria, average_range). For example,=AVERAGEIF(A2:A10,"North",B2:B10)averages column B only where column A says North. - Average with multiple conditions using AVERAGEIFS. Use
=AVERAGEIFS(average_range, criteria_range1, criteria1, criteria_range2, criteria2). Each pair adds another condition. - Round the result if you need a clean number. Wrap the formula in ROUND:
=ROUND(AVERAGE(B2:B10),2)shows two decimal places. This changes the displayed value, so keep the unrounded version if you need it for later calculations.
Common Mistakes
- Averaging text or blank cells. AVERAGE ignores text and empty cells, but it does count cells containing zero. If a zero should be treated as missing, use
=AVERAGEIF(range,"<>0")or clean the data first. - Including the header row. A range like
B1:B10that includes a text header is usually harmless because text is ignored, but it becomes a problem if the header is a number or a date. Start the range at the first data row. - Numbers stored as text. If the average is wrong or a cell shows a green triangle, the values may be text. Select the column, use Data > Text to Columns and click Finish, or multiply the cells by 1 in a helper column.
- Using AVERAGE instead of AVERAGEA. AVERAGEA counts text as zero, which pulls the average down. Use it only when that behaviour is intended.
- Forgetting that hidden rows are included. AVERAGE includes hidden and filtered-out rows. To average only visible rows, use
=SUBTOTAL(101,range)or=AGGREGATE(1,5,range). - Circular references. If the result cell is inside the range being averaged, Excel shows a circular reference warning. Move the formula outside the range.
Tips
- Use
Ctrl+Shift+Enteronly for older array formulas; modern Excel handles most array averages with a normal Enter. - Name your range (Formulas > Define Name) so formulas like
=AVERAGE(Sales)are easier to read and audit. - Press
Ctrl+`(the grave accent) to toggle showing formulas instead of results, which helps spot a wrong range quickly. - Use
AVERAGEIFSrather than filtering and averaging manually when you need repeatable results. - If you need the average of a whole column but the data grows, use a structured table reference such as
=AVERAGE(Table1[Sales])so the range expands automatically.
Troubleshooting
- The result is #DIV/0!. The range contains no numeric values. Check for text, blanks or cells formatted as text, and confirm the range is correct.
- The result is #VALUE!. A cell in the range contains an error value, or the range reference is malformed. Fix the error cell or correct the formula syntax.
- The average looks too low or too high. Look for zeros, text-formatted numbers, or rows that should be excluded. Use AVERAGEIF or AVERAGEIFS to narrow the set.
- The formula copies incorrectly. Check whether you need absolute references. Use
$B$2:$B$10to lock the range before dragging the fill handle. - The result changes when you filter. AVERAGE does not respond to filters. Switch to SUBTOTAL or AGGREGATE if you want the average of visible rows only.
- Excel shows a circular reference warning. Move the formula cell outside the averaged range, or check for a formula that refers to its own cell.
Frequently Asked Questions
What is the difference between AVERAGE and AVERAGEA?
AVERAGE ignores text and blank cells. AVERAGEA treats text as zero and counts it, which lowers the result. Use AVERAGE for normal numeric data.
How do I average only visible rows after filtering?
Use =SUBTOTAL(101,range) or =AGGREGATE(1,5,range). Both ignore hidden rows, unlike AVERAGE.
Can I average cells that contain errors?
AVERAGE returns an error if any cell in the range contains an error. Use =AGGREGATE(1,6,range) to ignore error values, or clean the errors first.
How do I average a column but skip zeros?
Use =AVERAGEIF(range,"<>0"). This averages only cells that are not zero, while still ignoring blanks and text.
Why does my average show a date?
The result cell is probably formatted as a date. Select the cell, go to Home > Number Format and choose General or Number.
Does AVERAGE work across multiple sheets?
Yes. Use a 3D reference such as =AVERAGE(Sheet1:Sheet3!B2:B10) to average the same range on several sheets.