Calculate Record Age in Excel Using Years, Months, and Days
Question details
Calculate the elapsed years, months, and days between each record date and today in Excel.

- 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.
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.
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.
Open the worksheet in Excel and select C2 next to the date in B2.
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.
Select C2 and drag its fill handle down alongside the remaining dates in column B.

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. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Check the dates: Make sure the first record date is in B2 and that the cells in column B contain valid dates.
- 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. Apply it to other records: Drag the fill handle from C2 down alongside the other dates, then use File > Save to save the workbook.

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.




