+ Reply to Thread
Results 1 to 2 of 2

Excel formula to calculate the distance between multiple points using lat/lon coordinates

  1. #1
    Registered User
    Join Date
    02-15-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    13

    Excel formula to calculate the distance between multiple points using lat/lon coordinates

    I'm currently drawing up a mock database schema with two tables: Booking and Waypoint.

    Booking stores the taxi booking information.

    iQUwz.png

    Waypoint stores the pickup and drop off points during the journey, along with the lat lon position. Each sequence is a stop in the journey.

    HbjM7.png

    How would I calculate the distance between the different stops in each journey (using the lat/lon data) in Excel?

    Is there a way to programmatically define this in Excel, i.e. so that a formula can be placed into the mileage column (Booking table), lookup the matching sequence (via bookingId) for that journey in the Waypoint table and return a result?

    Example 1:

    A journey with 2 stops:

    Please Login or Register  to view this content.
    4.1 miles according to Google, entry made in mileage column in Booking table where id = 1

    Example 2:

    A journey with 3 stops:

    Please Login or Register  to view this content.
    27.7 miles according to Google, entry made in mileage column in Booking table where id = 3

    100% accuracy isn't an issue.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Excel formula to calculate the distance between multiple points using lat/lon coordina

    Sorry Ignore this
    Last edited by mehmetcik; 08-27-2014 at 04:34 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formula to calculate distance between to post codes in Excel
    By Shazz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-17-2013, 10:20 AM
  2. Calculate minimum distance between points
    By ciprian in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2011, 04:01 PM
  3. Calculate distance of latitude/longitude points
    By sanlen in forum Excel General
    Replies: 5
    Last Post: 12-08-2010, 01:03 AM
  4. Coordinates and Distance formula
    By cporter5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2010, 06:41 PM
  5. Replies: 7
    Last Post: 02-15-2009, 02:05 AM

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