+ Reply to Thread
Results 1 to 3 of 3

Calculating hours that have passed from one date to another

  1. #1
    Registered User
    Join Date
    10-18-2011
    Location
    London, England
    MS-Off Ver
    Excel for Mac (16.25)
    Posts
    42

    Calculating hours that have passed from one date to another

    Does anyone know how to work out how many hours have passed from a start date to an end date?

    I.e Start Date/Time: 05/10/2011 10:00 End Date/Time: 06/10/11 12:00 (26:00 hours)

    I tried subtracting one from the other with the date and time format (custom dd/mm/yyyy hh:mm) but it can never deal with anything over 24 hours.

    Sheet attached with an example highlighted. Column E is start date/time; column G is end date/time; Column I is, at the moment, simply G-E.

    Many thanks and kind regards,

    Zak
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: Calculating hours that have passed from one date to another

    If you want to see total hours use a custom format of

    [h]:mm

    Note square brackets

    That will then display as 321:01 in I7

    or to show days then use this formula in I2 copied down

    =INT(G2-E2)&" days "&TEXT(G2-E2,"h:mm")

    then I7 will show 13 days 9:01
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-18-2011
    Location
    London, England
    MS-Off Ver
    Excel for Mac (16.25)
    Posts
    42

    Re: Calculating hours that have passed from one date to another

    Thanks for the help.

    Much appreciated

+ 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