Calculate Earliest Retirement Eligibility Date, Multiple Conditions

cj75

New Member
Joined
Jun 4, 2024
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Requesting help with a formula that meets the following requirements of eligibility:

1) Minimum Age - 55 Years (x)
2) Minimum Years of Service - 10 Years (y)
Years of Service = Current Year minus Date of Hire plus 1
3) x + y ≥ 70 years

Available Data - DOB, DOH, Age, Years of Service
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Change the Years of Service formula to whatever you use.

Book1
ABCDEFG
1Today6/4/2024
2
3NameDOBDOHYears of serviceAgeEarliest Retirement
4Name112/22/197112/11/199825.4852.4512/21/2026
5Name21/8/19628/27/199429.7762.406/4/2024
6Name34/29/19715/20/201014.0453.104/28/2026
7Name48/2/19975/21/20195.0426.848/1/2052
8Name55/5/19881/7/20186.4136.085/5/2043
9Name67/5/19866/4/20177.0037.927/4/2041
10Name712/6/19964/1/20195.1827.4912/6/2051
11Name810/30/19651/6/199232.4158.606/4/2024
12Name98/16/19736/14/200518.9750.808/15/2028
13
Sheet8
Cell Formulas
RangeFormula
B1B1=TODAY()
D4:D12D4=(TODAY()-C4)/365.25
E4:E12E4=(TODAY()-B4)/365.25
F4:F12F4=LET(YearsTo55, 55-E4, YearsTo10Service, 10-D4, YearsTo70, (70 - (E4+D4))/2, Yrsmax, MAX(YearsTo55,YearsTo10Service,YearsTo70), MAX(TODAY(), TODAY()+Yrsmax*365.25))
 
Upvote 1
Solution
Here is an alternative approach:
Excel Formula:
=LET(d,SEQUENCE(60*365,,EDATE(C4,10*12)),x,DATEDIF(B4,d,"y"),y,DATEDIF(C4,d,"y"),XLOOKUP(1,(x>=55)*(y>=10)*(x+y>=70),d,,1))
You may want to compare it vs. formula from Post #2 for, say, DOB of 6/14/1969 and DOH of 3/31/2014.
 
Upvote 0
Here is an alternative approach:
Excel Formula:
=LET(d,SEQUENCE(60*365,,EDATE(C4,10*12)),x,DATEDIF(B4,d,"y"),y,DATEDIF(C4,d,"y"),XLOOKUP(1,(x>=55)*(y>=10)*(x+y>=70),d,,1))
You may want to compare it vs. formula from Post #2 for, say, DOB of 6/14/1969 and DOH of 3/31/2014.
This works great in identifying date especially when it is already in the past - however I don't think it doesn't captures our "years of service" consideration so would need to find a way to account for that.
 
Upvote 0
Could you please give an example of not capturing the "years of service" consideration?
 
Upvote 0
Could you please give an example of not capturing the "years of service" consideration?
Its not the years of service factor the formula aligns the retirement date with either the DOB or DOH only which seems to elongate the time to retirement:
BirthdateHire DateRetirement Eligibility Date #1Retirement Eligibility Date #2
06/25/196302/29/201602/28/202503/01/2026
04/08/195204/04/201604/04/202504/04/2026
10/17/196404/18/201604/18/202504/18/2026
12/08/196509/21/201504/30/202512/08/2025
09/12/196502/16/201605/30/202502/16/2026
03/09/196712/08/201407/23/202503/09/2026
07/17/196709/29/201408/22/202507/17/2026
09/29/197004/04/201109/28/202504/04/2026
03/11/196808/11/201411/25/202508/11/2026
09/22/196802/03/201411/28/202509/22/2026
10/17/196001/09/201701/09/202601/09/2027
 
Upvote 0
So, could you please point out what is wrong with DOR #2?
DOBDOHDOR #1AgeYOSAge+YOSDOR #2AgeYOSAge+YOS
6/25/1963​
2/29/2016​
2/28/2025​
61​
8​
69​
3/1/2026​
62​
10​
72​
4/8/1952​
4/4/2016​
4/4/2025​
72​
9​
81​
4/4/2026​
73​
10​
83​
10/17/1964​
4/18/2016​
4/18/2025​
60​
9​
69​
4/18/2026​
61​
10​
71​
12/8/1965​
9/21/2015​
4/30/2025​
59​
9​
68​
12/8/2025​
60​
10​
70​
9/12/1965​
2/16/2016​
5/30/2025​
59​
9​
68​
2/16/2026​
60​
10​
70​
3/9/1967​
12/8/2014​
7/23/2025​
58​
10​
68​
3/9/2026​
59​
11​
70​
7/17/1967​
9/29/2014​
8/22/2025​
58​
10​
68​
7/17/2026​
59​
11​
70​
9/29/1970​
4/4/2011​
9/28/2025​
54​
14​
68​
4/4/2026​
55​
15​
70​
3/11/1968​
8/11/2014​
11/25/2025​
57​
11​
68​
8/11/2026​
58​
12​
70​
9/22/1968​
2/3/2014​
11/28/2025​
57​
11​
68​
9/22/2026​
58​
12​
70​
10/17/1960​
1/9/2017​
1/9/2026​
65​
9​
74​
1/9/2027​
66​
10​
76​
 
Upvote 0
Your formula seems to make individuals work longer than is required
BirthdateAge
(55)
Hire DateYears of Service (10)Retirement Eligibility Date #1Age @ RetirementYoS @ RetirementEquals Age+YoSRetirement Eligibility Date #2Age @ RetirementYoS @ RetirementEquals Age+YoSDifference #2 minus#1
01/06/19834105/14/20241.0603/11/203855.1814.8270.0001/06/203956.0015.6571.651.65
12/26/19824104/01/20241.1802/12/203855.1314.8770.0012/26/203856.0015.7471.741.74
04/02/19824201/08/20241.4108/20/203755.3814.6270.0004/02/203856.0015.2371.231.23
02/27/19824205/08/20232.0804/02/203755.1014.9070.0002/27/203856.0015.8171.811.81
09/13/19814309/25/20231.7003/20/203755.5214.4870.0009/25/203756.0315.0071.031.03
08/02/19814305/23/20232.0412/26/203655.4014.6070.0008/02/203756.0015.2071.201.20
04/23/19814307/17/20231.8912/03/203655.6214.3870.0007/17/203756.2315.0071.231.23
04/19/19814308/15/20222.8106/16/203655.1614.8470.0004/19/203756.0015.6871.681.68
03/24/19814301/22/20241.3702/21/203755.9214.0870.0001/22/203856.8315.0071.831.83
02/16/19814305/01/20232.1009/23/203655.6014.4070.0005/01/203756.2015.0071.201.20
02/14/19814304/25/20223.1203/20/203655.1014.9070.0002/14/203756.0015.8171.811.81
09/12/19804402/06/20232.3305/25/203655.7014.3070.0002/06/203756.4015.0071.401.40
08/28/19804411/16/20222.5604/07/203655.6114.3970.0011/16/203656.2215.0071.221.22
08/05/19804409/25/20231.7008/30/203656.0713.9370.0008/05/203757.0014.8671.861.86
07/21/19804405/01/20232.1006/10/203655.8914.1170.0005/01/203756.7815.0071.781.78
03/19/19804401/03/20232.4202/10/203655.9014.1070.0001/03/203756.7915.0071.801.80
03/10/19804401/16/20232.3902/12/203655.9314.0770.0001/16/203756.8515.0071.861.86
11/22/19794502/01/20223.3406/28/203555.6014.4070.0002/01/203656.1915.0071.191.19
09/24/19794506/01/20214.0101/27/203555.3414.6670.0009/24/203556.0015.3171.311.31
09/16/19794506/27/20222.9408/06/203555.8914.1170.0006/27/203656.7815.0071.781.78
08/22/19794503/28/20223.1906/09/203555.8014.2070.0003/28/203656.6015.0071.601.60
08/13/19794507/18/20222.8907/31/203555.9614.0470.0007/18/203656.9315.0071.931.93
03/02/19794501/02/20241.4301/31/203656.9213.0870.0001/02/203757.8414.0071.841.84
02/28/19794509/19/20222.7106/09/203556.2813.7270.0002/28/203657.0014.4471.441.44
02/18/19794501/31/20223.3502/09/203555.9814.0270.0001/31/203656.9515.0071.951.95
02/04/19794505/09/20223.0803/23/203556.1313.8770.0002/04/203657.0014.7471.741.74
01/25/19794504/22/20241.1203/09/203657.1212.8870.0001/25/203758.0013.7671.761.76
01/09/19794503/25/20241.2002/16/203657.1012.9070.0001/09/203758.0013.7971.801.80
10/27/19784601/04/20241.4211/30/203557.0912.9170.0010/27/203658.0013.8171.811.81
07/21/19784605/31/20232.0206/25/203556.9313.0770.0005/31/203657.8614.0071.861.86
05/18/19784604/15/20241.1410/31/203557.4612.5470.0005/18/203658.0013.0971.091.09
03/23/19784607/02/20195.9305/12/203355.1414.8670.0003/23/203456.0015.7271.721.72
02/10/19784610/04/20213.6706/08/203456.3213.6870.0002/10/203557.0014.3571.351.35
02/07/19784608/29/20222.7711/18/203456.7813.2270.0008/29/203557.5614.0071.551.55
11/08/19774703/09/20205.2407/09/203355.6714.3370.0003/09/203456.3315.0071.331.33
10/08/19774701/02/20241.4305/21/203557.6212.3870.0001/02/203658.2313.0071.231.23
09/26/19774707/22/20195.8802/22/203355.4114.5970.0009/26/203356.0015.1871.181.18
09/04/19774701/22/20241.3705/14/203557.6912.3170.0001/22/203658.3813.0071.381.38
06/01/19774710/10/20231.6602/04/203557.6812.3270.0010/10/203558.3613.0071.361.36
05/03/19774703/01/20214.2710/01/203356.4113.5970.0005/03/203457.0014.1771.171.17
02/24/19774704/01/20241.1803/14/203558.0511.9570.0002/24/203659.0012.9071.901.90
01/30/19774712/03/20186.5107/02/203255.4214.5870.0001/30/203356.0015.1671.161.16
01/24/19774701/17/20223.3801/20/203456.9913.0170.0001/17/203557.9814.0071.981.98
12/11/19764709/27/20213.6911/03/203356.9013.1070.0009/27/203457.7914.0071.791.79
10/25/19764809/18/20231.7210/06/203457.9512.0570.0009/18/203558.9013.0071.901.90
08/31/19764802/18/20205.3011/24/203256.2313.7770.0008/31/203357.0014.5371.531.53
08/22/19764802/13/20232.3105/19/203457.7412.2670.0002/13/203558.4813.0071.481.48
07/23/19764809/18/20177.7208/21/203155.0814.9270.0007/23/203256.0015.8471.841.84
03/08/19764802/01/20196.3402/19/203255.9514.0570.0002/01/203356.9015.0071.901.90
03/04/19764804/01/20196.1803/17/203256.0413.9670.0003/04/203357.0014.9271.921.92
12/16/19754802/21/20178.2901/18/203155.0914.9170.0012/16/203156.0015.8171.811.81
12/01/19754905/01/20241.1008/16/203458.7111.2970.0005/01/203559.4112.0071.411.41
09/22/19754903/18/20196.2212/19/203156.2413.7670.0009/22/203257.0014.5271.521.52
09/17/19754909/13/20213.7303/16/203357.5012.5070.0009/17/203358.0013.0171.011.01
09/17/19754902/01/20241.3405/25/203458.6911.3170.0002/01/203559.3812.0071.381.38
07/25/19754910/04/20213.6702/27/203357.6012.4070.0010/04/203358.2013.0071.201.20
07/22/19754912/04/20231.5103/28/203458.6811.3270.0012/04/203459.3712.0071.371.37
07/06/19754905/16/20241.0606/10/203458.9311.0770.0005/16/203559.8612.0071.861.86
05/11/19754908/28/20177.7701/03/203155.6514.3570.0008/28/203156.3015.0071.301.30
04/06/19754910/09/20186.6607/08/203156.2513.7570.0004/06/203257.0014.4971.491.49
03/30/19754906/04/20187.0105/02/203156.0913.9170.0003/30/203257.0014.8271.821.82
01/22/19754907/03/20186.9304/13/203156.2213.7870.0001/22/203257.0014.5671.551.55
01/20/19754910/16/20186.6406/03/203156.3713.6370.0001/20/203257.0014.2671.261.26
12/26/19744909/08/20204.7405/02/203257.3512.6570.0012/26/203258.0013.3071.301.30
12/03/19745008/17/20204.8004/10/203257.3512.6570.0012/03/203258.0013.3071.301.30
11/13/19745006/03/20241.0102/22/203459.2810.7270.0011/13/203460.0011.4471.441.44
11/05/19745004/25/20223.1201/29/203358.2311.7770.0011/05/203359.0012.5371.531.53
08/10/19745001/22/20241.3710/31/203359.2310.7770.0008/10/203460.0011.5571.551.55
07/25/19745006/01/20178.0106/28/203055.9314.0770.0006/01/203156.8515.0071.851.85
07/11/19745003/05/20205.2511/07/203157.3312.6770.0007/11/203258.0013.3571.351.35
05/23/19745006/01/20205.0111/26/203157.5112.4970.0006/01/203258.0313.0071.031.03
05/16/19745007/31/20186.8512/22/203056.6013.4070.0007/31/203157.2114.0071.211.21
04/25/19745010/01/20186.6801/12/203156.7213.2870.0010/01/203157.4314.0071.431.43
04/17/19745012/05/20168.5002/09/203055.8214.1870.0012/05/203056.6415.0071.631.63
02/15/19745004/10/20178.1603/14/203056.0713.9370.0002/15/203157.0014.8571.851.85
02/05/19745005/11/20205.0709/23/203157.6312.3770.0005/11/203258.2613.0071.261.26
01/05/19745007/23/20186.8710/14/203056.7713.2370.0007/23/203157.5414.0071.541.54
12/30/19735005/01/20232.1002/28/203359.1710.8370.0012/30/203360.0011.6771.671.67
08/28/19735110/03/20231.6803/16/203359.5510.4570.0010/03/203360.1011.0071.101.10
07/25/19735110/16/20231.6403/05/203359.6110.3970.0010/16/203360.2311.0071.231.23
07/24/19735106/15/20159.9801/02/202955.4514.5570.0007/24/202956.0015.1171.111.11
07/05/19735105/16/20241.0606/10/203359.9310.0770.0005/16/203460.8611.0071.861.86
05/31/19735110/16/20231.6402/06/203359.6910.3170.0010/16/203360.3811.0071.381.38
05/16/19735103/18/20241.2204/16/203359.9210.0870.0003/18/203460.8411.0071.841.84
04/19/19735103/20/20178.2110/03/202956.4613.5470.0004/19/203057.0014.0871.081.08
09/20/19725211/23/20159.5410/21/202856.0913.9170.0009/20/202957.0014.8371.831.83
07/27/19725212/29/20204.4404/13/203158.7111.2970.0012/29/203159.4212.0071.421.42
07/23/19725208/21/20231.7908/20/203260.0810.0070.0808/21/203361.0811.0072.082.00
07/19/19725202/03/20169.3410/26/202856.2713.7370.0007/19/202957.0014.4671.461.46
03/01/19725206/08/20204.9910/19/203058.6411.3670.0006/08/203159.2712.0071.271.27
01/18/19725208/26/20195.7805/07/203058.3011.7070.0001/18/203159.0012.4071.401.40
12/16/19715208/16/20213.8104/16/203159.3310.6770.0012/16/203160.0011.3371.331.33
12/13/19715207/16/20186.8909/28/202957.8012.2070.0007/16/203058.5913.0071.591.59
11/02/19715302/21/20232.2902/21/203260.3010.0070.3002/21/203361.3111.0072.312.00
08/26/19715303/04/20241.2603/04/203361.5210.0071.5203/04/203462.5211.0073.522.00
05/10/19715302/27/20178.2710/03/202857.4012.6070.0005/10/202958.0013.2071.201.20
04/15/19715301/04/20214.4208/25/203059.3610.6470.0004/15/203160.0011.2871.281.28
03/18/19715304/05/20214.1709/25/203059.5310.4770.0004/05/203160.0511.0071.051.05
03/12/19715311/17/20222.5511/17/203160.6910.0070.6911/17/203261.6911.0072.692.00
03/04/19715304/06/20205.1703/20/203059.0510.9570.0003/04/203160.0011.9171.911.91
02/15/19715305/26/201411.0304/06/202756.1413.8670.0002/15/202857.0014.7271.721.72
01/14/19715306/05/20178.0009/24/202857.7012.3070.0006/05/202958.3913.0071.391.39
01/08/19715305/02/20169.1003/05/202857.1612.8470.0001/08/202958.0013.6971.691.69
10/28/19705401/08/20187.4112/02/202858.1011.9070.0010/28/202959.0012.8071.801.80
07/18/19705402/10/201411.3210/29/202656.2813.7270.0007/18/202757.0014.4371.431.43
06/05/19705403/16/20205.2210/25/202959.3910.6170.0006/05/203060.0011.2271.221.22
03/08/19705404/18/20178.1303/28/202858.0611.9470.0003/08/202959.0012.8971.891.89
02/05/19705401/30/20178.3502/02/202857.9912.0170.0001/30/202958.9813.0071.981.98
01/24/19705409/08/20159.7405/17/202757.3112.6970.0001/24/202858.0013.3871.381.38
01/23/19705410/09/20186.6611/30/202858.8511.1570.0010/09/202959.7112.0071.711.71
12/25/19695402/24/20205.2807/25/202959.5810.4270.0002/24/203060.1711.0071.171.17
11/13/19695506/03/20214.0106/03/203060.5510.0070.5506/03/203161.5511.0072.552.00
10/13/19695505/04/201510.0901/22/202757.2812.7270.0010/13/202758.0013.4471.441.44
09/26/19695506/01/20223.0206/01/203161.6810.0071.6806/01/203262.6811.0073.682.00
09/15/19695504/16/20187.1406/30/202858.7911.2170.0004/16/202959.5812.0071.581.58
09/14/19695504/02/20187.1806/23/202858.7711.2370.0004/02/202959.5512.0071.551.55
09/12/19695508/27/20195.7803/05/202959.4810.5270.0009/12/202960.0011.0571.051.05
07/21/19695504/23/20187.1206/06/202858.8811.1270.0004/23/202959.7612.0071.761.76
07/06/19695504/03/20232.1804/02/203262.7410.0072.7404/03/203363.7411.0074.742.00
07/05/19695502/08/20214.3202/08/203060.6010.0070.6002/08/203161.6011.0072.592.00
06/21/19695501/27/20205.3604/09/202959.8010.2070.0001/27/203060.6011.0071.601.60
06/20/19695510/02/201311.6802/09/202656.6413.3670.0010/02/202657.2814.0071.281.28
06/20/19695501/14/20196.3910/01/202859.2810.7270.0006/20/202960.0011.4371.431.43
05/31/19695505/11/20223.0705/11/203161.9410.0071.9405/11/203262.9511.0073.952.00
02/27/19695508/09/20177.8311/18/202758.7211.2870.0008/09/202859.4512.0071.451.45
01/25/19695502/06/20232.3302/06/203263.0310.0073.0302/06/203364.0311.0075.032.00
01/23/19695504/01/20214.1804/01/203061.1910.0071.1904/01/203162.1811.0073.182.00
12/30/19685506/06/20178.0009/18/202758.7211.2870.0006/06/202859.4312.0071.431.43
12/08/19685508/23/20213.7908/23/203061.7110.0071.7108/23/203162.7011.0073.702.00
10/07/19685607/07/201410.9202/20/202657.3712.6370.0010/07/202658.0013.2571.251.25
09/22/19685602/03/201411.3411/28/202557.1812.8270.0009/22/202658.0013.6371.631.63
09/01/19685605/24/20232.0405/23/203263.7210.0073.7205/24/203364.7311.0075.732.00
07/23/19685609/20/20213.7109/20/203062.1610.0072.1609/20/203163.1611.0074.162.00
07/20/19685602/12/20187.3111/01/202759.2810.7270.0007/20/202860.0011.4371.431.43
06/21/19685605/13/20196.0706/01/202859.9510.0570.0005/13/202960.8911.0071.891.89
05/11/19685608/28/20177.7707/05/202759.1510.8570.0005/11/202860.0011.7071.701.70
05/09/19685601/16/20232.3901/16/203263.6910.0073.6901/16/203364.6911.0075.692.00
 
Upvote 0
Oh, I see. Here is an updated formula that returns the expected Retirement Eligibility Dates #1 listed in Post #9 (DOB in column A, DOH in column C):
Excel Formula:
=LET(n,365.25,d,SEQUENCE(70*n,,C2),x,(d-A2)/n,y,(d-C2)/n+1,XLOOKUP(1,(x>=55)*(y>=10)*(x+y>=70),d,,1)-1)
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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