Jake Posted May 4, 2008 Share Posted May 4, 2008 I have a number in a cell that represents a number of hours, how can I change it so that Excel displays it in "Hours:Mins:Secs" rather than as a decimal number? eg I have a cell with "3.75" in it but I need it to display this cell as "3h 45m 00s" or just as "3:45:00" would do. Any ideas? Thanks Quote Link to comment Share on other sites More sharing options...
Pixelfill Posted May 4, 2008 Share Posted May 4, 2008 You can change the cell format to be hh:mm. Mike Quote Link to comment Share on other sites More sharing options...
RedM Posted May 4, 2008 Share Posted May 4, 2008 Isn't there an option if Format Cell? Quote Link to comment Share on other sites More sharing options...
Jake Posted May 4, 2008 Author Share Posted May 4, 2008 You can change the cell format to be hh:mm. Mike That doesn't do what I'm after though. Formatting the cell to HH:MM changes 3.75 into "03/01/1900 18:00:00" Quote Link to comment Share on other sites More sharing options...
RedM Posted May 4, 2008 Share Posted May 4, 2008 Any good? http://support.microsoft.com/kb/266691 Quote Link to comment Share on other sites More sharing options...
Pixelfill Posted May 4, 2008 Share Posted May 4, 2008 I haven't got Excel installed here, but that makes no sense. Which version of Excel? try [h]:mm - that shouldn't limit it to a 24 hour period and shouldn't display the calendar date either Mike Quote Link to comment Share on other sites More sharing options...
Jake Posted May 4, 2008 Author Share Posted May 4, 2008 That doesn't do what I'm after though. Formatting the cell to HH:MM changes 3.75 into "03/01/1900 18:00:00" I haven't got Excel installed here, but that makes no sense. I think it's displaying it as "3.75 Days after Midnight 01-Jan-1900" Which version of Excel? Excel 2000 try [h]:mm - that shouldn't limit it to a 24 hour period and shouldn't display the calendar date eitherNope. [h]:mm changes 3.75 in to 90:00 Odd innit? Quote Link to comment Share on other sites More sharing options...
Homer Posted May 4, 2008 Share Posted May 4, 2008 I don't beleive there is a way to do this using Format cells, it'll need a conversion or formula. Can't find one that works so far Quote Link to comment Share on other sites More sharing options...
Jake Posted May 4, 2008 Author Share Posted May 4, 2008 3.75 /24 formatted to [h]:mm works great. Thanks fellas Quote Link to comment Share on other sites More sharing options...
Homer Posted May 4, 2008 Share Posted May 4, 2008 Any good Jake? =TEXT(A1/24, "hh:mm.ss") Edit Doh, too slow yet again! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.