+ Reply to Thread
Results 1 to 4 of 4

Thread: Formatting numeric value to time

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    London, England
    MS-Off Ver
    Excel/Word/PPT 2003/2007
    Posts
    17

    Formatting numeric value to time

    Hello and happy new year to you all...

    I have a question regarding formatting excel cells in a time format. More specifically:

    I we have in cell A1 the value of 346 and assume that these are seconds, how can we easily convert this value to a "00:05:46" format? What I do now is find the quotient of 346/60 (=5) and then the rest of the seconds (=46). But then I need to type manually the 00:05:46 cell.

    I didn't find any solution in format cells -> custom.
    I would be grateful for any help on this.

    Thanks

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2007
    Posts
    10,055

    Re: Formatting numeric value to time

    If you have 346 in the cell and the format is general then you can't do that with formatting.

    Excel regards 346 as 346 days so to convert to seconds you can use a formula in another cell that divides that number by the number of seconds in a day (86400), e.g. in B1

    =A1/86400

    and format B1 as [hh]:mm:ss

  3. #3
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Formatting numeric value to time

    try

    =TIME(0,0,A1)
    Last edited by teylyn; 01-07-2010 at 05:29 AM.

  4. #4
    Registered User
    Join Date
    02-18-2009
    Location
    London, England
    MS-Off Ver
    Excel/Word/PPT 2003/2007
    Posts
    17

    Re: Formatting numeric value to time

    Thanks for both replies. It seems that the time function does the job... after adjusting for the correct hh:mm:ss format. Thanks again.

    John

+ 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.2.0