+ Reply to Thread
Results 1 to 5 of 5

Calculating Sick Hours

  1. #1
    Registered User
    Join Date
    07-14-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    3

    Calculating Sick Hours

    Greetings Excel Wizards.

    I am unable to create a formula to calculate employee sick hours correctly:

    ----A-----------------------------B------
    1--Avail Hours--------------------24------
    2--Current Used Hours-------------4-------
    3--Prior Used Hours----------------2------
    4--Remaining Hours----------------16-----
    5--Notify Payroll of Used Hours------4-------


    Some context, B1(Avail Hours) is static at 24.
    We manually enter the current used hours(B2) and prior used hours(B3).
    Remaining Hours (B4) is simply =B1-B2-B3
    This issue I have is with B5. The value needs to make sure employees are paid their sick hours and becoming a zero value when exceeding 24hrs.
    Example: Current Used hours is 20, Prior Used is 2, Notify Payroll should show 20 hours to report.
    Example 2: Current Used hours is 20, Prior Used is 20, Notify Payroll should show 4 hours to report.
    Example 3: Current Used Hours is 20, Prior Used is 24, Notify Payroll should show 0 hours to report.

    I have tried an IF function but failed miserably.
    Hopefully an excel wizard can assist me in this matter, I would greatly appreciate it.

    Meepster.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Calculating Sick Hours

    Use the MAX function, that is
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-14-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    3

    Re: Calculating Sick Hours

    Thanks for your suggestion. However this formula only calculates the difference between remaining hours and the 24 allocated hours. The Current used hours (B2) need to be reported in B5.
    Any other ideas you could provide would be great.

  4. #4
    Registered User
    Join Date
    07-14-2015
    Location
    California
    MS-Off Ver
    2010
    Posts
    3

    Re: Calculating Sick Hours

    I believe I solved it with the following formula:

    =IF(B2+B3<=B1,B2,B1-B3)

  5. #5
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: Calculating Sick Hours

    Ah yes, missed that bit.

    Yup, your formula should work. It's equivalent to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Time sheet, sick days to hours
    By kurmee in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-23-2014, 10:34 AM
  2. Sick time with a minimun hours worked on a monthly basis
    By dunaspr in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-21-2013, 11:59 AM
  3. [SOLVED] Calculating Sick/Personal Leave
    By ssaurer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-25-2012, 08:54 AM
  4. Replies: 3
    Last Post: 07-11-2012, 12:37 PM
  5. Calculating accrual of sick days
    By wbcsc in forum Excel General
    Replies: 6
    Last Post: 04-13-2010, 02:57 PM
  6. Calculating Sick Days
    By Poppachuck in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-10-2009, 06:58 PM
  7. Calculating Vacation/Sick time
    By missmel159 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2008, 05:45 PM
  8. [SOLVED] employee annual sick leave tracker with hours owing not used
    By Melanie in forum Excel General
    Replies: 0
    Last Post: 07-21-2005, 02:05 AM

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