PC Review


Reply
Thread Tools Rate Thread

Calculating Time from Speed and Distance?

 
 
John
Guest
Posts: n/a
 
      21st Jun 2007
I am trying to calculate the time expressed in hours and minutes based
on the average speed and distance travelled, but I'm having trouble
getting it to display correctly as e.g. 00:16 for 16 minutes.

For example I might have 16.8 as the miles travelled in cell A2 and 64
as the average Mph in cell B2. In cell C2 I have =A2/B2 which gives
0.2625. So I am trying to convert that decimal to h:mm. It should come
out something like 00:16. If anyone has any ideas on that I'd
appreciate it.

Thanks for your help

John


 
Reply With Quote
 
 
 
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      21st Jun 2007
>I am trying to calculate the time expressed in hours and minutes based
> on the average speed and distance travelled, but I'm having trouble
> getting it to display correctly as e.g. 00:16 for 16 minutes.
>
> For example I might have 16.8 as the miles travelled in cell A2 and 64
> as the average Mph in cell B2. In cell C2 I have =A2/B2 which gives
> 0.2625. So I am trying to convert that decimal to h:mm. It should come
> out something like 00:16. If anyone has any ideas on that I'd
> appreciate it.


Since 0.2625 is the fraction of an hour, multiply it by 60 to get the number
of minutes... 15.75 where the .75 is fraction of a minute (so you apparently
will want to round this number to get your 16 answer).

Rick

 
Reply With Quote
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      21st Jun 2007
=0.2625/24

Format cell as h:mm


"John" wrote:

> I am trying to calculate the time expressed in hours and minutes based
> on the average speed and distance travelled, but I'm having trouble
> getting it to display correctly as e.g. 00:16 for 16 minutes.
>
> For example I might have 16.8 as the miles travelled in cell A2 and 64
> as the average Mph in cell B2. In cell C2 I have =A2/B2 which gives
> 0.2625. So I am trying to convert that decimal to h:mm. It should come
> out something like 00:16. If anyone has any ideas on that I'd
> appreciate it.
>
> Thanks for your help
>
> John
>
>
>

 
Reply With Quote
 
Rick Rothstein \(MVP - VB\)
Guest
Posts: n/a
 
      21st Jun 2007
> >I am trying to calculate the time expressed in hours and minutes based
>> on the average speed and distance travelled, but I'm having trouble
>> getting it to display correctly as e.g. 00:16 for 16 minutes.
>>
>> For example I might have 16.8 as the miles travelled in cell A2 and 64
>> as the average Mph in cell B2. In cell C2 I have =A2/B2 which gives
>> 0.2625. So I am trying to convert that decimal to h:mm. It should come
>> out something like 00:16. If anyone has any ideas on that I'd
>> appreciate it.

>
> Since 0.2625 is the fraction of an hour, multiply it by 60 to get the
> number of minutes... 15.75 where the .75 is fraction of a minute (so you
> apparently will want to round this number to get your 16 answer).


Use Teethless mama's solution... don't know why, but I thought I was in the
"programming" newsgroup when I answered this.

Rick

 
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
Time, Distance, Speed Michael Koerner Microsoft Excel Programming 14 16th Mar 2009 06:42 PM
RE: Distance = Speed * Time question ShaneDevenshire Microsoft Excel Discussion 0 27th Sep 2008 08:35 PM
How do I get speed given time (hh:mm:ss) and distance in Excel? =?Utf-8?B?Q2hhcmxpZV8wMDc=?= Microsoft Excel Worksheet Functions 1 24th Sep 2006 05:02 AM
Re: Time Distance & Speed Norman Harker Microsoft Excel Worksheet Functions 2 13th Jul 2003 02:08 PM
Re: Time Distance & Speed Chip Pearson Microsoft Excel Worksheet Functions 0 12th Jul 2003 02:32 PM


Features
 

Advertising
 

Newsgroups
 


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