Calculate retirement date
The EDATE function is fully automatic, and will return a date xx months in the future or past, when given a date and the number of months to traverse.
In this case, we want a date 60 years in the future, starting with a birthdate, so we can write a formula like this for the data in the example:
The date comes from the birth dates in column C. For months, we need the equivalent of 60 years in months. Since you probably don't know how many months are in 60 years, a nice way to do this is to embed the math for that calculation directly in the formula:
Excel will resolve this to 720, then feed that into EDATE for months. Embedding calculations this way can can help make the assumptions and purpose of an argument clear.
Note: EDATE returns a date in Excel's serial number format, so make sure you apply date formatting.
The formula used to get remaining years in column E is:
You can use this same approach to calculate age from birthdate.
Just the year, thanks
What if you just want to know the year of retirement? In that case, you can format the date returned by EDATE with the custom number format "yyyy", or, if you really want only the year, you can wrap the result in the YEAR function like this:
This same idea can be used to calculate dates for wide variety of use cases:
- Warranty expiration dates
- Membership expiration dates
- Promotional period end date
- Shelf life expiration
- Inspection dates
- Certification expiration