+ Reply to Thread
Results 1 to 7 of 7

Employee Leave Calculation

Hybrid View

  1. #1
    Registered User
    Join Date
    09-01-2016
    Location
    South Carolina
    MS-Off Ver
    2013
    Posts
    6

    Employee Leave Calculation

    Looking for some help:

    Employee accumulates 2.5 days per 30 days (1 month) on the job however no leave is accumulated until 270 days (9 months) from start date and max accumulation is 30 days.

    day 1 up to day 269 = 0 leave
    day 270 = awarded 22.5 days or 180 hours
    every 30 days past the 270th day they earn 2.5 days or 20 hours
    max accumulation is 30 days or 240 hours

    Thanks for the assistance

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Employee Leave Calculation

    Try
    Formula: copy to clipboard
    =MIN(30,2.5*QUOTIENT(C1,30)*(C1>=270))
    where C1 is the days from started date.

  3. #3
    Registered User
    Join Date
    09-01-2016
    Location
    South Carolina
    MS-Off Ver
    2013
    Posts
    6

    Re: Employee Leave Calculation

    Quote Originally Posted by José Augusto View Post
    Try
    Formula: copy to clipboard
    =MIN(30,2.5*QUOTIENT(C1,30)*(C1>=270))
    where C1 is the days from started date.
    With this formula, no matter the input in C3 the result is 30.

    I use =(YEAR(NOW())-YEAR(E3))*12+MONTH(NOW())-MONTH(E3) to find the # of months from start date

    start date is in E3 result is in C17

    it works with =MIN(30,IF(H3<8,0,IF(H3>8,H3*2.5,0))) but I would rather it count actual days and not the months.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Employee Leave Calculation

    Or try ...

    =MIN(30,IF(TODAY()-E3<270,0,INT((TODAY()-E3)/30)*2.5))

  5. #5
    Registered User
    Join Date
    09-01-2016
    Location
    South Carolina
    MS-Off Ver
    2013
    Posts
    6

    Re: Employee Leave Calculation

    Quote Originally Posted by Phuocam View Post
    Or try ...

    =MIN(30,IF(TODAY()-E3<270,0,INT((TODAY()-E3)/30)*2.5))
    That's Got it! Thanks

  6. #6
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Employee Leave Calculation

    Quote Originally Posted by Phuocam View Post
    Or try ...

    =MIN(30,IF(TODAY()-E3<270,0,INT((TODAY()-E3)/30)*2.5))
    This formula is equivalent to =MIN(30,2.5*QUOTIENT(C1,30)*(C1>=270)) where C1 is TODAY()-E3 as I say in post #2
    So you can use =MIN(30,2.5*QUOTIENT(TODAY()-E3,30)*(TODAY()-E3>=270))
    Formula: copy to clipboard
    =MIN(30,2.5*QUOTIENT(TODAY()-E3,30)*(TODAY()-E3>=270))

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,175

    Re: Employee Leave Calculation

    You're welcome!

+ 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. [SOLVED] Calculating Employee Leave Accrual
    By pknivens1 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-02-2016, 10:50 AM
  2. Replies: 5
    Last Post: 03-03-2015, 01:38 PM
  3. [SOLVED] Extract Leave dates for Employee with its type
    By rohit.r.p in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-09-2013, 08:01 AM
  4. Display annual Leave Dates by employee
    By janger in forum Excel General
    Replies: 4
    Last Post: 01-14-2012, 07:05 AM
  5. I need a template for Employee annual leave tracking
    By Pamela Aranguiz in forum Excel General
    Replies: 1
    Last Post: 01-11-2006, 09:40 PM
  6. [SOLVED] How do I set up a calender in Excel that tracks employee leave?
    By Janice in forum Excel General
    Replies: 1
    Last Post: 11-26-2005, 07:15 PM
  7. Replies: 0
    Last Post: 07-21-2005, 02:05 AM

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