The AVERAGE function is the fastest way to find a mean in Excel
To find the mean (average) of a set of numbers in Excel, use the AVERAGE function. Type =AVERAGE(, select or type the range of cells containing your numbers, close the parenthesis with ), and press Enter. Excel will calculate and display the mean in that cell.
The mean is the sum of all values divided by how many values there are. Excel does this math for you instantly, which saves time and eliminates the arithmetic mistakes that happen when you calculate by hand.
Key Takeaways
- The AVERAGE function syntax is =AVERAGE(cell1:cell2) or =AVERAGE(cell1, cell2, cell3) depending on whether your numbers are in a continuous range or scattered across the sheet.
- You can type the range directly into the formula or click and drag to select the cells you want to include.
- AVERAGE ignores empty cells and text, so it only counts numeric values in your selection.
- If you need to exclude certain numbers from the mean, use AVERAGEIF or AVERAGEIFS to set conditions first.
How to use AVERAGE with a continuous range of cells
If your numbers sit in cells next to each other — for example, cells A1 through A10 — use a range. Click the cell where you want the result to appear. Type =AVERAGE(A1:A10) and press Enter. The colon between A1 and A10 tells Excel to include every cell in that span.
You do not have to type the cell addresses. Click the cell where you want the result, type =AVERAGE(, then click and drag across the cells you want to average. Excel will fill in the range for you. Release the mouse, type the closing parenthesis, and press Enter.
How to use AVERAGE with cells that are not next to each other
If your numbers are scattered across the sheet — for example, A1, C5, and E12 — list each cell separated by a comma. Type =AVERAGE(A1, C5, E12) and press Enter. Excel will add those three values and divide by three to give you the mean.
You can mix ranges and individual cells in the same formula. For example, =AVERAGE(A1:A5, C10, E1:E3) will average all cells in the range A1 to A5, plus C10, plus all cells in the range E1 to E3. This is useful when your data is organized in multiple sections.
What AVERAGE includes and excludes
AVERAGE counts only cells that contain numbers. If a cell is empty, AVERAGE skips it. If a cell contains text, AVERAGE skips it. This means you can select a large range that has some blank spaces or labels, and AVERAGE will still give you the correct mean of only the numeric values.
If a cell contains a zero, AVERAGE includes it in the calculation. Zero is a number, so it counts toward both the sum and the count. This is different from an empty cell, which is ignored entirely.
Using AVERAGEIF when you want to exclude certain numbers
Sometimes you want to average only numbers that meet a condition — for example, only sales above $500, or only test scores of 80 or higher. Use AVERAGEIF instead. The syntax is =AVERAGEIF(range, criteria). Type =AVERAGEIF(A1:A10, ">500") to average only values greater than 500 in cells A1 through A10.
AVERAGEIFS lets you set multiple conditions. For example, =AVERAGEIFS(A1:A10, A1:A10, ">500", B1:B10, "North") will average values in A1:A10 that are both greater than 500 AND have "North" in the corresponding cell in column B. This is useful when your data has multiple columns and you need to filter by more than one rule.
Common mistakes and how to fix them
If your formula returns an error like #DIV/0!, the range you selected contains no numbers — only text or empty cells. Check that you selected the correct cells and that they actually contain numeric values, not text that looks like numbers.
If the result seems wrong, verify that you are not accidentally including a header row or a total row in your range. For example, if row 1 contains the label "Sales" and row 11 contains a sum, selecting A1:A11 will include both the text and the sum in your average, which will skew the result. Select only the data rows: A2:A10.
If you see a very large or very small number as your result, check whether any cells in your range contain outliers — unusually high or low values. AVERAGE includes all numbers equally, so one very large value will pull the mean upward. If you want to exclude outliers, use TRIMMEAN, which removes a percentage of extreme values from both ends before calculating the mean.
Frequently Asked Questions
Can I average cells from different sheets in the same workbook?
Yes. Type the sheet name, an exclamation point, and the cell range. For example, =AVERAGE(Sheet2!A1:A10) will average cells A1 through A10 on Sheet2. If the sheet name contains a space, wrap it in single quotes: =AVERAGE('Sheet 2'!A1:A10).
What is the difference between AVERAGE and MEDIAN?
AVERAGE adds all values and divides by the count. MEDIAN finds the middle value when all numbers are sorted from smallest to largest. Use MEDIAN when your data has extreme outliers that would distort the mean. For example, if most salaries are $50,000 but one is $500,000, the median salary is more representative than the average.
How do I average only cells that are not empty?
AVERAGE already ignores empty cells, so you do not need to do anything special. If you select A1:A100 and only 50 cells contain numbers, AVERAGE will sum those 50 numbers and divide by 50, not by 100.
Can I use AVERAGE in a conditional format or a chart?
Yes. You can reference a cell containing an AVERAGE formula in conditional formatting rules or use it as a data source for a chart. You can also embed AVERAGE directly in other formulas — for example, =IF(AVERAGE(A1:A10)>50, "Pass", "Fail") will display "Pass" if the average is above 50.