+ Reply to Thread
Results 1 to 11 of 11

SUM time shows 01:95 instead of 02:35.

  1. #1
    Registered User
    Join Date
    01-12-2009
    Location
    San Diego
    MS-Off Ver
    Excel 2003
    Posts
    10

    Question SUM time shows 01:95 instead of 02:35.

    Can someone take a look at this spreadsheet and tell me what the heck?

    I cannot figure out how to make the time "roll-over" after 60 minutes.

    The specific tab is 'Statistics' and under Time/Average/TOTAL...

    This seems so easy, but I can't seem to get it... SDGR Logsheet.xlsx

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: SUM time shows 01:95 instead of 02:35.

    Hi, long time no post (1/12/2009)

    What answer were you expecting there?

    Looking at the data on sheet1, your "time" is actually not time, it is just a number in 100's or 1000's. This means that none of your calcs are producing time...for instance Invoices S3 is giving an anser of 200 for a "time" of 12:35 to 14:35.

    I will take a look and see what I can work out for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: SUM time shows 01:95 instead of 02:35.

    The best would be if you could just have times in H and I, but if you cant, then try this. In S3, copied down...
    =IF(H3="","",TIME(LEFT(I3,LEN(I3)-2),RIGHT(I3,2),0)-TIME(LEFT(H3,LEN(H3)-2),RIGHT(H3,2),0))
    format this to TIME 37:30:50, although this is for visula reference only.
    This will give you a total in T3 of 8:18:00 (if you use the format above)
    Then on sheet2, you should end up with 2:04:30 (again, using the above format)

    On a side-note, you dont need to use () for simple calcs like =(E7)/(B11) you can just use =E7/B11

    Let me know how you make out?

  4. #4
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: SUM time shows 01:95 instead of 02:35.

    Invoices!S3: =TIME(INT((I3-H3)/100),MOD(I3-H3,100),0) ...and format cell as hh:mm (as well as your total and average on Stat's sheet) and copy down.

  5. #5
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: SUM time shows 01:95 instead of 02:35.

    Scratch that formula! The I3, H3 values have to be times before they are subtracted because of the 0-60 minute vs. the 0-99 decimal disparity... e.g. if time out minutes are less than time in minutes, such as 201 and 159 respectively, you get a difference of 42 minutes rather than 2. Use the following instead...

    =TIME(INT(I3/100),MOD(I3,100),0)-TIME(INT(H3/100),MOD(H3,100),0)

    PS: This assumes the Time Out is always the same day. Let us know if it can be other than same day.
    Last edited by jhren; 08-08-2013 at 09:10 PM.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: SUM time shows 01:95 instead of 02:35.

    Or

    =TEXT(I3, "0\:00") - TEXT(H3, "0\:00")
    Last edited by shg; 08-08-2013 at 09:29 PM.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    01-12-2009
    Location
    San Diego
    MS-Off Ver
    Excel 2003
    Posts
    10

    Thumbs up Re: SUM time shows 01:95 instead of 02:35.

    GREAT! Thank you all for helping me through this!!!!!

    * SOLVED *

    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-12-2009
    Location
    San Diego
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: SUM time shows 01:95 instead of 02:35.

    (now if I can just figure out how to officially mark this as solved.)

  9. #9
    Registered User
    Join Date
    08-05-2013
    Location
    USA
    MS-Off Ver
    2010
    Posts
    76

    Re: SUM time shows 01:95 instead of 02:35.

    To mark "solved" click on thread tools above your first post, and you'll see the option to mark as solved.

  10. #10
    Registered User
    Join Date
    10-07-2013
    Location
    sacramento ca
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: SUM time shows 01:95 instead of 02:35.

    How can I modify .

    =TIME(INT(I3/100),MOD(I3,100),0)-TIME(INT(H3/100),MOD(H3,100),0)

    to be used with times that include seconds? I need something like 14:45:12 - 8:03:02

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: SUM time shows 01:95 instead of 02:35.

    A good place to start is by reading the forum rules, and then starting your own thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. MsgBox working but shows second time after clicking OK
    By Stella9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2013, 11:53 PM
  2. Cell Value Shows Time But Value returns as Decimal
    By realniceguy5000 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-14-2011, 09:15 AM
  3. Replies: 5
    Last Post: 08-21-2010, 02:08 PM
  4. Userform time shows as serial time
    By projectaero in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-30-2010, 05:31 PM
  5. [SOLVED] Time format shows default of 12:00 AM
    By Helene in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-31-2006, 02:33 PM

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