The mean (average) in Excel is calculated with the AVERAGE function: click an empty cell, type =AVERAGE(A1:A10) (replacing the range with your own data) and press Enter. Excel adds all the numeric values in that range and divides by how many there are, giving you the arithmetic mean in one step. You can also type =AVERAGE( and drag over the cells with the mouse, which is safer than typing a long range by hand, or use the AutoSum dropdown on the Home tab and choose Average. The rest of this guide covers what to set up, how to handle gaps and outliers, and what to do when the number you get looks wrong.

What You'll Need

  • A copy of Excel on desktop (Microsoft 365, Excel 2021 or 2019) or Excel for the web. The steps below apply to all of them; menu labels and ribbon grouping can differ slightly by version, device and region.
  • Your numbers entered as proper numeric values, not text. A number stored as text is ignored by AVERAGE, which is the single most common cause of a wrong result.
  • The column or row you want to average identified, ideally with a header above it and no blank rows or subtotals mixed in.

If your data lives in another app, import it with Data > From Text/CSV or paste it with Paste Special > Values so it arrives as numbers rather than formatting. You do not need to sort the data first; AVERAGE does not care about order.

Step-by-Step

  1. Check that your values are numbers. Click one cell and look at the status bar at the bottom of the window; if it shows a count and a sum, the cell is numeric. A number that is left-aligned by default while other numbers are right-aligned is usually text. Select the column, then use Data > Text to Columns and click Finish on the dialog to coerce text numbers back to real numbers, or multiply the range by 1 using Paste Special.
  2. Choose an empty cell for the result. Put it directly below the column or beside the row so the answer is easy to read. Do not put it inside the range you are averaging, or the formula will try to include itself.
  3. Start the formula. Type =AVERAGE( and do not press Enter yet. Excel will highlight the function name and show a tooltip describing its arguments.
  4. Select the range. Drag with the mouse from the first to the last cell, or type the range address such as B2:B50. Holding Shift and clicking the last cell is faster for long columns. You can also use Ctrl+Shift+Down Arrow to jump to the bottom of a contiguous column, but check the selection ends where your data ends and does not run into a totals row.
  5. Close the parenthesis and press Enter. The formula reads =AVERAGE(B2:B50) and the cell shows the result. The formula bar still shows the full formula, so you can click the cell later to confirm what it covers.
  6. Average several separate ranges at once. AVERAGE accepts multiple arguments, so =AVERAGE(B2:B50,D2:D50) returns the mean of all values in both ranges combined. Excel weights each value equally regardless of which range it came from, which is what most people want; it does not average the two range averages together.
  7. Add a label and format the result. Type "Average" in the adjacent cell and set the number format with Home > Number Format so the decimal places match your data. A mean of 12.66667 is often better shown as 12.67.
  8. Copy the formula down or across if needed. Drag the fill handle from the corner of the result cell. Relative references shift automatically, so a formula in row 2 copied down to row 3 averages row 3. Use dollar signs such as $B$2:$B$50 if the range must stay fixed while only the result cell moves.
  9. Sanity-check the answer. Compare it with the status bar: select the same range and Excel shows Average there without any formula. If the two disagree, the formula is probably pointing at the wrong cells.

Common Mistakes

Text and blank cells. AVERAGE ignores cells containing text, empty cells and logical values, but it counts cells containing zero. So a column where missing data was entered as 0 will produce a lower mean than a column where those cells were left blank. Decide which behaviour you want before you build the formula, and clean or fill the data accordingly.

Averaging a total. If your range includes a subtotal or grand total row, that large value is treated as just another data point and drags the mean upward. Select only the raw rows, or convert the data to an Excel Table (Insert > Table) so totals sit outside the data body.

Ranges that stop short. Typing B2:B10 when the data runs to B60 gives a mean of the first nine rows only. The column scrolls past the end without any warning. Use the status bar as a cross-check, and get in the habit of selecting with the keyboard rather than typing addresses.

Hidden zeros from rounding. A cell displaying 2.0 may actually hold 2.04. The mean is always calculated from the stored values, not the displayed ones, so a result can look slightly off if you add the visible numbers by hand.

Tips

Use AVERAGEIF or AVERAGEIFS when you need a mean for a subset, for example only rows where the region column says North. The syntax is =AVERAGEIF(C2:C50,"North",B2:B50), where the first range is the criteria range and the last is the values being averaged.

Use MEDIAN alongside AVERAGE when the data has extreme values. A single very large number can pull a mean far from the typical value while leaving the median almost unchanged; reporting both gives a fairer picture.

Name your ranges with Formulas > Define Name so a formula reads =AVERAGE(Sales) instead of a cryptic address. Named ranges do not break when rows are inserted above them.

Freeze the header row with View > Freeze Panes on long sheets so you can confirm you are averaging the right column. Excel for the web and desktop share the same function names, so a formula you write in one opens correctly in the other.

Troubleshooting

You see #DIV/0!. The range contains no numeric values at all, only text or blanks. Check for stray spaces, apostrophes before numbers, or a range pointed at the wrong column.

You see #NAME?. The function name is misspelled or the cell is formatted as text with a leading apostrophe. Retype the formula from scratch rather than editing a broken one.

You see #VALUE!. An argument that should be a range is not valid, often because a comma or colon was replaced by a semicolon or the range reference was typed with a space inside it.

The result changes when you sort or insert rows. Insert rows inside the range, not at its edges, so Excel expands the reference. If you insert above the first row, the range may not grow; recheck the formula bar.

The number looks wrong but the formula looks right. Select the range and read the status bar count and sum. If the count is lower than the number of rows you expected, some cells are text or blank. Filtering the sheet does not change AVERAGE results, because AVERAGE includes hidden rows; if you need visible rows only, use SUBTOTAL(101,range) instead, which ignores rows hidden by a filter.

Frequently Asked Questions

Does AVERAGE count blank cells?

No. Blank cells are ignored entirely, so they do not lower the mean. Cells containing zero are counted as zero and do lower it.

How do I average numbers stored as text?

Convert them first with Data > Text to Columns, clicking Finish without changing any options, or multiply the range by 1 with Paste Special > Multiply. AVERAGE will skip text values rather than convert them.

Can I average only the visible rows after filtering?

Not with AVERAGE, which includes hidden rows. Use SUBTOTAL(101,range), which averages only rows visible after a filter.

What is the difference between AVERAGE and AVERAGEA?

AVERAGE ignores text and logical values. AVERAGEA includes them, treating text as zero and TRUE as 1, which usually gives a different and often unwanted result.

Why does my mean differ from the average in the status bar?

The status bar averages exactly the selected cells. A mismatch means your formula range is larger or smaller than the selection, or includes a totals row.