Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
ramdalen
 
Posts: n/a
Default Convert decimal hour into time format?

I use Excel to evaluate the results from different competitions. For exemple
I use an start hour (2005-06-12 09.10.00) and the finish time (2005-06-17
17.39.14) from an offshore sailing race to get the hours sailed. Then I can
convert the hours (128.29.14) to decimal hour by using the =HOUR() etc to
extract the hour, minuts etc. With the decimal hour I can calculate the speed
in km/h or in this case knots.

But my question is how I can go the other way to convert decimal hour (1,5)
to time format (01.30.00)?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If you have 1.5 hours than divide it by 24 to get excel time (format as time
as well or else you'll still get it displayed as decimals albeit different)

Regards,

Peo Sjoblom

"ramdalen" wrote:

I use Excel to evaluate the results from different competitions. For exemple
I use an start hour (2005-06-12 09.10.00) and the finish time (2005-06-17
17.39.14) from an offshore sailing race to get the hours sailed. Then I can
convert the hours (128.29.14) to decimal hour by using the =HOUR() etc to
extract the hour, minuts etc. With the decimal hour I can calculate the speed
in km/h or in this case knots.

But my question is how I can go the other way to convert decimal hour (1,5)
to time format (01.30.00)?

  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Mon, 20 Jun 2005 07:38:04 -0700, "ramdalen"
wrote:

I use Excel to evaluate the results from different competitions. For exemple
I use an start hour (2005-06-12 09.10.00) and the finish time (2005-06-17
17.39.14) from an offshore sailing race to get the hours sailed. Then I can
convert the hours (128.29.14) to decimal hour by using the =HOUR() etc to
extract the hour, minuts etc. With the decimal hour I can calculate the speed
in km/h or in this case knots.

But my question is how I can go the other way to convert decimal hour (1,5)
to time format (01.30.00)?


Methinks you are making things more complicated than necessary.

I am assuming that in your locale, the '.' is the time separator, equivalent to
":" in the US.

Excel stores time as fractions of a day.

So to obtain the average speed:

=Distance/((EndTime-StartTime)*24)

and format as General, or Number with the requisite number of decimal places.

To convert decimal hour to time:

=DecHr/24

and format as time, or as [h]:mm:ss.000 if you don't want the result expressed
in days.


--ron
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding time damezumari Excel Discussion (Misc queries) 2 June 20th 05 08:35 PM
If Statement - in time not decimal minutes Sue Excel Worksheet Functions 1 March 30th 05 04:35 PM
Round Time with Conditions KimLL Charts and Charting in Excel 1 February 15th 05 05:23 PM
How do I convert Military Time to minutes? Rachael Excel Worksheet Functions 1 January 6th 05 11:01 PM
Help Q: Entering 7 p time format, does not convert to 19:00 Frank Kabel Excel Discussion (Misc queries) 0 December 7th 04 08:20 AM


All times are GMT +1. The time now is 02:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"