+ Reply to Thread
Results 1 to 6 of 6

Formula to cap vacation hour accrual

  1. #1
    Registered User
    Join Date
    02-11-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    5

    Formula to cap vacation hour accrual

    Trying to figure out how to cap the amount of hours someone accrues for vacation based on company policy.
    Let's say that an employee caps out at 37 days and earns 25 days per year at a rate of 2.1 days per week.
    My formula that calculate the number of hours available is: =(MONTH(H$1)*G5)+(B2*8); H$1 is today's date, G5 is the weekly accrual rate in hours, and B2 is the number of days that the person is carrying over from last year.

    Thoughts??

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Formula to cap vacation hour accrual

    =MIN( calc, 37)

    Use the minimum function so that if the calc goes above 37 days, it just returns 37 instead.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Formula to cap vacation hour accrual

    A sample would be very helpful.

    Despite your description there is still some information missing/unclear.

    For example, you state the accrual rate is weekly but your formula appears to apply it by month, not week.

    I think the general answer here however is to wrap your formula into an IF or some other logic:

    psuedo formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Also, does vacation time ever expire? If so that greatly complicates matters.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  4. #4
    Registered User
    Join Date
    02-11-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Formula to cap vacation hour accrual

    Thanks. Vacation doesn't expire, but when you reach your max, you can't accrue any more time until you take vacation time.

  5. #5
    Registered User
    Join Date
    02-11-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Formula to cap vacation hour accrual

    If I use MIN function, will the formula revert back to the regular calc once he's taken a bunch of days off to get under the cap?

  6. #6
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Formula to cap vacation hour accrual

    Quote Originally Posted by trietta View Post
    If I use MIN function, will the formula revert back to the regular calc once he's taken a bunch of days off to get under the cap?
    Yes.

    MIN(calc, 37) will do the calc, compare it to 37, and then return whichever is less.

    So if you update the information feeding it such that the calc returns, say, 35, then the MIN will return 35.

+ 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. Replies: 4
    Last Post: 01-20-2015, 11:51 AM
  2. Need Formula for Vacation Accrual
    By indygoof2007 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-29-2014, 11:45 PM
  3. Vacation Accrual Formula
    By tcooley in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2014, 07:41 PM
  4. [SOLVED] Vacation Accrual Formula
    By cathlene68 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-20-2013, 02:24 PM
  5. Replies: 3
    Last Post: 10-16-2013, 09:05 PM
  6. Vacation accrual formula
    By [email protected] in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-03-2013, 08:01 PM
  7. Vacation Accrual Formula
    By Cullen8 in forum Excel General
    Replies: 3
    Last Post: 03-22-2012, 04:31 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