PC Review


Reply
Thread Tools Rate Thread

computing time

 
 
Stéf
Guest
Posts: n/a
 
      1st Aug 2004
I would like to raise a formula which calculate a time value and display it
in a specified format from the distance and the speed.
e.g.
B1=42195 distance in m
A2=17 speed in km/h or *(10/36) = 4.722 in m/s

Time = B1/(A2*10/36) = 8935.412 s
I would like the following result displayed in B2: 02:28:55'41 which
corresponds to Time converted in hh:mn:s'(1/10).
I prefer a solution not using the excell function TIME.

Could anyone help?

Thanks, Stéphane.




 
Reply With Quote
 
 
 
 
Frank Kabel
Guest
Posts: n/a
 
      1st Aug 2004
Hi
use the formula
=(B1/(A2*10/36))/(24*60*60)

and afterwards format the cell with the custom format
[hh]:mm:ss.00


--
Regards
Frank Kabel
Frankfurt, Germany


Stéf wrote:
> I would like to raise a formula which calculate a time value and
> display it in a specified format from the distance and the speed.
> e.g.
> B1=42195 distance in m
> A2=17 speed in km/h or *(10/36) = 4.722 in m/s
>
> Time = B1/(A2*10/36) = 8935.412 s
> I would like the following result displayed in B2: 02:28:55'41
> which corresponds to Time converted in hh:mn:s'(1/10).
> I prefer a solution not using the excell function TIME.
>
> Could anyone help?
>
> Thanks, Stéphane.


 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      1st Aug 2004
One way:

Since XL stores times as fractional days, you can convert to a time by
dividing by 86400 seconds per day, to get

=B1/A2/311040

Custom format as

hh:mm:ss.00

I don't know any way to get the ' character instead of the period, while
leaving the value a number. If you didn't mind a string, you could use:

=SUBSTITUTE(TEXT(B1/A2/311040,"hh:mm:ss.00"),".","'")





In article <Ox8kF4$(E-Mail Removed)>,
"Stéf" <(E-Mail Removed)> wrote:

> I would like to raise a formula which calculate a time value and display it
> in a specified format from the distance and the speed.
> e.g.
> B1=42195 distance in m
> A2=17 speed in km/h or *(10/36) = 4.722 in m/s
>
> Time = B1/(A2*10/36) = 8935.412 s
> I would like the following result displayed in B2: 02:28:55'41 which
> corresponds to Time converted in hh:mn:s'(1/10).
> I prefer a solution not using the excell function TIME.
>
> Could anyone help?
>
> Thanks, Stéphane.

 
Reply With Quote
 
Nick Hodge
Guest
Posts: n/a
 
      1st Aug 2004
Stéphane

You need to convert the whole number you have. Which in excel signifies days
to decimals to signify time. That is 24*60*60=86400. The formula would
then be

=(B1/(A2*10/36))/86400

You then need to format the cells hh:mm:ss.ss.

For explanations of dates and times in Excel go to

http://www.cpearson.com/excel/datetime.htm

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(E-Mail Removed)HIS


"Stéf" <(E-Mail Removed)> wrote in message
news:Ox8kF4$(E-Mail Removed)...
>I would like to raise a formula which calculate a time value and display it
> in a specified format from the distance and the speed.
> e.g.
> B1=42195 distance in m
> A2=17 speed in km/h or *(10/36) = 4.722 in m/s
>
> Time = B1/(A2*10/36) = 8935.412 s
> I would like the following result displayed in B2: 02:28:55'41 which
> corresponds to Time converted in hh:mn:s'(1/10).
> I prefer a solution not using the excell function TIME.
>
> Could anyone help?
>
> Thanks, Stéphane.
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Computing Time from One Day to Another =?Utf-8?B?V2VuZHk=?= Microsoft Excel Misc 1 25th Jul 2007 02:34 PM
Formula for computing day of the week and time Cryptographic_ICE@yahoo.com Microsoft Excel Worksheet Functions 4 15th Jun 2006 06:45 PM
Computing time difference =?Utf-8?B?SiBDb2xl?= Microsoft Access Form Coding 4 1st May 2005 02:31 AM
Computing formula for time Rohit Dhamija Microsoft Excel Misc 1 15th Jul 2004 05:47 AM
Computing Date n time Yinka Oyeks Microsoft Excel Programming 2 14th Feb 2004 10:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:20 AM.