ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Time Formats (https://www.excelbanter.com/excel-discussion-misc-queries/67494-time-formats.html)

rj

Time Formats
 
Hi,

I need to know how to change a value into a time format.
eg. i want to change "2.5" into "02:30:00" (hh:mm:ss)
is there a funtion in excel?
Or if i have the values like "150:00", how can i convert it to
"02:30:00"?

Thanx in advance..


[email protected]

Time Formats
 
If I understand your question correctly the following formula should
work if the hours and fraction of hours are in cell A1:

=INT(A1/24)+TIME(INT(A1),MOD(A1,INT(A1))*60,0)

Set the format of the cell that contains this formula to [h]:mm:ss


Stefi

Time Formats
 
=2.5/24 and format the result cell like time!


"150:00" looks like a real XL time format [m]:ss
Re-format it like h:mm:ss

Regards,
Stefi



€žrj€ ezt Ă*rta:

Hi,

I need to know how to change a value into a time format.
eg. i want to change "2.5" into "02:30:00" (hh:mm:ss)
is there a funtion in excel?
Or if i have the values like "150:00", how can i convert it to
"02:30:00"?

Thanx in advance..



rj

Time Formats
 
thanx :)



All times are GMT +1. The time now is 10:21 AM.

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