+ Reply to Thread
Results 1 to 10 of 10

Vacation Entitlement based on full years of service and odd vacation year

Hybrid View

  1. #1
    Registered User
    Join Date
    02-01-2018
    Location
    Ontario, Canada
    MS-Off Ver
    2007
    Posts
    11

    Re: Vacation Entitlement based on full years of service and odd vacation year

    So close, both of you! You are amazing.

    Yes, you are reading that correctly daddylonglegs.

    I did a bit of testing with both of your formulas and got the full years (under 5 years, less than 10 years, etc) working properly. There was a bit of tweaking, although I can't explain why. I had to change {1,4,10,18} to {1,5,11,19} in both of your formulas.

    ben_hensel
    =IF($B$4 - C9>395, INDEX({10,15,20,25}, MATCH(($B$4 - C9) /365.25, {1,5,11,19}, 1)), MIN( INT(IF($B$4>C9, $B$4 - C9, C9 - $B$4) /30), 10))
    daddylonglegs
    =IFERROR(LOOKUP(DATEDIF(C10,B4,"y"),{1,5,11,19;10,15,20,25}),MIN(10,DATEDIF(C10,B4,"m")))
    Where both have trouble is under 10 months. If I set "today's" date (C2) to May 1, 2017, and set the hire date for the same day, the entitlement shows 10 days. I can get the entitlement days to go down to zero if I set the hire date 11 months and 1 day into the "future" past whatever C2 is set at.


    See attached for example..
    Attached Files Attached Files
    Last edited by bferd; 02-01-2018 at 11:31 PM. Reason: fat fingers

+ 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. Vacation Time Based on Years of Service and Position
    By MaryGemmer in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-02-2017, 04:00 AM
  2. Vacation Accrual based on fiscal year and years served
    By Jennl77 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-25-2016, 06:07 PM
  3. MTD vacation accrual formula based on yeras of service
    By lcwarren in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-03-2015, 06:03 PM
  4. Calculate Vacation Allowance based on years of service
    By Sassygirl44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-29-2015, 03:47 PM
  5. Replies: 3
    Last Post: 10-16-2013, 09:05 PM
  6. Calculating vacation entitlement
    By kmlloyd in forum Excel General
    Replies: 2
    Last Post: 06-23-2010, 02:51 PM

Tags for this Thread

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