To add the mean (average) in Excel, use the AVERAGE function. For example, with numbers in cells A2 through A10, type =AVERAGE(A2:A10) in an empty cell and press Enter. This guide covers that method plus three alternatives: the AutoSum button, the status bar, and a pivot table.
What You’ll Need
- Microsoft Excel (any recent version; steps are for Excel 365 on Windows, with Mac differences noted).
- A worksheet containing numeric data. The mean only makes sense for numbers, so ensure your data is numeric.
- Basic familiarity with selecting cells and typing in the formula bar.
Step-by-Step
Method 1: Using the AVERAGE Function (Manual)
- Click on the cell where you want the mean to appear. This is often directly below or to the right of your data.
- Type
=AVERAGE(. Excel will show a tooltip explaining the function. - Select the range of cells containing your numbers. For example, click and drag from A2 to A10. Alternatively, type the range manually, like
A2:A10. - Close the parenthesis: type
). - Press Enter. The mean appears in the cell.
Example: If A2:A10 contains 5, 10, 15, 20, 25, 30, 35, 40, 45, the formula =AVERAGE(A2:A10) returns 25.
Method 2: Using the AutoSum Button (Quickest)
- Select the cell where you want the mean to appear (e.g., B11 below your data in column B).
- Go to the Home tab on the ribbon.
- In the Editing group, click the AutoSum dropdown arrow (the Σ icon).
- Choose Average from the list.
- Excel will guess the range to average (e.g., B2:B10). If the highlighted range is wrong, drag to select the correct cells.
- Press Enter. The mean is calculated.
Mac: The AutoSum button is also on the Home tab, but the dropdown might be labeled differently. Look for the Σ symbol.
Method 3: Viewing the Mean in the Status Bar (No Formula)
- Select the cells that contain the numbers you want to average. You can click and drag, or hold Ctrl (or Cmd on Mac) while clicking non-adjacent cells.
- Look at the bottom-right corner of the Excel window, in the status bar.
- Excel displays the Average (mean), along with Count and Sum.
- If you don’t see Average, right-click the status bar and check Average in the list.
This method does not insert a formula; it only shows the mean temporarily. Use it for a quick check without modifying your sheet.
Method 4: Using a Pivot Table (For Grouped Data)
- Select any cell inside your data range.
- Go to Insert > PivotTable.
- In the dialog, choose where to place the pivot table (e.g., New Worksheet) and click OK.
- In the PivotTable Fields pane, drag a numeric field (e.g., Sales) into the Values area.
- Click the dropdown arrow next to the field in the Values area and select Value Field Settings.
- Under Summarize value field by, choose Average and click OK.
- The pivot table now shows the mean of that field. If you have categories (e.g., Region), drag that field to the Rows area to get means per category.
Common Mistakes
- Including text or empty cells in the range: The AVERAGE function ignores text and empty cells, but if a cell contains the text “N/A”, it is ignored. However, if you include a cell with an error (like #DIV/0!), the entire formula returns an error.
- Using AVERAGEA instead of AVERAGE: AVERAGEA counts text and FALSE as 0, which can skew the mean. Use AVERAGE for numeric data.
- Selecting a range with a header row: If your first row is a label (e.g., “Sales”), including it in the range will cause the function to ignore it (text), but it’s better to exclude it to avoid confusion.
- Forgetting the equals sign: Typing
AVERAGE(A2:A10)without the=will treat it as text, not a formula. - Using a semicolon instead of a comma: In some locales, Excel uses semicolons as argument separators. If you type a comma and it doesn’t work, switch to semicolon (e.g.,
=AVERAGE(A2:A10)may need to be=AVERAGE(A2:A10)in US, but=AVERAGE(A2:A10)in some European versions).
Tips
- Use named ranges: If you frequently average the same data, select the range, go to the Name Box (left of the formula bar), type a name like
Sales_Data, and press Enter. Then use=AVERAGE(Sales_Data). - Average with criteria: Use
AVERAGEIFfor conditional means. For example, with values in B2:B10 and categories in A2:A10,=AVERAGEIF(A2:A10,"North",B2:B10)gives the mean of B values where A is “North”. - Ignore zeros: If you want to exclude zeros, use
=AVERAGEIF(range,"<>0"). - Keyboard shortcut: After selecting the cell, press Alt+= for AutoSum, then press Enter to accept the SUM. To get AVERAGE, you’ll need to change the function manually or use the dropdown.
- Format the result: The mean may show many decimal places. Use Home > Number > Decrease Decimal to round the display, but note the underlying value remains precise.
Troubleshooting
- The mean shows as #DIV/0!: This happens if the range contains no numbers. Check that your cells contain numeric values, not text or blanks. If you have blanks, either fill them or use
=AVERAGEIF(range,"<>0")to ignore blanks (though blanks are already ignored). - The mean is wrong (too high or low): Check for hidden rows or filtered data. AVERAGE only includes visible cells if you use the SUBTOTAL function with function_num 1 (e.g.,
=SUBTOTAL(1,A2:A10)). Regular AVERAGE includes hidden rows. - Excel doesn’t recognize the formula: Ensure you type the function name correctly (AVERAGE, not AVERAGE). Also, check that you have an equals sign at the start and no extra spaces.
- The status bar doesn’t show Average: Right-click the status bar and check the Average option. If it’s already checked, try selecting a different set of cells or restarting Excel.
- AutoSum selects the wrong range: After clicking Average, manually drag to select the correct cells before pressing Enter. If you accidentally press Enter first, delete the formula and try again.
Frequently Asked Questions
How do I calculate the mean excluding zeros?
Use =AVERAGEIF(range,"<>0"). For example, =AVERAGEIF(A2:A10,"<>0") averages only cells that are not zero.
Can I average only visible cells after filtering?
Yes. Use the SUBTOTAL function with function number 1: =SUBTOTAL(1,A2:A10). This averages only visible (unfiltered) cells.
What’s the difference between AVERAGE and MEDIAN?
AVERAGE is the arithmetic mean (sum divided by count). MEDIAN is the middle value when sorted. For skewed data, median is often more representative. Use =MEDIAN(range) for the median.
Why does my AVERAGE formula return an error?
Common reasons: the range contains text that is not numeric (though text is ignored), or it contains an error value like #N/A. Check for any cells with errors and fix them, or use =AGGREGATE(1,6,range) to ignore errors.
How do I add the mean to a chart?
You can add a horizontal line representing the mean. First, calculate the mean in a cell. Then add a new series to your chart with that single value. Alternatively, use a combo chart with a line for the mean.
Can I calculate the mean for multiple columns at once?
Yes. Select a range that includes multiple columns, and use =AVERAGE(A2:C10) to average all numbers in that rectangular range. Or use AutoSum on a row of cells to get separate means per column.
Related
- Pay Rate for Data Entry: Real Numbers & Factors
- How to Add Subtotal to Filtered Data in Excel
- How to Add Subscript in Excel (3 Quick Ways)
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel NOW Format: Show the Current Date and Time CorrectlyIn Excel, enter =NOW() in a cell to return the current date and time; then format that cell…
- Apple Numbers vs Excel: Which Spreadsheet Should You Use?Apple Numbers is a strong choice for attractive, straightforward spreadsheets on Apple devices; Microsoft Excel is usually the…
- Excel Scatter Plot: How to Create, Format, and Read ItTo make a scatter plot in Excel for Microsoft 365 on Windows, place your X values in one…
- Creating a Booklet in Word: Setup, Pages, and PrintingTo create a booklet in Microsoft Word for Microsoft 365 on Windows, open Layout > Margins > Custom…
- Excel Conditional Formatting on All SheetsExcel does not have a single built-in command that applies one conditional-formatting rule to every worksheet at once.…
- How to Search in Excel: Keyboard Shortcut and TipsTo search an Excel worksheet, press Ctrl+F in Excel for Microsoft 365 on Windows, type the text or…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.