+ Reply to Thread
Results 1 to 4 of 4

Figuring Vacation Time Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    01-18-2008
    Posts
    1

    Figuring Vacation Time Formula

    Hello!
    I'm having a hard time working this formula, can anyone help?
    If an employee has 2 years or less of service they get 1 week vacation, 3-5 years, they get 2 weeks vacation, 5-8 years they get 3 weeks vacation and anything over 8 years, they get 4 weeks vacation.

    I can't for the life of me figure the IF statement, please, can anyone help?
    I'm new to Excel and having a hard time!

    John.
    omkensey@hotmail.com

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi John,

    How about

    =IF(D8>=8,4,IF(D8>=5,3,IF(D8>=3,2,IF(D8<=2,1,0))))
    Last edited by oldchippy; 01-18-2008 at 07:43 PM.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719
    Is 5 years 2 or 3?

    With year's service in B1....

    =MATCH(B1,{0,3,5,8})

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Another one?

    =LOOKUP(B1,{0,1;3,2;5,3;8,4})

+ 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