Arithmetic Mean in Excel: How to Calculate Averages
In this article
To calculate the arithmetic mean in Excel, use the AVERAGE function by typing =AVERAGE(range) into a cell and selecting the numbers you wish to average. The arithmetic mean is the sum of a collection of numbers divided by the count of those numbers, providing a central value for a dataset. This is the most common type of average used in business and data analysis to identify trends or typical performance levels.
What You'll Need
- A computer with Microsoft Excel installed (any version from Excel 2007 to the current Microsoft 365 version).
- A dataset consisting of numerical values organized in cells, columns, or rows.
- Basic familiarity with selecting cells and entering formulas.
Step-by-Step
- Prepare Your Data: Ensure your numerical data is entered into a continuous range of cells. For example, if you are tracking monthly sales, list the months in column A and the sales figures in column B. Ensure there are no text characters (like "USD" or "approx.") inside the cells with the numbers, as this can interfere with the calculation.
- Select the Target Cell: Click on the empty cell where you want the arithmetic mean to appear. This is typically located directly below the column of data or to the right of a row of data.
- Initiate the Formula: Type the equals sign
=. In Excel, every formula must begin with an equals sign to tell the software that the following characters are a mathematical instruction rather than plain text. - Enter the AVERAGE Function: Type
AVERAGEfollowed by an open parenthesis(. The formula should now look like=AVERAGE(. - Define the Range: There are three ways to select the numbers you want to average:
- Click and Drag: While the parenthesis is open, click the first cell in your dataset and drag your mouse to the last cell. Excel will automatically fill in the range (e.g.,
B2:B12). - Manual Entry: Type the range manually if you know it. For example, if your data is in cells B2 through B12, type
B2:B12. - Individual Selection: If your numbers are not in a continuous block, hold the Ctrl key (Cmd on Mac) and click each individual cell you want to include. Excel will separate these with commas (e.g.,
B2, B5, B8).
- Click and Drag: While the parenthesis is open, click the first cell in your dataset and drag your mouse to the last cell. Excel will automatically fill in the range (e.g.,
- Close and Execute: Type the closing parenthesis
)and press the Enter key. Excel will now calculate the sum of the selected cells and divide by the number of cells containing numeric data, displaying the final arithmetic mean in the cell. - Format the Result: If the result has too many decimal places, go to the Home tab on the ribbon. In the Number group, use the Increase Decimal or Decrease Decimal buttons to adjust the precision of the mean to your preference.
Common Mistakes
One of the most frequent errors is including the header row in the selection range. While the AVERAGE function is designed to ignore text, selecting headers can lead to confusion when auditing your formulas later. Another common mistake is confusing the arithmetic mean with the median. The AVERAGE function calculates the mean; if you need the middle value of a dataset, you must use the MEDIAN function instead.
Users also frequently make mistakes when dealing with zeros. In Excel, a cell containing a 0 is counted as a value and will lower the arithmetic mean. However, a completely empty cell is ignored by the AVERAGE function. If a "zero" actually represents missing data rather than a value of zero, leaving the cell blank is the correct approach to avoid skewing your mean downward.
Another error is the "Circular Reference." This happens if you place the AVERAGE formula inside the same range of cells that the formula is calculating. For example, if you are averaging cells B2 through B10 and you place the formula in cell B10, Excel will enter an infinite loop and return an error or a zero. Always place your result cell outside the data range.
Tips
For those who prefer not to type formulas, Excel offers an "AutoSum" shortcut. On the Home tab, look for the AutoSum button (the Greek sigma symbol Σ). Click the small drop-down arrow next to it and select Average. Excel will attempt to automatically detect the range of numbers above or to the left of your active cell and suggest a range. You simply press Enter to confirm.
If you are working with a very large dataset, you can use the Status Bar for a quick check. Highlight the range of cells you are interested in, and look at the bottom right corner of the Excel window. Excel automatically displays the Average, Count, and Sum of the selected cells in the status bar. This is a great way to verify your formula's result without having to create a dedicated cell for the calculation.
To handle datasets that contain errors (like #N/A or #VALUE!), the standard AVERAGE function will return an error. In these cases, use the AGGREGATE function. The formula =AGGREGATE(1, 6, range) tells Excel to calculate the average (function 1) while ignoring all error values (option 6). This ensures your mean is calculated based on the valid numbers available.
Troubleshooting
If your formula returns #DIV/0!, it means Excel cannot find any numeric values in the range you selected. Check to ensure that your numbers are actually formatted as numbers and not as text. If you see a small green triangle in the corner of your cells, the numbers may be stored as text. To fix this, highlight the cells, click the yellow warning icon that appears, and select Convert to Number.
If the result seems wildly incorrect, check for "outliers." The arithmetic mean is highly sensitive to extreme values. For instance, if you have four values of 10 and one value of 1,000, the mean will be 208, which does not accurately represent the typical value of the group. In such cases, consider calculating the median or removing the outlier if it was a data entry error.
If the formula is not updating when you change the source data, your workbook might be set to Manual Calculation mode. Go to the Formulas tab, click Calculation Options, and ensure that Automatic is selected. If it was set to Manual, your formulas will only update when you press the F9 key.
Frequently Asked Questions
Does the AVERAGE function include blank cells?
No, the AVERAGE function completely ignores empty cells. It only counts cells that contain numbers or dates. This is different from cells containing a zero, which are included in the calculation.
How do I average cells that are not next to each other?
You can average non-adjacent cells by separating the cell references with commas inside the parentheses, such as =AVERAGE(A2, C5, G12), or by holding the Ctrl key while clicking the desired cells.
Can I calculate a weighted average using the AVERAGE function?
No, the AVERAGE function only calculates the simple arithmetic mean where every value has equal weight. For a weighted average, you should use the SUMPRODUCT function divided by the SUM of the weights.
What happens if my range contains text?
The AVERAGE function ignores cells containing text or logical values (TRUE/FALSE). It only considers the numerical values within the specified range when determining the sum and the divisor.
Is there a difference between AVERAGE and AVERAGEA?
Yes. AVERAGE ignores text and logical values. AVERAGEA includes them; it treats text and FALSE as 0 and TRUE as 1. Use AVERAGE for standard numerical data.