+ Reply to Thread
Results 1 to 6 of 6

Calculate Miles per hour

  1. #1
    Registered User
    Join Date
    11-03-2006
    Posts
    6

    Calculate Miles per hour

    I am trying to calculate MPH for a running spreadsheet and having issues...
    lets say i run 2.9 miles in 0:34:18 i want to know what the speed i was running for the distance (should be something like 5.1mph). I am sure that it is really easy i just cant figure out how to do it.
    Thanks in advance!

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    Say A1 = Miles , B1 = Time enter this in C1

    =(A1/B1)/24

    Formatted as General

    VBA Noob

  3. #3
    Registered User
    Join Date
    11-02-2006
    Posts
    6

    formula for time

    The formula you are looking for is
    3600/time in seconds * distance

    or
    3600/2058*2.9

    or 1.7492*2.9

    or 5.0728 MPH

    hope this helps

    klarzy

  4. #4
    Registered User
    Join Date
    11-03-2006
    Posts
    6

    that worked

    Thanks guys! both those worked!

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    No Problem

    VBA Noob

  6. #6
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394
    Quote Originally Posted by anwittin
    I am sure that it is really easy i just cant figure out how to do it.
    For the record, the problem you are having is that excel stores time as a fraction of a day. If you enter 0:34:18 into a cell, then format the cell as General, you will notice a decimal number 0.026875 which is the fraction of a day that 0:34:18 represents. So if you times this by 24, you will get the number of hours = 0.645 which is what you need to work out your formula.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1