+ Reply to Thread
Results 1 to 5 of 5

Time formula problem with its format when over 24 hours

  1. #1
    Registered User
    Join Date
    02-06-2015
    Location
    Cambodia
    MS-Off Ver
    2007
    Posts
    1

    Time formula problem with its format when over 24 hours

    Hi,

    I have problem with time formula. when its duration over than 24 hours, it doesn't done properly. let say its duration was 161 hours but it display only 17 hours even i change format to [h]:mm:ss

    Need your help,please. Thanks in advance.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Time formula problem with its format when over 24 hours

    In the format cells window, click custom and then click @, this worked for me when I tested it. Wait, this may do nothing for you. Can you show the formula you are using?
    Last edited by gmr4evr1; 02-08-2015 at 10:56 AM.
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,824

    Re: Time formula problem with its format when over 24 hours

    Understanding how Excel stores and uses date/time values (as serial numbers) is critical to understanding and debugging these kind of problems. I would suggest spending some time with this and similar tutorials: http://www.cpearson.com/Excel/datetime.htm#SerialDates

    What I notice is that 161 hours is 1 week away (or 1 week + 1 day, depending on the start time). 17 hours is same day or next day, again, depending on start time. I would guess that, somehow, one of the dates you are subtracting is not correct. Double check the full date/time values that you are subtracting and make sure they are about a week apart and not same day/next day.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Time formula problem with its format when over 24 hours

    Quote Originally Posted by Honma Meiko View Post
    I have problem with time formula. when its duration over than 24 hours, it doesn't done properly. let say its duration was 161 hours but it display only 17 hours even i change format to [h]:mm:ss
    The devil is in the details.

    Please provide an example Excel file that demonstrates the problem. Use this forum's "attach file" feature. Or upload the file to a file-sharing website and post the public/share URL in a response.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Time formula problem with its format when over 24 hours

    161 hours is 6 days and 17 hours - your format is showing only the number of hours. Use a custom format on that cell of [hh]:mm:ss - the square brackets ensure that the number of hours is not wrapped at 24.

    Hope this helps.

    Pete

+ 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. VBA insert formula & SUM negative time format problem
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-09-2014, 04:18 PM
  2. [SOLVED] Formula to Calculate Normal Hours, Time & 1/2 & Double Time from Daily Hours per week
    By KazzICC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2014, 01:51 AM
  3. [SOLVED] Time Sheet Problem: Hours will not calcuate correctly if over 12 hours
    By JokesterX in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2014, 02:13 AM
  4. [SOLVED] Time in Time format and text foramt - Finding the Hours difference
    By thilag in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2013, 07:14 AM
  5. [SOLVED] Convert hours and minutes in time format into fractions of hours..
    By Akern in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-21-2005, 10:06 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