Calculating a retirement date based on retirement rules?

SoonerTexan

New Member
Joined
Feb 8, 2013
Messages
11
Hi,

I need to calculate the retirement date of an employee based on the following 3 rules (in essence, the employee's retirement date is whichever rule the employee meets first)

At least 55 years old AND 20 years of service
OR
At least 60 years old AND 5 years of service
OR
At least 65 years old AND 1 year of service

I have Date of Birth in Column F and Hire Date in Column G.

I was able to hack something together when I had only two rules to deal with, but it was a very hard to follow IF statement. With three rules I'm having trouble. Any suggestions?

Thanks!
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
So the revised logic is:
if hire age 45 or less, then 55th birthday,
if hire age less than 50, then hire date +10
if hire age less than 55, then 60th birthday
if hire age less than 64, then the lesser of hire date +5 or 65th birthdate
all others = hire date +0

The formula for the revised logic would be:
Code:
=IF(DATEDIF(F2,G2,"y")<=45,DATE(YEAR(F2)+55,MONTH(F2),DAY(F2)),IF(DATEDIF(F2,G2,"y")<50,DATE(YEAR(G2)+10,MONTH(G2),DAY(G2)),IF(DATEDIF(F2,G2,"y")<55,DATE(YEAR(F2)+60,MONTH(F2),DAY(F2)),IF(DATEDIF(F2,G2,"y")<64,MIN(DATE(YEAR(G2)+5,MONTH(G2),DAY(G2)),DATE(YEAR(F2)+65,MONTH(F2),DAY(F2))),DATE(YEAR(G2)+0,MONTH(G2),DAY(G2))))))
If you compare the 2 formulas, you'll see where I changed the 35 to 45, the 20 to 10, etc.
 
Upvote 0

Forum statistics

Threads
1,222,908
Messages
6,168,967
Members
452,228
Latest member
just4jeffrey

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