+ Reply to Thread
Results 1 to 4 of 4

Years of Service for Benefit Calculation

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Years of Service for Benefit Calculation

    I need to adjust the years of service for my benefit calculation. For employees that worked under less than 5 years, the benefit should be 5, for employees that worked over 30 years, the benefit should be 30, the years of service doesn’t need to be adjusted for anybody else. Please see the attached example.
    Thank you.
    Benefit Service.xlsx

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Years of Service for Benefit Calculation

    Put this in C2:

    =MIN(MAX(B2,5),30)

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Years of Service for Benefit Calculation

    hi monid78. so just 2 of these conditions or like what you put in the file? for just 2 conditions, then:
    =IF(B2<=5,5,IF(B2>=30,30,""))

    if not, then:
    =LOOKUP(B2,{1;12;17;24;30},{5;12;17;24;30})

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    02-01-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: Years of Service for Benefit Calculation

    Thank you to both of you .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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