Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have sheet with columns listed as distance and time. An example of the
values in these columns are distance 5.0 km and the time column is 00:52:30.15 what type of formula would I would I need for a value in a kilometre per hour column. TIA -- Regards Michael Koerner |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
=N(A2/(B2*24))
where A2 is the distance, B2 the time. -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Michael Koerner" wrote in message ... I have sheet with columns listed as distance and time. An example of the values in these columns are distance 5.0 km and the time column is 00:52:30.15 what type of formula would I would I need for a value in a kilometre per hour column. TIA -- Regards Michael Koerner |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Bob;
It does, and thank you very much -- Regards Michael Koerner "Bob Phillips" wrote in message ... =N(A2/(B2*24)) where A2 is the distance, B2 the time. -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Michael Koerner" wrote in message ... I have sheet with columns listed as distance and time. An example of the values in these columns are distance 5.0 km and the time column is 00:52:30.15 what type of formula would I would I need for a value in a kilometre per hour column. TIA -- Regards Michael Koerner |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Speed = distance moved / time taken
The distance moved is A2-A1 Time taken is B2-B1 Speed is =(A2-A1)/(B2-B1) and the parentheses are needed to make sure Excel does the subtractions before the division If the series of measurements are for a non-accelerating object maybe your task (and this does sound like homework!) is to fit the data to a straight line. Make a chart and add a trendline; then look in Help to lean about the SLOPE function best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Michael Koerner" wrote in message ... I have sheet with columns listed as distance and time. An example of the values in these columns are distance 5.0 km and the time column is 00:52:30.15 what type of formula would I would I need for a value in a kilometre per hour column. TIA -- Regards Michael Koerner |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Bernard. A little to far gone to be a student. well into my 7th
decade <g -- Regards Michael Koerner "Bernard Liengme" wrote in message ... Speed = distance moved / time taken The distance moved is A2-A1 Time taken is B2-B1 Speed is =(A2-A1)/(B2-B1) and the parentheses are needed to make sure Excel does the subtractions before the division If the series of measurements are for a non-accelerating object maybe your task (and this does sound like homework!) is to fit the data to a straight line. Make a chart and add a trendline; then look in Help to lean about the SLOPE function best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Michael Koerner" wrote in message ... I have sheet with columns listed as distance and time. An example of the values in these columns are distance 5.0 km and the time column is 00:52:30.15 what type of formula would I would I need for a value in a kilometre per hour column. TIA -- Regards Michael Koerner |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sorry. I just started to seventh decade last month!
-- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Michael Koerner" wrote in message ... Thanks Bernard. A little to far gone to be a student. well into my 7th decade <g -- Regards Michael Koerner "Bernard Liengme" wrote in message ... Speed = distance moved / time taken The distance moved is A2-A1 Time taken is B2-B1 Speed is =(A2-A1)/(B2-B1) and the parentheses are needed to make sure Excel does the subtractions before the division If the series of measurements are for a non-accelerating object maybe your task (and this does sound like homework!) is to fit the data to a straight line. Make a chart and add a trendline; then look in Help to lean about the SLOPE function best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Michael Koerner" wrote in message ... I have sheet with columns listed as distance and time. An example of the values in these columns are distance 5.0 km and the time column is 00:52:30.15 what type of formula would I would I need for a value in a kilometre per hour column. TIA -- Regards Michael Koerner |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Youngster <g Also on the MVP list. Like to post in the public ng just in
case what I ask is causing problems for others. -- Regards Michael Koerner "Bernard Liengme" wrote in message ... Sorry. I just started to seventh decade last month! -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Michael Koerner" wrote in message ... Thanks Bernard. A little to far gone to be a student. well into my 7th decade <g -- Regards Michael Koerner "Bernard Liengme" wrote in message ... Speed = distance moved / time taken The distance moved is A2-A1 Time taken is B2-B1 Speed is =(A2-A1)/(B2-B1) and the parentheses are needed to make sure Excel does the subtractions before the division If the series of measurements are for a non-accelerating object maybe your task (and this does sound like homework!) is to fit the data to a straight line. Make a chart and add a trendline; then look in Help to lean about the SLOPE function best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "Michael Koerner" wrote in message ... I have sheet with columns listed as distance and time. An example of the values in these columns are distance 5.0 km and the time column is 00:52:30.15 what type of formula would I would I need for a value in a kilometre per hour column. TIA -- Regards Michael Koerner |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Mon, 9 Mar 2009 07:35:43 -0400, "Michael Koerner" wrote:
I have sheet with columns listed as distance and time. An example of the values in these columns are distance 5.0 km and the time column is 00:52:30.15 what type of formula would I would I need for a value in a kilometre per hour column. TIA If 00:52:30.15 is elapsed time in hrs:minutes:seconds then elapsed time in hours = left(elapsed time,2) + mid(elapsed time,4,2)/60 + mid(elapsed time,7,5)/120 and Kilometers per hour =Kilometers/elapsed time in hours 5.0/(00 + 52/60 + 30.15/120) = 4.47 Km/Hr Chuck |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chuck;
Thanks, will try it out. -- Regards Michael Koerner "Chuck" wrote in message ... On Mon, 9 Mar 2009 07:35:43 -0400, "Michael Koerner" wrote: I have sheet with columns listed as distance and time. An example of the values in these columns are distance 5.0 km and the time column is 00:52:30.15 what type of formula would I would I need for a value in a kilometre per hour column. TIA If 00:52:30.15 is elapsed time in hrs:minutes:seconds then elapsed time in hours = left(elapsed time,2) + mid(elapsed time,4,2)/60 + mid(elapsed time,7,5)/120 and Kilometers per hour =Kilometers/elapsed time in hours 5.0/(00 + 52/60 + 30.15/120) = 4.47 Km/Hr Chuck |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Mon, 9 Mar 2009 12:30:30 -0400, "Michael Koerner" wrote:
Chuck; Thanks, will try it out. When you try it and it doesn't work, the seconds should be divided by 3600 not 120. -- Chuck |
#11
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That is exactly what happened. thank you very much.
-- Regards Michael Koerner "Chuck" wrote in message ... On Mon, 9 Mar 2009 12:30:30 -0400, "Michael Koerner" wrote: Chuck; Thanks, will try it out. When you try it and it doesn't work, the seconds should be divided by 3600 not 120. -- Chuck |
#12
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chuck tried your formula, and came up with a #DIV/0
C23 = 5.14 D23 = 00:53:23.44 Here is how I inserted it according to your earlier post. =C23/LEFT(D23,2)+MID(D23,4,2)/60+MID(D23,7,5)/3600 -- Regards Michael Koerner "Chuck" wrote in message ... On Mon, 9 Mar 2009 12:30:30 -0400, "Michael Koerner" wrote: Chuck; Thanks, will try it out. When you try it and it doesn't work, the seconds should be divided by 3600 not 120. -- Chuck |
#13
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What are you trying to calculate?
If you are trying to calculate speed given a distance and a time then use: =B3/(B4*24) Where B3 is distance and B4 is time. "Michael Koerner" wrote in message ... Chuck tried your formula, and came up with a #DIV/0 C23 = 5.14 D23 = 00:53:23.44 Here is how I inserted it according to your earlier post. =C23/LEFT(D23,2)+MID(D23,4,2)/60+MID(D23,7,5)/3600 -- Regards Michael Koerner "Chuck" wrote in message ... On Mon, 9 Mar 2009 12:30:30 -0400, "Michael Koerner" wrote: Chuck; Thanks, will try it out. When you try it and it doesn't work, the seconds should be divided by 3600 not 120. -- Chuck |
#14
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sat, 14 Mar 2009 13:19:44 -0400, "Michael Koerner" wrote:
Chuck tried your formula, and came up with a #DIV/0 C23 = 5.14 D23 = 00:53:23.44 Here is how I inserted it according to your earlier post. =C23/LEFT(D23,2)+MID(D23,4,2)/60+MID(D23,7,5)/3600 -- Regards Michael Koerner Sorry 'bout that. Try: =C23/(LEFT(D23,2)+MID(D23,4,2)/60+MID(D23,7,5)/3600) Note the parentheses after the / and after the 3600 -- Chuck |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Calculating Time from Speed and Distance? | Excel Worksheet Functions | |||
How do I get speed given time (hh:mm:ss) and distance in Excel? | Excel Worksheet Functions | |||
How to calculate speed given distance and mm:ss time format? | Excel Discussion (Misc queries) | |||
time/distance calculation | Excel Worksheet Functions | |||
Time and distance formula | Excel Worksheet Functions |