+ Reply to Thread
Results 1 to 10 of 10

Formula for Vacation Accrual Days Based on Anniversary Date

  1. #1
    Registered User
    Join Date
    05-22-2010
    Location
    United States, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Talking Formula for Vacation Accrual Days Based on Anniversary Date

    Hello,

    I am creating a vacation accrual spreadsheet and I need assistance in the cells highlighted in green. The vacation accrual should reset itself automatically when the employee's anniversary date rolls around. The frequency of the accrual should be daily.

    I have 2 different tabs. One for hourly employees and the other for salary. Both should work the same, with the exception of the amount of vacation time alotted hr. vs. salary.

    I have the spreadsheet attached. I would like to only manually populate the cells highlighted in yellow and have the green ones automatically calculate.

    Can you please help me to create the cells highlighted in green?

    Thank you,
    Attached Files Attached Files
    Last edited by Mustang03; 05-24-2010 at 06:11 PM.

  2. #2
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Formula for Vacation Accrual Days Based on Anniversary Date

    Here you go Copy of Vacation Accrual.xls
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  3. #3
    Registered User
    Join Date
    05-22-2010
    Location
    United States, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Formula for Vacation Accrual Days Based on Anniversary Date

    Hi Foxguy,

    Thanks a lot!!! This looks great. A couple of quick questions for you...

    In column I, it looks like the days accrued are compounding from columns F-H?
    For example "Bob" who has been employeed for 2+ years just crossed his yearly anniversary date and should start accruing days from 5/3/10 - 5/23/10. Anything in the past should be zero. He is eligible for .55 days (20 days @ .03 per day).

    Also, the vacation days are capped @ 10, 15, and 20 days per year. They should never have more than that during the course of the year.

    I appreciate you helping me out!!!!!

    If you can send back a revised spreadsheet that would be great.

    Please let me know if you have any questions.

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

    Re: Formula for Vacation Accrual Days Based on Anniversary Date

    Do employees start accruing immediately or only after 1 year? If you use a table a little like foxguy suggested (I just changed the values in I7:I9) then you can use this formula in E5 copied down

    =DATEDIF(B5,TODAY(),"yd")*D5/365

    This doesn't need the column C values, just the hire dates in column B and the results from D. If accrual only starts after 1 year's service then you need an extra row in the table as per foxguy's version.

    Note the above formula won't take you over the max amounts....and DATEDIF will give you a more accurate count of days than dividing by 365 due to leap years. See attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-22-2010
    Location
    United States, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Formula for Vacation Accrual Days Based on Anniversary Date

    Thanks Daddylonglegs this is exaclty what I am looking for... Greatly appreciated!!!!

    One last question for you...

    Would it be possible to create a formula in "Days Taken" off if I run a master report out of a database to pull only the days taken off during their anniversary interval...example below...

    Jim took 2 days off. One in 1999 and the other in 2010. His anniversary year goes from 5/3/09 to 5/2/10 and then resets. I would want the # of days off of 1 to only pull to the consolidated tab within his anniversary interval. I would have a 2nd tab with the days off pulling to the "Day's Taken" section.

    Employee Name Year Taken off Date Taken off # of Days
    Cindy 2009 1/1/10 1
    Bob 2008 4/1/08 0.5
    John 2010 2/1/10 1
    Joe 2006 4/1/06 0.5
    Jim 1999 4/1/99 1
    Jim 2010 5/17/10 1




    Please let me know if you can send this last request back with a revised spreadsheet...Thanks so much for your help again

  6. #6
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Formula for Vacation Accrual Days Based on Anniversary Date

    Quote Originally Posted by Mustang03 View Post
    In column I, it looks like the days accrued are compounding from columns F-H?
    For example "Bob" who has been employeed for 2+ years just crossed his yearly anniversary date and should start accruing days from 5/3/10 - 5/23/10. Anything in the past should be zero. He is eligible for .55 days (20 days @ .03 per day).
    Question about Bob;
    Are you saying that From 5/3/8 - 5/2/9 he earns 0. Then from 5/3/9 - 5/2-10 he earns 10. Then on 5/3/10 he loses what ever he has not taken (he would lose 10 days if he didn't take any vacation days during 5/3/9 - 5/2/10). Then on 5/23/10 he would only have .55 days available, instead of the 10.55 that I would calculate?
    Your question do daddylonglegs about days taken off imply that you're accruing from hire date not anniversary date.
    Last edited by foxguy; 05-23-2010 at 01:23 PM.

  7. #7
    Registered User
    Join Date
    05-22-2010
    Location
    United States, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Formula for Vacation Accrual Days Based on Anniversary Date

    Days are accrued from hire date and start immediately. Anniversary date would be the year that the days start accruing again.

    Foxguy, your correct. If his anniversary year goes from 5/3/09-5/2/10 and doesn't take any days, he looses 10 days and will start accruing again on 5/3/10. Then on 5/23 he would have .55 days available again accruing from 5/3/10-5/23/10.


    Would it be possible to create a formula in "Days Taken" off if I run a master report out of a database to pull only the days taken off during their anniversary interval...example below...

    Jim took 2 days off. One in 1999 and the other in 2010. His anniversary year goes from 5/3/09 to 5/2/10 and then resets. I would want the # of days off of 1 to only pull to the consolidated tab within his anniversary interval. I would have a 2nd tab with the days off pulling to the "Day's Taken" section.

    Employee Name Year Taken off Date Taken off # of Days
    Cindy 2009 1/1/10 1
    Bob 2008 4/1/08 0.5
    John 2010 2/1/10 1
    Joe 2006 4/1/06 0.5
    Jim 1999 4/1/99 1
    Jim 2010 5/17/10 1


    Thank you all for the assistance

  8. #8
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Formula for Vacation Accrual Days Based on Anniversary Date

    Quote Originally Posted by Mustang03 View Post
    Employee Name Year Taken off Date Taken off # of Days
    Cindy 2009 1/1/10 1
    Bob 2008 4/1/08 0.5
    John 2010 2/1/10 1
    Joe 2006 4/1/06 0.5
    Jim 1999 4/1/99 1
    Jim 2010 5/17/10 1
    Is it a typo that Cindy took a day off in 2009 of 1/1/10?

  9. #9
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Formula for Vacation Accrual Days Based on Anniversary Date

    I'm not sure if you're going to have a separate workbook with the days taken, or if they are going to be on a separate worksheet.
    I'm uploading 2 workbooks, assuming that days taken are in a separate workbook, so you can see how to do it. If they are in the same workbook, just a different sheet, you should be able to easily adapt it Copy of Vacation Accrual 2.xls & Vacation Days Taken.xls

  10. #10
    Registered User
    Join Date
    05-22-2010
    Location
    United States, PA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Formula for Vacation Accrual Days Based on Anniversary Date

    All,

    This is great!!!! Problem solved.

    Thanks so much for everything and the help!!!!! Greatly appreciated

+ 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