Function Problems

Calculate Record Age in Excel Using Years, Months, and Days

Khadija KhanKhadija Khan Dec 2, 2026 868 views

Question details

Calculate the elapsed years, months, and days between each record date and today in Excel.

Calculate Record Age in Excel Using Years, Months, and Days
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains record dates, and the user wants to calculate the age of each record.
Observed behavior
Each record should display its elapsed age in years, months, and days, updating as the current date changes.
Before you start

Check that the dates in column B are recognized by Excel as dates and are not later than today. The example starts with the first record date in B2 and places the result in C2.

Solution 1Recommended

Calculate elapsed years, months, and days with a formula

Use DATEDIF, EDATE, and TODAY to display each record's age and fill the formula down the column.

1
Select the result cell

Open the worksheet in Excel and select C2 next to the date in B2.

2
Enter the formula

In C2, enter =DATEDIF(B2,TODAY(),"y")&" year(s), "&DATEDIF(B2,TODAY(),"ym")&" month(s), "&TODAY()-EDATE(B2,DATEDIF(B2,TODAY(),"m"))&" day(s)" and press Enter.

3
Fill down

Select C2 and drag its fill handle down alongside the remaining dates in column B.

Calculate elapsed years, months, and days with a formula
How the calculation works: DATEDIF returns completed years and remaining months. EDATE finds the date after the completed months, and subtracting it from today gives the remaining days. TODAY updates when Excel recalculates the workbook.
Calculate record age in WPS Spreadsheets

Calculate record ages in WPS Spreadsheets

Use the same date formula in WPS Spreadsheets to display elapsed years, months, and days for each record.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. Check the dates: Make sure the first record date is in B2 and that the cells in column B contain valid dates.
  3. 3. Enter the age formula: Select C2 and enter =DATEDIF(B2,TODAY(),"y")&" year(s), "&DATEDIF(B2,TODAY(),"ym")&" month(s), "&TODAY()-EDATE(B2,DATEDIF(B2,TODAY(),"m"))&" day(s)", then press Enter.
  4. 4. Apply it to other records: Drag the fill handle from C2 down alongside the other dates, then use File > Save to save the workbook.
Calculate record ages with DATEDIF, EDATE, and TODAYOpen and save Microsoft Excel XLSX filesFill formulas down a column for multiple recordsWork in a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula return an error for a future date?

DATEDIF requires the start date to be no later than the end date. Check the date in B2 and correct it if it is later than today.

Can I calculate record age as of a specific date instead of today?

Enter the end date in a cell such as E1, then replace every TODAY() in the formula with $E$1. Make sure E1 is a valid date on or after the record date.

Why is a date not working in the formula?

The value in B2 may be stored as text rather than an Excel date. Select the cell and check its format on the Home tab; if necessary, convert recognizable date text using DATEVALUE before applying the age formula.

Can I use the age result in another calculation?

The combined formula returns text. For a numeric value, use an individual calculation such as =DATEDIF(B2,TODAY(),"y") for completed years.