+ Reply to Thread
Results 1 to 11 of 11

Calculating hours worked for 3rd shift

  1. #1
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Calculating hours worked for 3rd shift

    Weekly Timesheet.xlsx

    This spreadsheet calculates hours worked great for first and second shift but when you enter times for third shift it goes all whacky with the outcome. Anyone know how to fix this?

    Thanks!
    Tiff

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Calculating hours worked for 3rd shift

    I see no mention of shifts in the spreadsheet, could you elaborate with examples?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Calculating hours worked for 3rd shift

    It doesn't really need to specify a shift. The guys enter their ins and outs and their total hours are calculated. The problem is if they are working say 10pm-6am the worksheet comes up with a negative total. They've been told they have to enter their time in a 24hr/military time format so that's not the issue.

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Calculating hours worked for 3rd shift

    Hi tiffany04530

    Try using the MOD function: =MOD(end_Time-start_time,1)

  5. #5
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Calculating hours worked for 3rd shift

    By putting it where? And is that the actual formula for my spreadsheet? Sorry....I need very specific answers or I can't figure it out when it comes to stuff like this! lol

  6. #6
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Calculating hours worked for 3rd shift

    This is the formula I have in G11 that calculates first and second shift time. =IF((((D11-C11)+(F11-E11))*24)>8,8,((D11-C11)+(F11-E11))*24)

    And then there is a second formula for the same line that calculates overtime for first and second...
    =IF(((D11-C11)+(F11-E11))*24>8,((D11-C11)+(F11-E11))*24-8,0)

    Is it possible to have the same cell figure third shift time or would it be better to have a separate worksheet for those employees?

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Calculating hours worked for 3rd shift

    Hi
    See attached.
    In cells K11:L12, click on the cells and look in the formula bar to see the functions.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Calculating hours worked for 3rd shift

    Okay, that worked but instead of it coming up with 2.30 for two and a half hours can you make it say 2.50? Also, this will have to be on it's own worksheet won't it? Can I have it in the same cell that calculates first and second shift??

  9. #9
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Calculating hours worked for 3rd shift

    Hi

    For Regular hours in G11: =MIN((MOD((F11-E11)+(D11-C11),1))*24,8) and format cell as general. Copy down.
    For the Overtime hours H11: =(MOD((F11-E11)+(D11-C11),1))*24-G11 and format cell as general. Copy down.

  10. #10
    Registered User
    Join Date
    09-14-2012
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Calculating hours worked for 3rd shift

    Okay that works. So just one more question I guess.... Will I have to provide a separate worksheet for those working third shift? Or is there a way to have all shifts calculate in the same worksheet?

  11. #11
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Calculating hours worked for 3rd shift

    Deleted post
    Last edited by Kevin UK; 11-30-2012 at 02:23 PM.

+ 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.6.0 RC 1