+ Reply to Thread
Results 1 to 23 of 23

Retirement Eligibility Date based on 3 Variables

  1. #1
    Registered User
    Join Date
    09-06-2014
    Location
    Nevada
    MS-Off Ver
    2003 and 2010
    Posts
    7

    Retirement Eligibility Date based on 3 Variables

    I have been searching forums for help with creating a single cell that returns a result of "Eligible" OR the earliest date that an employee would be eligible for retirement from the organization based on any one of the three variables that are possible. So far I haven't located the help I need, so I joined this forum. Again, I wasn't able to locate the formula I'm seeking on this forum so I apologize if this has been answered somewhere already and would ask to be pointed in that direction. I really like Excel, but am still relatively new at using it. I have 2003 Version at home and 2010 Version at work.

    The elgibility variables are:

    1. 50 years of age AND at least 20 years of service

    2. 55 years of age AND at least 10 years of service

    3. Any Age AND at least 25 years of service

    Since I haven't been able to figure this out, I made three columns in the attached sheet that return a result of True or False. I was able to manually extract the data I was seeking in this arrangement by viewing everyone's age and years of service and then looking back at dates of birth and start date. I'd like to create a final worksheet that automatically displays "Eligible" OR the earliest DATE that an employee would be eligible for retirement so that the time necessary to extract the data is reduced.

    My organization also has another set of criteria for another set of employees:

    1. 60 years of age AND at least 10 years of service

    2. 65 years of age AND at least 5 years of service

    3. Any Age AND at least 30 years of service

    I sincerely appreciate any assistance that can be provided.

    Dale
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Retirement Eligibility Date based on 3 Variables

    Using your posted workbook
    this regular formula begins the test for Retirement Eligibility
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Retirement Eligibility Date based on 3 Variables

    This ended up being the longest/ugliest formula I think I've ever created, but it should get the job done. It's a single-cell formula that will return "eligible" if any of the criteria are met. It will return the earliest date of eligibility if the person has not met any of the criteria mentioned.

    I included a formula for both types of employees that you mentioned.

    Eligibility for Retirement Sample.xlsx

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Retirement Eligibility Date based on 3 Variables

    Quote Originally Posted by Ron Coderre View Post
    J3: =OR(F3>=25,OR((D3>={50,55}*(F3>={20,10}))))
    Ron, might you have a misplaced set of parens in that?

    =OR((D3>={0,50,55}) * (F3>={25,20,10}))
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Retirement Eligibility Date based on 3 Variables

    Yeah...I had it right...then I "fixed" it :|
    Thanks for catching that.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Retirement Eligibility Date based on 3 Variables

    Done that a few times myself


  7. #7
    Registered User
    Join Date
    09-06-2014
    Location
    Nevada
    MS-Off Ver
    2003 and 2010
    Posts
    7

    Re: Retirement Eligibility Date based on 3 Variables

    WOW is what I'm thinking! Thank you to everyone for your assistance and so quickly. I think the post from clabulis is precisely what I was looking for. Sincerely appreciate everyone, thank you.

    Dale

  8. #8
    Registered User
    Join Date
    09-06-2014
    Location
    Nevada
    MS-Off Ver
    2003 and 2010
    Posts
    7

    Re: Retirement Eligibility Date based on 3 Variables

    Can't thank you enough clabulis! I would never have been able to develop that. I will try and manipulate the full list. Can I contact you about it if I encounter any issues?

    Thank you again.

    Dale
    Last edited by PacNW; 09-06-2014 at 07:20 PM. Reason: clarify who I am addressing

  9. #9
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Retirement Eligibility Date based on 3 Variables

    Quote Originally Posted by PacNW View Post
    Can't thank you enough clabulis! I would never have been able to develop that. I will try and manipulate the full list. Can I contact you about it if I encounter any issues?

    Thank you again.

    Dale
    Definitely Glad to help.

  10. #10
    Registered User
    Join Date
    09-06-2014
    Location
    Nevada
    MS-Off Ver
    2003 and 2010
    Posts
    7

    Re: Retirement Eligibility Date based on 3 Variables

    clabulis,

    Once again, I can't think you enough.

    Over the past week I had an opportunity to play with a list of employees and create a TEST worksheet. The formula works exactly as needed for some, but not correctly for some others. I have attached the entire list with a few of the examples noted as I haven't been able to track down what in the formula is not working correctly for some.

    Those with your GREEN formula on the list meet the criteria for:

    1. 50 years of age AND at least 20 years of service

    2. 55 years of age AND at least 10 years of service

    3. Any Age AND at least 25 years of service

    Those listed below the black bar with your BLUE formula are those employees who meet the criteria for:

    1. 60 years of age AND at least 10 years of service

    2. 65 years of age AND at least 5 years of service

    3. Any Age AND at least 30 years of service

    Thank you again for taking the time to create this formula and help me out.


    Dale
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Retirement Eligibility Date based on 3 Variables

    Looks like I mixed up a MIN with a MAX in the original formula. I made a new column called "EDITED" where you'll see my revised formula (compare it to the original by dragging your formula bar all the way down and clicking back and forth between my original column and the new one and you'll see the change I made).

    All of my new results match up with your notes. My formula for row 7 seems to grab a slightly earlier date than the one mentioned in your note so I would just double-check everything just to be sure.

    I've supplied edited versions for both types of employees as well.

    Hopefully this is the only issue that we should come across. Let me know if you find anything else
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    09-06-2014
    Location
    Nevada
    MS-Off Ver
    2003 and 2010
    Posts
    7

    Re: Retirement Eligibility Date based on 3 Variables

    Thank you! I will give it a good review and let you know. Thanks again, this is a big help to me and my organization right now.

    Dale

  13. #13
    Registered User
    Join Date
    09-06-2014
    Location
    Nevada
    MS-Off Ver
    2003 and 2010
    Posts
    7

    Re: Retirement Eligibility Date based on 3 Variables

    Thank you! I will give it a good review and let you know. Thanks again, this is a big help to me and my organization right now.

    Dale

  14. #14
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Retirement Eligibility Date based on 3 Variables

    This regular formula, copied down through Row_153, calculates the eligibility status...or the eligible date:
    Please Login or Register  to view this content.
    and this formula, copied down through Row_164 calculates the second tier of elibibles
    Please Login or Register  to view this content.
    Note: in many instances I calculated different values from what Clabulis had....I attached the file posted by Clabulis for comparison.
    For a few of the differences I put an explanation.

    Are those formulas something you can work with?

  15. #15
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Retirement Eligibility Date based on 3 Variables

    My results agree with Ron's. You can modify the table for either set of criteria.

    Edit: Attachment removed to https://app.box.com/s/p98g0kcjaxkkbrz7h5wc
    Last edited by shg; 09-15-2014 at 12:20 AM.

  16. #16
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Retirement Eligibility Date based on 3 Variables

    I'm glad you got the same values that I got, shg. I was wondering if I was missing something. Now I know that if I *did* miss something...we both did

    BTW...In your posted workbook, my formulas don't need C+S+E. They're regular formulas, not array formulas

  17. #17
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Retirement Eligibility Date based on 3 Variables

    Ah, because you're using array constants instead of ranges. Gracias.
    Last edited by shg; 09-14-2014 at 05:46 PM.

  18. #18
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Retirement Eligibility Date based on 3 Variables

    Thanks for the catch Ron and shg. My formula is just way too messy....

    Attached though is a revised copy of mine again (now matching Ron's and shg's results). There was one more MIN/MAX that I had messed up. Obviously at this point, I would go with one of the more efficient formulas as given above.

  19. #19
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Retirement Eligibility Date based on 3 Variables

    Here's my ugly formula transformed into the same logic but with much better formula syntax (thanks to Ron and shg above). It has been tested and matches all correct results:

    =IF((DATEDIF(C3,TODAY(),"y")>49)*(DATEDIF(E3,TODAY(),"y")>19)+(DATEDIF(C3,TODAY(),"y")>54)*(DATEDIF(E3,TODAY(),"y")>9)+(DATEDIF(E3,TODAY(),"y")>24)=0,MIN(MAX(EDATE(C3,600),EDATE(E3,240)),MAX(EDATE(C3,660),EDATE(E3,120)),EDATE(E3,300)),"Eligible")

    Use this one for the other group of eligible employees:

    =IF((DATEDIF(C3,TODAY(),"y")>59)*(DATEDIF(E3,TODAY(),"y")>9)+(DATEDIF(C3,TODAY(),"y")>64)*(DATEDIF(E3,TODAY(),"y")>4)+(DATEDIF(E3,TODAY(),"y")>29)=0,MIN(MAX(EDATE(C3,720),EDATE(E3,120)),MAX(EDATE(C3,780),EDATE(E3,60)),EDATE(E3,360)),"Eligible")

  20. #20
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Retirement Eligibility Date based on 3 Variables

    I'm not one of those lunatics that obsessively reduces formulas to their theoretical minimum...even if they become so arcane that nobody will understand them.
    So, I hope you understand that I saw a way to make your posted formulas more elegant, while keeping them understandable.
    Here are the condensed versions (regular formulas):
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Note that tweaked the ages ({50, 55} vs {49, 54}) and durations ({20,10} vs {19,9}) and I left the Num_of_months derivations verbose (65*12 vs 660) so it's apparent what's being calculated.

    I hope you don't mind.

  21. #21
    Forum Contributor
    Join Date
    05-04-2014
    Location
    New Jersey, United States
    MS-Off Ver
    Excel 2010, 2013
    Posts
    120

    Re: Retirement Eligibility Date based on 3 Variables

    Looks good to me! Whatever makes it easier for the OP

  22. #22
    Registered User
    Join Date
    09-06-2014
    Location
    Nevada
    MS-Off Ver
    2003 and 2010
    Posts
    7

    Re: Retirement Eligibility Date based on 3 Variables

    Thank you Ron for taking the time to look at this again. I will also review this during the next week and see how it works. Thank you shg for verifying and assisting as well. I really appreciate everyone being so willing to help out!

    Dale

  23. #23
    Registered User
    Join Date
    09-06-2014
    Location
    Nevada
    MS-Off Ver
    2003 and 2010
    Posts
    7

    Re: Retirement Eligibility Date based on 3 Variables

    Thank you again to everyone! This was far beyond my Excel capabilities. This information was extremely helpful to my organization as we are trying to prepare for the future and it has created a tool that they can continue to use for years to come.

    Can anyone recommend courses that would assist me in developing Excel skills and proficiency?

    Dale

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using If/And Function to figure out Eligibility of Benefit at a Future Date
    By alauratag in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-02-2014, 01:44 PM
  2. [SOLVED] Need Help with Formula for Eligibility Result Form based on 2 input Variables
    By jlepp06 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-17-2013, 08:08 AM
  3. [SOLVED] Retirement Date Formula
    By adam_crowther in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-03-2013, 07:47 AM
  4. How to find the date of retirement if date of birth is 1-April-1980
    By mmashah in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-30-2012, 03:25 PM
  5. [SOLVED] Calculate my retirement date
    By Joenash in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-08-2012, 01:11 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1