+ Reply to Thread
Results 1 to 4 of 4

Help Adding Time

  1. #1
    Registered User
    Join Date
    11-08-2004
    Posts
    2

    Question Help Adding Time

    I have a project where I need to ADD TIME. Under normal circumstances, it wouldn't be a problem. However, in some cases, I may need to have totals that exceed 24 hours. So, I need 2 forumlas.

    First, I need a formula that will add the total time in hours taking into account the start/end dates.

    Second, I need a formula that will add all the resulting hours.

    Keep in mind that this EXAMPLE is very minimal and I may have 70 line items.

    Can anyone help me out here?

    Thanks!
    Bob
    Concord, CA

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    E3, copied down:

    =(C3+D3)-(A3+B3)

    ...and custom format cells as [h] for hours only or [h]:mm for hours and minutes.

    E10:

    =SUM(E3:E9)

    ...and custom format cells.

    Hope this helps!

  3. #3
    Registered User
    Join Date
    11-08-2004
    Posts
    2

    Unhappy

    Someone helped me with the foumula which ended up being:

    =IF(OR(A2="",C2="",C2-A2+D2-B2

    This formula successfully takes into account both the date and the time and resulting in hours/minutes, just as I wanted.

    However, I have another problem. That's with ADDING all the time in column "E".
    The problem is that when I use: =SUM(E2:E8) in this example, the addition works just fine. But, when I try to add up 40+ cells, I get some crazy number that's only a fraction of the actual sum.

    Any ideas?

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try to custom format the cell...

    Format > Cells > Number > Custom > Type

    [h]:mm

    Hope this helps!

+ 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