+ Reply to Thread
Results 1 to 4 of 4

Adding/Subtracting Time Help...

  1. #1
    Registered User
    Join Date
    01-31-2006
    Posts
    18

    Question Adding/Subtracting Time Help...

    I am trying to figure out how to subtract one time from the other to find out the number of hours/minutes passed between times.

    For example
    A B
    1 09:00 11:30

    I would like cell C1 to tell me 2.5 hours or 2:30 (whatever format it comes out). I will be listing a bunch of these times, so then at the end I would also like to SUM the C column and it give me the total hours spent. Kinda like a time log.

    Thanks geniuses.

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

    =B1-A1

    format as h:mm

    If you may have time periods that start before midnight and end after, e.g. 21:00 to 06:00 then you could use

    =B1-A1+(A1>B1)

    again format as h:mm

  3. #3
    Registered User
    Join Date
    01-31-2006
    Posts
    18

    Question SUM the totals...

    Ok, I tried that already, but when I went to SUM all the hours up, it gave me the wrong answer. I think it has to do with the fact that the differences that I come up with are not the hours difference, but a seperate time itself (ex. 8:00-10:00 is not 2:00 hours, but 02:00AM.)

    Thanks for the help...sorry, I didn't mean to look like an idiot.

  4. #4
    Registered User
    Join Date
    01-31-2006
    Posts
    18

    NM I figured it out...

    It was how I had the SUM cell formatted, I didn't allow enough hour places, so like normal time, it was only giving me two digits.

    Thanks 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)

Tags for this Thread

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