Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Average Years in Excel: Step-by-Step Guide

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To average years in Excel, store each year as a plain number (for example 2019, 2021, 2024) and use =AVERAGE(range) on that column. Excel will return the arithmetic mean as a decimal, such as 2021.67. If you want the result to look like a year, format the cell as a number with zero decimal places. If your years are stored as text or as dates, convert them first, because AVERAGE ignores text and may return an error or a misleading result.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel for the web. The formulas and menu names below are the same across all three, though the ribbon labels can differ slightly by version, device and region.
  • A column of years, ideally one year per row, with no blank rows inside the range.
  • Years entered as numbers (2019) or as dates that Excel recognises (1/1/2019). Text entries such as "2019" with a leading apostrophe will not average.

Step-by-Step

  1. Put each year in its own cell. For example, enter 2018 in A2, 2020 in A3, 2021 in A4 and 2024 in A5. Keep one year per row so the range is clean.
  2. Check that the years are numbers, not text. Click a year cell and look at the Number Format box on the Home tab. If the value is left-aligned by default and the format says Text, the entry is text. To convert it, select the column, open Data > Text to Columns, click Finish, and Excel will coerce the values to numbers. Alternatively, multiply the range by 1 in a helper column with a formula like =A2*1 and copy down.
  3. Click an empty cell where you want the average. A cell below the column, such as A6, is the usual choice.
  4. Type the AVERAGE formula. Enter =AVERAGE(A2:A5) and press Enter. Replace A2:A5 with your actual range. The result appears as a decimal, for example 2020.75.
  5. Format the result as a whole year. Select the result cell, open the Number Format dropdown on the Home tab, and choose Number. Set Decimal Places to 0. The cell now shows 2021.
  6. If your years are stored as full dates, average the year part instead. Use =AVERAGE(YEAR(A2:A5)) and press Ctrl+Shift+Enter in older Excel versions, or Enter in Microsoft 365 where dynamic arrays are supported. This extracts the year from each date and averages those numbers.
  7. Round explicitly if you need a clean year. Wrap the formula in ROUND: =ROUND(AVERAGE(A2:A5),0). This avoids surprises when the decimal is close to .5 and you want a consistent whole year.
  8. Copy the formula down or across if needed. Drag the fill handle to apply the same average to other columns of years, such as start year and end year columns.

Common Mistakes

  • Averaging text years. If years were pasted from another system, they may carry a leading apostrophe and behave as text. AVERAGE skips text values, so the result can be wrong or a #DIV/0! error. Convert to numbers first.
  • Including header cells in the range. A range like A1:A5 that includes the word "Year" in A1 will ignore that text but can confuse you when the count of values looks short. Start the range at the first data row.
  • Forgetting that a year is not a duration. Averaging 2019 and 2021 gives 2020, which is fine as a midpoint year, but averaging years is not the same as averaging ages or elapsed time. If you need average age, subtract the birth year from the current year first.
  • Leaving blank rows inside the range. AVERAGE ignores blanks, which is usually what you want, but a stray blank in the middle can hide a missing entry. Check that every row you intend to include has a value.
  • Expecting the result to display as a year automatically. Excel returns a number, not a date. Without formatting, you see 2020.75 rather than 2021.

Tips

  • Use a named range or an Excel Table so the formula updates automatically when you add new rows. With a table, =AVERAGE(Table1[Year]) expands as rows are added.
  • Use AVERAGEIF to average only a subset, for example =AVERAGEIF(B2:B5,"Active",A2:A5) to average years where a status column says Active.
  • If you want the median year instead of the mean, use =MEDIAN(A2:A5). The median is often more representative when one very old or very new year skews the average.
  • Keep a helper column of plain year numbers if your source data is dates. That makes the average formula simple and auditable.
  • Press Ctrl+` (the grave accent) to toggle formula view and confirm which cells contain formulas versus hard-coded years.

Troubleshooting

  • You see #DIV/0!. The range contains no numeric values. Check for text-formatted years and convert them, or widen the range to include the actual data cells.
  • The result looks like 2020.75 instead of 2021. The formula is correct; the cell format is not. Apply Number format with zero decimal places, or wrap the formula in ROUND.
  • The result is a date such as 7/14/1905. The result cell inherited a Date format. Change it to Number or General. Excel stores dates as serial numbers, so a small average can display as an early date.
  • Years imported as text still will not average. Select the column, use Data > Text to Columns and click Finish, or use Paste Special > Multiply by 1 on a helper column. Then re-check with the ISTEXT function.
  • The average changes when you add rows. The range is fixed and does not include the new rows. Convert the data to a Table or extend the range reference.

Frequently Asked Questions

Can Excel average a column of years directly?

Yes, as long as the years are stored as numbers. Use =AVERAGE(range) and format the result as a whole number. Text-formatted years must be converted first.

Why does my average show a decimal?

Excel returns the arithmetic mean, which is often not a whole number. Format the cell to zero decimal places or wrap the formula in ROUND to display a clean year.

How do I average years when my data is in date format?

Use =AVERAGE(YEAR(range)) to extract the year from each date and average those values. In older Excel versions, enter it as an array formula with Ctrl+Shift+Enter.

What is the difference between AVERAGE and MEDIAN for years?

AVERAGE returns the mean and is pulled by extreme values. MEDIAN returns the middle value and is more robust when one year is much older or newer than the rest.

Can I average only some of the years?

Yes. Use AVERAGEIF with a criteria range, such as a status or category column, to average only the years that meet the condition.

Does averaging years work the same in Excel for the web and Mac?

Yes. The AVERAGE, YEAR, ROUND and AVERAGEIF functions behave the same. Ribbon labels and menu locations can differ slightly by version and region.