+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Displaying seconds as hour:min:sec

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    5

    Displaying seconds as hour:min:sec

    I am able to change a cell containing seconds to show as either minutes or hours, but I haven't been able to find a good way to change those seconds to hours:min:seconds. Is there a way to do that?
    For example, my cell shows a login time of 29692 (I know that that is calculated as seconds). Right now, I use convert(A1,"sec","hr") and then I can see that it is 8.247 hours. What I would like to show is 8:14:52 if that is possible.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Displaying seconds as hour:min:sec

    Try:

    =A1/86400

    formatted as time h:mm:ss
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-21-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Displaying seconds as hour:min:sec

    You are a lifesaver!

  4. #4
    Registered User
    Join Date
    06-21-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Displaying seconds as hour:min:sec

    When I then make that into a bar graph, will it show as just the seconds since the cell is just formatted to show the way I'd like and not the actual value? Is there any way to get a graph to show it in my format?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Displaying seconds as hour:min:sec

    It should show up with same format as you have in that time formatted column.

+ 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