+ Reply to Thread
Results 1 to 3 of 3

Time formatting

  1. #1
    dziw
    Guest

    Time formatting

    Hi
    Just a quick question one of my calculations returns a length of time in hours in a decimal format. I was wondering if there was a way to format the cell so that for example if the figure 53.5 was returned then the cell would display the value 53:30
    (for 53 hours 30 minutes). the best that i can get so far is using "# ?/60" to return:
    53 30/60
    This isn't as neat as i would like. I have tried the date/time formatting options but they only seem to return things like 12:00:00.
    Any ideas?

  2. #2
    Bob Phillips
    Guest

    Re: Time formatting

    Don't think it can be done as the decimal part refers to parts of 60, not
    parts of 10/100/1000 etc, so it needs a conversion, which isn't a natural
    facet of formatting.

    --
    HTH

    Bob Phillips

    "dziw" <[email protected]> wrote in message
    news:[email protected]...
    >
    > Hi
    > Just a quick question one of my calculations returns a length of time
    > in hours in a decimal format. I was wondering if there was a way to
    > format the cell so that for example if the figure 53.5 was returned
    > then the cell would display the value 53:30
    > (for 53 hours 30 minutes). the best that i can get so far is using "#
    > ?/60" to return:
    > 53 30/60
    > This isn't as neat as i would like. I have tried the date/time
    > formatting options but they only seem to return things like 12:00:00.
    > Any ideas?
    >
    >
    > --
    > dziw
    > ------------------------------------------------------------------------
    > dziw's Profile:

    http://www.excelforum.com/member.php...o&userid=10422
    > View this thread: http://www.excelforum.com/showthread...hreadid=467798
    >




  3. #3
    Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 365
    Posts
    349
    I do not think there is any format, but you can create something like it. If you assume the result of your calculations is in cell A1, then In cell A2 write:
    =INT(A1)&":"&ROUND((A1-INT(A1))*60;0)
    In stead of "A1" you can write your calculation, but then it can get a little complicated

    NSV

+ 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