Show how long someone has been employed, in years and months.
Copy this formula
=DATEDIF(A2, TODAY(), "y") & "y " & DATEDIF(A2, TODAY(), "ym") & "m"DATEDIF with "y" gives complete years and "ym" gives the leftover months. Concatenating them produces a tenure like "5y 4m". Replace TODAY() with an end date for past employees.
=DATEDIF(HireDate, TODAY(), "y")→5Completed years of service.
=DATEDIF(DATE(2019,4,1), DATE(2026,10,7), "y")→7Seven completed years between 1 April 2019 and 7 October 2026.
=YEARFRAC(DATE(2019,4,1), DATE(2026,10,7))→7.52Tenure as a decimal number of years.
Append DATEDIF(A2, TODAY(), "md") & "d" for the leftover days.
Use =DATEDIF(A2, TODAY(), "m") for the total number of completed months.
Replace TODAY() with the leaving date: =DATEDIF(A2, B2, "y").
Use =EDATE(A2, 12*(DATEDIF(A2, TODAY(), "y")+1)). It adds one more year than the completed years of service.
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.