Calculate retirement age which is date of birth plus sixty years

uttamsaxena

Board Regular
Joined
Apr 22, 2003
Messages
182
I need to calculate retirement age.
1. A per son retires on the last day of the month he completes 60 years. Say if born on 02 july 1967 will retire on 31 July 2027. Person born on 14 Feb 1952 will retire on 29 Feb 2012.

2. Only other condition is that if the person is born on 1st of any month he retires on last day of the previous month. Say if born on 01 july 1967 will retire on 30 June 2027. Person born on 01 Feb 1952 will retire on 31 Jan 2012.

I tried the following formula but stuck at how to get 31, 30, 28, 29 in respective months. If Date of Birth is in cell B1 then formula in other cell:
=IF(DAY(B1)=1,(DATE(YEAR(B1)+60,MONTH(B1)-1,DAY(30))),(DATE(YEAR(B1)+60,MONTH(B1),DAY(30))))


Can you help me in making a formula for this.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Which is it? In your first post you said only those born on the FIRST of the month retire on the last day of the previous month, while all others retire on the last day of the month they were born in.

Now you're saying those born on the FIRST and SECOND retire on the last day of the previous month, and those born on the 3-31 retire at the end of that month?
 
Upvote 0
Hi mvptomlinson,
I am sorry for some wrong calculation, but your formula works perfectly. Thanks a lot for the help.
 
Upvote 0

Forum statistics

Threads
1,214,411
Messages
6,119,360
Members
448,888
Latest member
Arle8907

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top