How to Calculate Average in Excel: Step-by-Step Guide
In this article
Calculating the average in Excel quickly gives you the arithmetic mean of a range of numbers, helping summarize data for analysis, reporting, or decision-making. You need only a dataset with numeric values in Excel—no add-ins or special setup required.
What You'll Need
- Microsoft Excel installed (Excel 2010 or later works the same for basic averaging)
- A worksheet with numeric data in contiguous or non-contiguous cells
- No internet connection or additional tools needed
Step-by-Step
- Open your Excel workbook and navigate to the worksheet containing your data.
- Click the cell where you want the average to appear—this should be an empty cell outside your data range to avoid circular references.
- Type
=AVERAGE((including the opening parenthesis). Excel will auto-suggestAVERAGEas you type, but ensure you select the full function name. - Select the range of cells you want to average. For example, if your data is in cells A2 through A10, click and drag from A2 to A10. Excel will automatically insert the range reference, so you’ll see
=AVERAGE(A2:A10). - If your data is not in a single block (e.g., A2:A5 and C2:C5), hold Ctrl (Windows) or Command (Mac) while selecting each separate range. The formula will look like
=AVERAGE(A2:A5,C2:C5). - Press Enter (Windows) or Return (Mac). Excel calculates and displays the average immediately.
- Verify the result by manually checking: add the numbers manually or use
=SUM(A2:A10)/COUNT(A2:A10)as a cross-check for small ranges.
Common Mistakes
- Including text or blanks incorrectly: AVERAGE ignores blank cells and text values, but if your data has errors (e.g.,
#DIV/0!), the whole formula returns an error. Always clean errors first. - Accidentally including headers: If you select row 1 (e.g., A1:A10) where A1 is a label like "Sales", AVERAGE treats "Sales" as zero only if it's in the same cell as a number—unlikely—but usually it’s ignored. Still, avoid selecting headers to prevent confusion.
- Using AVERAGE instead of AVERAGEIF: If you need to average only values meeting a condition (e.g., sales over $100), AVERAGE will include all numbers, skewing the result. Use
=AVERAGEIF(range, ">100")instead. - Misspelling the function: Typing
=AVG()or=AVERGAE()causes a #NAME? error. Excel only recognizesAVERAGE. - Overlapping ranges: If you reference the same cell twice (e.g.,
=AVERAGE(A1,A1)), Excel counts it twice, inflating the average unintentionally.
Tips
- Use AVERAGEA for logical/text: If you want blanks treated as 0 and text like "True" treated as 1, use
=AVERAGEA(range). But note: this is only for specialized cases—most users should stick with AVERAGE. - Keyboard shortcut for AutoSum: Highlight your data range plus one empty cell below or to the right, then press Alt + = (Windows) or Command + Shift + T (Mac). Excel inserts
=AVERAGE(...)automatically. - Dynamic ranges with tables: Convert your data to a table (select range > Ctrl + T), then use structured references like
=AVERAGE(Table1[Sales])for formulas that grow with your data. - Format for clarity: After calculating, right-click the result cell > Format Cells > set decimal places (e.g., 2) for readability.
- Check for #VALUE! errors: If your data includes non-numeric text in the range, AVERAGE returns #VALUE!. Use
=AVERAGEIF(range,"<>"&"")to skip blanks or clean data first with Filter > Text Filters.
Troubleshooting
If your AVERAGE formula doesn’t work as expected, follow these checks in order:
- Restart Excel: Occasionally, calculation settings get paused. Go to File > Options > Formulas and ensure Workbook Calculation is set to Automatic. If already automatic, try Ctrl + Alt + F9 (Windows) or Command + Option + F9 (Mac) to force recalculation.
- Inspect cell references: Click the cell with the formula and look in the formula bar. If ranges are wrong (e.g., A2:A9 instead of A2:A10), edit the formula directly or drag the range handles in the worksheet.
- Check for hidden characters: Paste data from external sources (like web pages) using Ctrl + Shift + V (Windows) or Command + Shift + V (Mac) to paste values only, removing invisible formatting.
- Test with a small sample: Copy just 3–5 rows of your data to a new sheet and apply AVERAGE. If it works there, the issue is likely with hidden errors or formatting in the original sheet.
- Look for #NUM! or #DIV/0!: If any cell in the range shows an error, AVERAGE fails. Use Home > Find & Select > Go To Special > Formulas > check Errors to highlight problem cells.
- Rebuild the formula: Delete the existing formula and retype
=AVERAGE(, then select your range with the mouse. This avoids typos from copy-paste or auto-correction.
Frequently Asked Questions
What if my data has zeros? Does AVERAGE include them?
Yes. AVERAGE counts zeros as part of both the sum and the count. For example, =AVERAGE(10,0,20) returns 10 (sum 30 ÷ 3 values). To exclude zeros, use =AVERAGEIF(range,"<>0").
Can I average cells across multiple sheets?
Yes. Use a 3D reference. For example, if sheets "Jan", "Feb", and "Mar" each have data in cell A2, type =AVERAGE(Jan:Mar!A2) in a new sheet. All three sheets’ A2 values will be averaged.
Why does AVERAGE return 0 when I expect a number?
Check for three things: (1) Are all cells blank or text? AVERAGE returns 0 if no numeric data exists. (2) Is your range set to cells with spaces? Trim extra spaces with =TRIM() before averaging. (3) Is the cell formatted as text? Right-click > Format Cells > choose Number.
How do I average only positive numbers?
Use =AVERAGEIF(range,">0"). For multiple conditions (e.g., >0 and <100), use =AVERAGEIFS(range,range,">0",range,"<100").
Does AVERAGE work with filtered data?
No. AVERAGE includes hidden rows. To average only visible (filtered) rows, use =SUBTOTAL(101,range) where 101 is the code for AVERAGE. For example, =SUBTOTAL(101,A2:A100) ignores hidden rows.
How is AVERAGE different from MEDIAN or MODE?
AVERAGE calculates the arithmetic mean (sum ÷ count). MEDIAN finds the middle value when sorted, which is more robust against outliers. MODE returns the most frequent value. Use AVERAGE for symmetric data, MEDIAN for skewed data (e.g., incomes), and MODE for categorical data.