+ Reply to Thread
Results 1 to 3 of 3

Time Calculation part 2

  1. #1
    Registered User
    Join Date
    08-04-2009
    Location
    Oxford, England
    MS-Off Ver
    Excel 2010
    Posts
    47

    Time Calculation part 2

    Hi Again

    As an addition to my current works, i am trying to calculate the lunch break times of my staff.

    What i'm looking for is something like this.

    Cell 1 = Clocking out time (example 12:00)
    Cell 2 = Clocking back in time (example 12:55)
    Cell 3 = Total number of minutes taken (cell 2 - cell 1)
    Cell 4 = The difference either side of the hour (+5 minutes as they didn't take the full hour)

    If this doesn't make any sense, i will try to upload a copy of my SS.

    Many thanks again

    DB

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Time Calculation part 2

    If we assume cell 1 is A1, cell 2 is A2 then cell 4

    ="01:00"-(A2-A1)

    Note you can't display negative time values (unless running 1904 Date System (not advised)) so you may choose to multiply by 1440 to get the value in decimal format or alternatively

    =REPT("-",A2>(A1+"01:00"))&TEXT(ABS("01:00"-(A2-A1)),"[h]:mm")

    but result is then text
    Last edited by DonkeyOte; 08-07-2009 at 01:56 PM. Reason: added time output format to text version (and *24 should have been 1440* for minutes - doh!)

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

    Re: Time Calculation part 2

    If clock out time is A2 and clock in B2 then try like this in C2

    =ROUND(60-(B2-A2)*1440,0)

    If you actually want to see a + sign for positive values then custom format C2 as

    +0;-0;0

+ 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