How to Put Average Formula in Excel
In this article
To put an average formula in Excel, type =AVERAGE( in a cell, select the range of numbers you want to average (for example A1:A10), then close the parenthesis and press Enter. The cell will show the mean of those numbers. You can also use the AutoSum drop-down on the Home tab and choose Average to insert the formula automatically. That is the whole process; the rest of this guide explains variations, pitfalls, and fixes.
What You'll Need
- Microsoft Excel on Windows, macOS, or the web version (Excel for Microsoft 365). The steps below apply to all current versions; button labels may differ slightly by version, platform, or region.
- Numbers entered in cells (text, blanks, and logical values are ignored by AVERAGE unless you use AVERAGEA).
Step-by-Step
- Click the cell where you want the result. Pick an empty cell below or beside your data, for example C1 if your numbers are in column A.
- Start the formula. Type
=AVERAGE(— the equals sign tells Excel this is a formula, and AVERAGE is the function name. Excel will show a tooltip listing the arguments. - Select the range. With the cursor after the opening parenthesis, drag over the cells you want to average, or type the range address (e.g.,
A2:A20). You can also type multiple ranges separated by commas:=AVERAGE(A2:A10, C2:C10). - Close the parenthesis and press Enter. The formula becomes
=AVERAGE(A2:A20). Excel calculates and displays the mean. The formula remains visible in the formula bar when the cell is selected. - Alternative: use AutoSum. On the Home tab, in the Editing group, click the arrow next to AutoSum and choose Average. Excel guesses the range above or to the left; press Enter to accept, or drag to correct the range before pressing Enter.
- Alternative: use the function wizard. Click the Insert Function button (fx) next to the formula bar, search for AVERAGE, click OK, then select the range in the Number1 box and click OK.
- Copy the formula if needed. Drag the fill handle (small square at the bottom-right of the cell) down or across. Relative references adjust automatically; use
$to lock a range if it should not change, e.g.,=AVERAGE($A$2:$A$20).
Common Mistakes
- Including text or blank cells. AVERAGE ignores text and empty cells, but if a cell contains a number stored as text (often left-aligned), it is skipped. Use
VALUEor convert the text to numbers first. - Selecting the wrong range. Accidentally including a header row or a total row skews the result. Check the range in the formula bar after pressing Enter.
- Forgetting the closing parenthesis. Excel will offer a correction; accept it or add the
)manually. - Using AVERAGE on cells with errors. If any cell in the range contains an error like #DIV/0!, the result is an error. Use
AGGREGATEorAVERAGEIFto ignore errors. - Confusing AVERAGE with AVERAGEA. AVERAGEA counts text as 0 and logical values as 1/0, which changes the result. Use AVERAGE for pure numbers.
Tips
- Use
AVERAGEIForAVERAGEIFSto average only numbers that meet criteria, e.g.,=AVERAGEIF(B2:B20, ">0"). - Press
Ctrl+Shift+Enteronly for array formulas in older Excel versions; modern Excel handles dynamic arrays automatically. - Format the result as a number with the desired decimal places via the Number Format drop-down on the Home tab.
- To average the entire column excluding the header, use
=AVERAGE(A:A)— but be aware it includes any numbers anywhere in column A, including totals. - Use
SUBTOTAL(1, range)to average only visible cells when rows are filtered.
Troubleshooting
- The formula shows as text. The cell may be formatted as Text. Select the cell, go to Home > Number Format, and choose General, then re-enter the formula.
- #DIV/0! error. The range contains no numeric values. Check that the cells actually contain numbers, not text or blanks.
- #VALUE! error. One or more arguments are not valid — often a range reference is misspelled or includes a space. Check the formula syntax.
- Wrong result. Verify the range: click the cell and look at the colored outlines around the referenced cells. Adjust the range by dragging the colored borders.
- AutoSum picks the wrong range. Excel guesses based on adjacent data. After clicking Average, drag over the correct range before pressing Enter.
- Formula not updating. Check that Calculation Options is set to Automatic (Formulas tab > Calculation Options). Press F9 to recalculate manually if needed.
Frequently Asked Questions
What is the difference between AVERAGE and AVERAGEA?
AVERAGE ignores text, logical values, and empty cells. AVERAGEA includes text as 0 and logical values as 1 (TRUE) or 0 (FALSE). Use AVERAGE for numeric data only.
Can I average non-adjacent cells?
Yes. Separate each cell or range with a comma inside the parentheses, e.g., =AVERAGE(A1, A3, A5) or =AVERAGE(A1:A5, C1:C5).
How do I average only visible cells after filtering?
Use SUBTOTAL(1, range) or AGGREGATE(1, 5, range). AVERAGE includes hidden rows; SUBTOTAL with function number 1 ignores rows hidden by a filter.
Why does my average formula return a decimal when I want a whole number?
The result is the exact mean. To display whole numbers, change the cell's number format to Number with 0 decimal places, or wrap the formula in ROUND: =ROUND(AVERAGE(A1:A10),0).
Does AVERAGE work with dates?
Yes, because Excel stores dates as serial numbers. The result will be a serial number; format the cell as a date to see the average date.
Can I use AVERAGE across multiple sheets?
Yes. Use a 3D reference: =AVERAGE(Sheet1:Sheet3!A1:A10) averages the same range on all sheets between Sheet1 and Sheet3.