ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Convert real number to an h:mm:ss display (https://www.excelbanter.com/excel-worksheet-functions/73156-convert-real-number-h-mm-ss-display.html)

Tom Weyand

Convert real number to an h:mm:ss display
 
Let's say I have a real number, i.e. 123456.789, that is in seconds and I
want to display it as 34:17:37. I kinda got lost trying to use
TEXT(TIME(etc.)). Maybe there is a better way.

--



Fred Smith

Convert real number to an h:mm:ss display
 
Excel stores times as fractions of a day. So change your seconds into days with:

=a1/86400

Format the result as [h]:mm:ss so that it will display more than 24 hours.

--
Regards,
Fred


"Tom Weyand" wrote in message
...
Let's say I have a real number, i.e. 123456.789, that is in seconds and I want
to display it as 34:17:37. I kinda got lost trying to use TEXT(TIME(etc.)).
Maybe there is a better way.

--





Tom Weyand

Convert real number to an h:mm:ss display
 
Worked just fine, thanks




All times are GMT +1. The time now is 09:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com