How to Average Specific Cells in Excel
In this article
To average specific cells in Excel, use the AVERAGE function with individual cell references separated by commas, like =AVERAGE(A1, B3, C5). For a continuous range, use =AVERAGE(A1:A10). For non-adjacent cells or ranges, separate each reference with a comma: =AVERAGE(A1:A5, C1:C5, E1). You can also use the AVERAGEIF or AVERAGEIFS functions to average only cells that meet certain criteria. This guide walks through each method, plus common pitfalls and fixes.
What You'll Need
- Microsoft Excel (any recent version) or Excel for the web. The steps below work the same on Windows, Mac, and the web unless noted.
- Your data entered into cells. No special add-ins are required.
- Basic familiarity with cell references (e.g., A1, B2:B10).
Step-by-Step
- Select the cell where you want the average to appear. Click any empty cell, for example D1.
- Start the formula. Type =AVERAGE( (include the opening parenthesis).
- Enter the cells or ranges you want to average. You can mix individual cells and ranges. Separate each entry with a comma. Examples:
- Individual cells: =AVERAGE(A1, B3, C5)
- One range: =AVERAGE(A1:A10)
- Multiple ranges: =AVERAGE(A1:A5, C1:C5)
- Mix of cells and ranges: =AVERAGE(A1, B2:B6, D4)
- Close the parenthesis and press Enter. The result appears in the cell.
- Check that Excel selected the correct cells. When you type the formula, Excel highlights the referenced cells with colored borders. If a border is wrong, edit the reference in the formula bar.
- Use the Name Box for quick selection (optional). To average a large range without typing, click the Name Box (left of the formula bar), type the range (e.g., A1:A100), press Enter to select it, then type =AVERAGE( and press Enter. Excel inserts the range automatically.
- Average cells that meet a condition. Use AVERAGEIF for one condition: =AVERAGEIF(A1:A10, ">50", B1:B10) averages values in B1:B10 where the corresponding A cell is greater than 50. For multiple conditions, use AVERAGEIFS: =AVERAGEIFS(B1:B10, A1:A10, ">50", C1:C10, "North").
- Copy the formula if needed. Drag the fill handle (small square at the bottom-right of the cell) to apply the same pattern to other rows or columns. Use absolute references ($A$1) if you want to keep a range fixed.
Common Mistakes
- Including text or blank cells. AVERAGE ignores text and empty cells, but if a cell contains an error (like #DIV/0!), the formula returns an error. Use AVERAGEIF or clean the data first.
- Forgetting commas between multiple ranges. =AVERAGE(A1:A5 C1:C5) is invalid; you need a comma: =AVERAGE(A1:A5, C1:C5).
- Using a space instead of a colon for a range. A1 A5 is not a range; use A1:A5.
- Mixing up AVERAGE and AVERAGEA. AVERAGEA counts text as 0 and logical values as 1/0, which can skew results. Stick with AVERAGE for numeric data.
- Referencing the cell that contains the formula. This creates a circular reference. Make sure the formula cell is not part of the range being averaged.
- Assuming hidden rows are excluded. AVERAGE includes hidden rows. To average only visible cells, use SUBTOTAL with function number 101: =SUBTOTAL(101, A1:A10).
Tips
- Use the Status Bar for a quick check: select the cells you want to average and look at the bottom of the Excel window. Excel shows Average, Count, and Sum automatically (right-click the status bar to choose which stats appear).
- Name your ranges for readability: select a range, type a name in the Name Box, press Enter. Then use =AVERAGE(MyRange).
- Use AVERAGEIFS with wildcards for text conditions, e.g., "North*" matches any text starting with North.
- To average the last N values in a column, combine AVERAGE with OFFSET or INDEX, but be careful with expanding ranges.
- Press Ctrl+` (grave accent) to toggle showing formulas instead of results, useful for auditing.
Troubleshooting
- #DIV/0! error: The range contains no numeric values. Check that the cells are numbers, not text. Use ISTEXT or ISNUMBER to test.
- #VALUE! error: A referenced cell contains text that cannot be coerced to a number, or the formula syntax is wrong (e.g., missing comma).
- Wrong result: Verify the range includes only the intended cells. Use the colored borders or press F2 to edit and see references. Also check for hidden rows or filtered data.
- Formula not calculating: Ensure Calculation Options is set to Automatic (Formulas tab > Calculation Options). Press F9 to recalculate.
- Circular reference warning: The formula refers to its own cell. Move the formula to a different cell or adjust the range.
Frequently Asked Questions
Can I average cells that are not next to each other?
Yes. List each cell or range separated by commas, e.g., =AVERAGE(A1, C3, E5:E10).
How do I average only positive numbers?
Use AVERAGEIF: =AVERAGEIF(A1:A10, ">0").
Does AVERAGE include zero values?
Yes, zeros are included. To exclude zeros, use =AVERAGEIF(A1:A10, "<>0").
What is the difference between AVERAGE and AVERAGEA?
AVERAGE ignores text and logical values in references; AVERAGEA treats text as 0 and TRUE/FALSE as 1/0.
How do I average every other cell?
There is no built-in function for that. You can use a formula like =AVERAGE(IF(MOD(COLUMN(A1:Z1),2)=1,A1:Z1)) entered with Ctrl+Shift+Enter in older Excel, or use FILTER in newer versions. Alternatively, list the cells manually.
Why does my AVERAGE formula return a decimal when I want a whole number?
Format the result cell as Number with 0 decimal places, or wrap the formula in ROUND: =ROUND(AVERAGE(A1:A10),0).