+ Reply to Thread
Results 1 to 4 of 4

count hours past midnight

  1. #1
    Registered User
    Join Date
    03-20-2008
    MS-Off Ver
    2003
    Posts
    17

    count hours past midnight

    currently i have setup that the spreadsheet takes the clock out time and subtracts the clock in time to get how many hours worked...one issue i have is if someone starts in the PM and leaves in the AM i get an ######## in my total column...cells are formatted as 00:00 AM

    any ideas this is what i have which works except for the midnight change
    Please Login or Register  to view this content.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =MOD(B1-A1,1)

    This will work whether the shift crosses midnight or not

  3. #3
    Registered User
    Join Date
    03-20-2008
    MS-Off Ver
    2003
    Posts
    17
    That worked for that but it broke another formula...i had in another cell

    Please Login or Register  to view this content.
    when i enter the =MOD formula in the Q cell...

    Now on the broken formula i am getting #VALUE! as an error

  4. #4
    Registered User
    Join Date
    03-20-2008
    MS-Off Ver
    2003
    Posts
    17

    Solved

    i had a error on the page which was causing it...thank you for the help

+ 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