+ Reply to Thread
Results 1 to 4 of 4

Need help with a formula to calculate vacation days please!

  1. #1
    Registered User
    Join Date
    11-07-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need help with a formula to calculate vacation days please!

    I need help with a formula to calculate how many vacation days someone gets as of 1/1/2014 based on their hire date which is in cell C13.

    <1 year of service = 0 days
    1 year = 5 days
    2 years = 10 days
    5 years = 15 days
    12 years = 20 days
    18 years = 25 days

    The tricky part is, if they will hit one of these levels before 1/1/15, we calculate it as if they already hit that level. For example, if someone was hired on 6/1/13, they won't hit 1 year until 6/1/14, but as of 1/1/14 we still show them as having 5 days vacation because they'll hit one year of service before 2015.

    Any help would be appreciated! Thank you!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Need help with a formula to calculate vacation days please!

    If you calculate years of service until December 31st 2014 then that should fulfil your latter condition, do that with DATEDIF and place within a LOOKUP function to get days for 2014, i.e.

    =IF(C13="","",LOOKUP(DATEDIF(C13,DATE(2014,12,31),"y"),{0,1,2,5,12,18;0,5,10,15,20,25}))
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-07-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need help with a formula to calculate vacation days please!

    That worked perfectly!! Thank you so much!!!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need help with a formula to calculate vacation days please!

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Formula for Vacation Days when eligible
    By tastjuste in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-15-2013, 08:11 PM
  2. Calculate vacation days taken or partial days
    By chris1965 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2013, 07:18 PM
  3. HELP-Formula needed to Calculate Accrued vacation days
    By mw11083 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2013, 10:47 AM
  4. Vacation Days Taken vs Vacation Days Scheduled
    By Gtrtim112 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-30-2013, 02:44 PM
  5. Formula for Vacation Accrual Days Based on Anniversary Date
    By Mustang03 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-23-2010, 09:34 PM

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