+ Reply to Thread
Results 1 to 5 of 5

Macro Sum Time with error, returnme 13 hours always

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Macro Sum Time with error, returnme 13 hours always

    Hi!Good Morning!!

    I have a problem with this workbook, in this section:

    Please Login or Register  to view this content.
    SUM a time, but always returnme 13hours, whats the problem with this function??

    I need a help!!

    Attach the file!

    Best Regards!!
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro Sum Time with error, returnme 13 hours always

    Format D4 as [h]:mm.

  3. #3
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Macro Sum Time with error, returnme 13 hours always

    Hi Sr,

    the cell is formatted, but doesn't perform the operation correctly ..

    Attach the screenshot format.jpg

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Macro Sum Time with error, returnme 13 hours always

    When I run the code the cell does display 13:00 but when I then format the cell as [h].mm it displays 37.00 which is the correct value.

    In your image the format is h.mm not [h].mm, the brackets around h are important.

    CumTimeFormat.JPG

  5. #5
    Registered User
    Join Date
    06-06-2012
    Location
    Mexico
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: Macro Sum Time with error, returnme 13 hours always

    ahh jajaja!! I understand the importance that the brackets!!

    Dear Sr, thanks again!!

+ 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