Years and months of service as text

Premium

In C2, show the service from A2 to B2 as "6 years, 8 months". Join DATEDIF with "y" for the whole years, the text " years, ", DATEDIF with "ym" for the months left over and " months".

C2
ABCDEF
1Hired Date Service
2Jun 15, 2018 Mar 1, 2025
3
4
5
6
7
8

Premium lesson

Unlock DATEDIF and every other lesson

This is a premium lesson. Premium lets you solve it and every other lesson, take the timed mock tests, and earn certificates you can share on LinkedIn.

Next with premium:Week numbers and weekendsLoans: PMT and NPER
Need help?