The AVERAGE function does the math for you
To find an average in Excel, use the AVERAGE function. Type =AVERAGE(, then select the cells you want to average, then close with ). Excel adds up all the numbers and divides by how many numbers there are. You get the result in one cell.
The simplest example: if you have numbers in cells A1 through A5, click an empty cell and type =AVERAGE(A1:A5), then press Enter. Excel shows you the average. You do not have to do any division yourself.
This works for any range of cells in a row, a column, or a rectangle. It also works if your numbers are scattered across the sheet — you can select multiple separate ranges by holding Ctrl (or Cmd on Mac) and clicking each one, then typing them into the formula separated by commas.
Key Takeaways
- The AVERAGE function is =AVERAGE(A1:A5) for a range, or =AVERAGE(A1,A3,A5) for specific cells.
- Excel ignores empty cells and text when calculating an average — it only counts numbers.
- You can average cells in different parts of the sheet by holding Ctrl and clicking each range, then separating them with commas in the formula.
- If you need to exclude certain numbers (like zeros or negative values), use AVERAGEIF instead to set a condition.
Selecting a range versus picking individual cells
A range is a block of cells in a row or column. When you type =AVERAGE(A1:A5), the colon means "from A1 to A5, including everything in between." This is the fastest way if your numbers sit next to each other.
If your numbers are scattered, you can pick individual cells instead. Type =AVERAGE(A1,A3,A7) — the commas separate each cell. Excel averages only those three cells, skipping A2, A4, A5, and A6.
You can also mix both methods in one formula: =AVERAGE(A1:A5,C2:C6) averages all cells in the A1-to-A5 range plus all cells in the C2-to-C6 range. This is useful when your data is split across different columns or sections of the sheet.
What AVERAGE ignores and what it counts
Excel's AVERAGE function counts only cells that contain numbers. If a cell is empty, AVERAGE skips it. If a cell contains text (like a label or a word), AVERAGE skips that too. This means you can safely include a header row or a column with names without breaking the calculation.
If you have a cell with a formula that returns a number, AVERAGE counts it. If a cell shows an error (like #DIV/0!), AVERAGE will fail and show an error itself — you will need to fix the broken cell first or exclude it from the range.
Zeros are counted as numbers, so =AVERAGE(5,0,10) gives you 5, not 7.5. If you want to exclude zeros, use =AVERAGEIF(A1:A5,"<>0") instead, which averages only cells that are not equal to zero.
Using AVERAGEIF to set conditions
Sometimes you want to average only numbers that meet a certain rule. The AVERAGEIF function lets you do this. The formula is =AVERAGEIF(range, criteria).
For example, if column A has sales numbers and you want to average only the ones above 100, type =AVERAGEIF(A1:A10,">100"). Excel averages only cells in that range with values greater than 100. You can use ">100", "<50", "=25", or "<>0" (not equal to zero).
You can also average based on text. If column A has product names and column B has prices, and you want the average price of all "Widget" items, use =AVERAGEIF(A1:A10,"Widget",B1:B10). This looks at column A for the word "Widget" and averages the matching numbers in column B.
Copying a formula to other cells
Once you have written an AVERAGE formula in one cell, you can copy it to other cells and Excel adjusts the cell references automatically. If you type =AVERAGE(A1:A5) in cell C1, then copy that cell and paste it in C2, the formula becomes =AVERAGE(A2:A6).
To copy a formula down a column, click the cell with the formula, then drag the small square at the bottom-right corner of the cell down as far as you need. Excel fills each row with the formula, shifting the cell references each time. This is much faster than typing the formula over and over.
If you want the formula to always reference the same cells (like a total row that never changes), use a dollar sign: =AVERAGE($A$1:$A$5). The dollar signs lock those cell references so they do not shift when you copy the formula.
Common mistakes and how to fix them
The most common mistake is including a header row by accident. If row 1 says "Sales" and rows 2–10 have numbers, typing =AVERAGE(A1:A10) will fail because Excel tries to average the word "Sales" along with the numbers. Start your range at A2 instead: =AVERAGE(A2:A10).
Another mistake is forgetting the colon in a range. =AVERAGE(A1 A5) does not work — you need =AVERAGE(A1:A5). Excel will show an error if you forget.
If your formula shows an error like #DIV/0!, it usually means one of the cells in your range contains an error. Check each cell in the range and fix or delete the broken one. If you want to ignore error cells, use =AVERAGEIF(A1:A10,"<>0") or a more advanced function like AGGREGATE, which can skip errors automatically.
Frequently Asked Questions
Can I average cells from different sheets?
Yes. Type the sheet name, then an exclamation mark, then the cell reference. For example, =AVERAGE(Sheet1!A1:A5,Sheet2!A1:A5) averages cells from both sheets. If the sheet name has a space, put it in single quotes: =AVERAGE('Sheet 1'!A1:A5).
What is the difference between AVERAGE and AVERAGEA?
AVERAGE counts only numbers and ignores text and empty cells. AVERAGEA counts empty cells as zero and treats TRUE as 1 and FALSE as 0. For most everyday use, AVERAGE is what you want. Use AVERAGEA only if you specifically need to count empty cells as zero.
How do I average only the top 5 values in a column?
Use the LARGE function inside AVERAGE: =AVERAGE(LARGE(A1:A10,ROW(1:5))), then press Ctrl+Shift+Enter (not just Enter) to make it an array formula. This is advanced — for simpler filtering, sort your data and average the top rows manually, or use AVERAGEIF with a condition instead.
Can I average cells that contain formulas?
Yes. AVERAGE works on the result of a formula, not the formula itself. If cell A1 contains =5+5 (showing 10), then =AVERAGE(A1:A5) counts that 10 in the average just like any other number.