Formula for Distance/Velocity Returned in Hours and MinutesLast reviewed: October 31, 1997Article ID: Q68253 |
The information in this article applies to:
SUMMARYYou may want to calculate the time elapsed for a distance over a given rate of speed equation and return the result in the "hours:minutes" format. This article contains examples of formulas that return the value in the "hours:minutes" format. To do use the examples, first type following sample data into the corresponding cells in a worksheet:
A1: Distance B1: MPH C1: Time A2: 50 B2: 65 C2: "See below"Then, use one of the following methods.
Method 1: Time Does Not Exceed 24 HoursUse this method if you do not expect the time to exceed 24 hours. In cell C2 enter the following formula:
=A2/B2/24This formula returns the result in the serial number format. Change this result to a time format by using one of the following methods. Microsoft Excel 7.0 and later: To change the format, follow these steps:
To change the format, follow these steps:
To change the format, follow these steps:
Method 2: Time Does Not Exceed 24 HoursUse this method if you expect the time to exceed 24 hours. NOTE: The result of this formula is actually a text string; it is not a number. To enter the formula, type the following sample formula in cell C2:
=TEXT(INT(A2/B2),"00")&":"&TEXT(((A2/B2)-INT(A2/B2))*60,"00")When cell A2 contains the value of the distance covered, and cell B2 contains the value of the rate of speed, this formula returns the result in the "hours:minutes" format. NOTE: The TEXT function in the formula converts both the hours and the minutes to text, and then concatenates them together with a colon that separates the two text strings.
|
Additional query words: 5.00 2.0 2.00 2.01 2.1 2.10 2.2 2.20 2.21 3.0
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |