+ Reply to Thread
Results 1 to 5 of 5

Thread: Overtime & Double Overtime - IF function

  1. #1
    Registered User
    Join Date
    08-15-2011
    Location
    Denver, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Overtime & Double Overtime - IF function

    I have a spreadsheet that calulates the Overtime & Double Overtime on a daily input basis. However, the formulas are incorrect and I cannot seem to get them to work correctly. Please help!!!

    Standard Time = 0-8 hours
    Overtime = 8-12 hours
    Double Overtime = 12-24hrs

    Right now, the spreadsheet calculates the time as follows:

    Standard Time = 0-8 hours
    Overtime = 8-16 hours
    Double Overtime = 16-24hrs
    Attached Files Attached Files
    Last edited by KimBVS; 08-24-2011 at 01:31 PM.

  2. #2
    Registered User
    Join Date
    05-13-2011
    Location
    New Zealander in London
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Overtime & Double Overtime - IF function

    I'm not sure if I'm reading this right or not, but I tried a SUMIF based on the value of column A looking for OT, DOT and DT.

    Try putting...
    =SUMIF($A$6:$A$20,"=OT",$I$6:$I$20)
    In cell I22
    =SUMIF($A$6:$A$20,"=DOT",$I$6:$I$20)
    In cell I23
    =SUMIF($A$6:$A$20,"=DT",$I$6:$I$20)
    ...finally, in I24

    This returns:
           H           I
    21   TOTAL      16.00
    22   ST          4.00
    23   OT          4.00
    24   DT            -

  3. #3
    Registered User
    Join Date
    08-15-2011
    Location
    Denver, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Overtime & Double Overtime - IF function

    Thanks for the help but it doesn't calculate. Perhaps I did not explain well enough. I want the total hours split (regarless of code) to reflect the following:

    Example 1:
    19 hours- total
    8 hours - regular (time less than or = to 8 hours)
    4 hours - overtime (time greater than 8 hours but less than 12 hours)
    7 hours -double overtime (time over 12 hours in a 24 hour period)

    Example 2:
    12 hours- total
    8 hours - regular (time less than or = to 8 hours)
    4 hours - overtime (time greater than 8 hours but less than 12 hours)
    0 hours -double overtime (time over 12 hours in a 24 hour period)


    Example 3:
    23 hours- total
    8 hours - regular (time less than or = to 8 hours)
    4 hours - overtime (time greater than 8 hours but less than 12 hours)
    11 hours -double overtime (time over 12 hours in a 24 hour period)


    Hope this helps

  4. #4
    Registered User
    Join Date
    05-13-2011
    Location
    New Zealander in London
    MS-Off Ver
    Excel 2007
    Posts
    74

    Re: Overtime & Double Overtime - IF function

    OK, I think I may have it. The Overtime was the tricky one, because if the Time isn't between 8 and 12, you still want to return a number of overtime hours if Time is greater than 12.

    For the following I have used D4 as the cell with Time in it, and these 3 formula are in cells D6, D7 and D8:
    =IF(D4>=8,8,D4)
    =IF(AND(D4>8,D4<=12),D4-8,D4-D6-D8)
    =IF(D4>12,D4-12,0)

  5. #5
    Registered User
    Join Date
    08-15-2011
    Location
    Denver, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Overtime & Double Overtime - IF function

    That works perfect. Thanks so much!

+ 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.2.0