+ Reply to Thread
Results 1 to 4 of 4

Calculating current number of hours worked

  1. #1
    Registered User
    Join Date
    11-27-2014
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    22

    Calculating current number of hours worked

    I'm working on a "schedule calculator". The business owner puts in the schedule for the week and gets a projected labor cost. I figured out the formula for calculating overtime at the end of the week but my problem is in the middle of the week. At the bottom of each day is a total hours worked and cost of labor. But if someone is on overtime on Thursday, the total for that day would be higher. What kind of a formula would I need to check if they are on overtime and then multiply by 1.5 only for those hours past 40? This is the last step for this project and I am stumped. Any help would be much appreciated. Attached is the workbook I'm building.

    Schedule Calculator (original).xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Calculating current number of hours worked

    In your sample, the EE worked 40 hours for the week (assuming they did not work for more days), so they only had 40 hours for the week - which would imply no OP payment. However, they worked 4 (?)) hours OT on 3 days, so they actually worked 12 hours OT.

    See if you can use this for the Payment calc columns (I tested it in J4)...
    =IF(I4="","",$B4*24*IF(I4<=0.3333,I4,0.3333+(I4-0.3333)*1.5))

    On a side note, you can use this for the SUM in AE4...
    AE4=IF(SUMIF($C$1:$AD$3,"Hours Worked",$C4:$AD4)*24>40,40/24,SUMIF($C$1:$AD$3,"Hours Worked",$C4:$AD4))
    and for the OT, use this...
    AF4=SUMIF($C$1:$AD$3,"Hours Worked",$C4:$AD4)-(COUNT(AD4,Z4,V4,R4,N4,J4,F4)*8/24)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Calculating current number of hours worked

    Here's one with additional columns for Monday (only)
    Attached Files Attached Files
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    11-27-2014
    Location
    Michigan
    MS-Off Ver
    2013
    Posts
    22

    Re: Calculating current number of hours worked

    Thank you both for the responses, but we calculate OT by a 40 hour week, not an 8 hour day. So I need it to check the total for the week each day and multiply appropriately. FDibbins, this is why the last column subtracts 40. I believe I'm on the right path now, protonLeah, it may be easier to add additional columns. Will let you guys know when I figure it out.
    Last edited by Nickolai; 03-02-2015 at 07:18 PM.

+ 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: 0
    Last Post: 05-14-2012, 05:36 PM
  2. Calculating basic hours worked, between a time range and premium hours worked
    By RoyLittle0 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-07-2012, 06:59 AM
  3. Replies: 0
    Last Post: 01-05-2012, 06:23 AM
  4. Calculating number of hours worked for an odd shift
    By wisconsin262 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-11-2008, 07:45 PM
  5. Replies: 0
    Last Post: 08-23-2005, 12:32 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