+ Reply to Thread
Results 1 to 7 of 7

Show hh:mm:ss, when hh is > 24?

  1. #1
    Forum Contributor
    Join Date
    05-30-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    107

    Show hh:mm:ss, when hh is > 24?

    I want to display time as hh:mm:ss. This works if the total time is less than 24 hours. However with 25 hours it shows 01:00:00 instead of 25:00:00.

    How can I change the format so that it shows 25 hours as 25:00:00?

  2. #2
    Forum Contributor
    Join Date
    08-02-2012
    Location
    Pune
    MS-Off Ver
    Office 365 (Win 10)
    Posts
    489

    Re: Show hh:mm:ss, when hh is > 24?

    cant u just convert the cell as text?
    Please make the Post as solved, when you get your answer & Click * if you like my suggestion

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Show hh:mm:ss, when hh is > 24?

    Use a custom format:
    [hh]:mm:ss
    Remember what the dormouse said
    Feed your head

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Show hh:mm:ss, when hh is > 24?

    You can try formatting the cell as [h]:mm:ss
    See if this helps.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Contributor
    Join Date
    05-30-2011
    Location
    Sweden
    MS-Off Ver
    Excel 2013
    Posts
    107

    Re: Show hh:mm:ss, when hh is > 24?

    That works! Thank you! What does the [] symbols mean?

  6. #6
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Show hh:mm:ss, when hh is > 24?

    It just allows the hours to extend past 24.

  7. #7
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Show hh:mm:ss, when hh is > 24?

    If that takes care of your question, please mark your thread as solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

+ 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. [SOLVED] One TextBox Show Column and the other show Cell address Solved by : ragulduy
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-26-2014, 05:17 AM
  2. Replies: 2
    Last Post: 02-24-2014, 08:20 PM
  3. [SOLVED] how to add counter in msgbox to show remain times the message will show vba code
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-25-2013, 06:46 AM
  4. Replies: 0
    Last Post: 06-15-2011, 10:36 AM
  5. Replies: 1
    Last Post: 04-11-2008, 02:02 AM

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