+ Reply to Thread
Results 1 to 4 of 4

Calculating Time Worked when Clocking out after Midnight

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2013
    Posts
    14

    Calculating Time Worked when Clocking out after Midnight

    I am trying to find a formula that will calculate the time an employee worked when they are clocking in before midnight and clocking out after midnight.

    Example:

    Time In Time Out Break Time In Time Out Total Hours
    3:59 PM 12:20 AM 0:30 1:50 AM 3:00 AM

    I've tried to format each cell all kinds of ways but I'm ending up with a negative hours worked.

    Thanks!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Calculating Time Worked when Clocking out after Midnight

    Try this...


    Data Range
    A B C D E F
    1 Time In Time Out Break Time In Time Out Total Hours
    2 3:59 PM 12:20 AM 0:30 1:50 AM 3:00 AM 9:01


    This formula entered in F2:

    =MOD(B2-A2,1)+MOD(E2-D2,1)-C2

    Format as h:mm
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    04-04-2012
    Location
    San Antonio, TX
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Calculating Time Worked when Clocking out after Midnight

    Thank you it works perfectly!!!!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Calculating Time Worked when Clocking out after Midnight

    You're welcome. Thanks for the feedback!

+ 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 total time worked between a range over midnight.
    By amurr in forum Excel General
    Replies: 10
    Last Post: 03-13-2019, 03:27 AM
  2. [SOLVED] Calculating hours worked beyond midnight
    By Boville in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-25-2012, 12:22 PM
  3. Time worked after midnight
    By kaps_mr2 in forum Excel General
    Replies: 5
    Last Post: 04-30-2012, 07:45 AM
  4. Calculating time after midnight
    By ryangodammit in forum Excel General
    Replies: 5
    Last Post: 12-09-2008, 11:57 PM
  5. [SOLVED] Calculating Time Past Midnight
    By Darren in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-13-2006, 11:03 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