+ Reply to Thread
Results 1 to 5 of 5

Calculating distance between two latitude longitude points

  1. #1
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Calculating distance between two latitude longitude points

    I have been searching and searching for a formula and macro that will derive the distance between two latitude longitude points.

    My data is in the following format:

    Origin LAT Origin LONG Destination LAT Destination LONG KM
    18.60738 73.77184 18.77393 73.83091
    18.50267 73.84494 18.77393 73.83091


    I Have attached file.
    If anyone can help me out with this I sure would appreciate it. I've already wasted hours trying to figure this out.
    Thanks!
    Attached Files Attached Files
    Happy to Help

    VISHA

    Click *, if the suggestion helps you!
    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>> "Mark your thread as Solved"

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,462

    Re: Calculating distance between two latitude longitude points

    Is this any use?

    http://www.contextures.com/excellatitudelongitude.html
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor visha_1984's Avatar
    Join Date
    11-27-2012
    Location
    Pune,India
    MS-Off Ver
    Excel 2010
    Posts
    290

    Re: Calculating distance between two latitude longitude points

    Ali thanks for reply

    not found any useful thread related Lat Long.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: Calculating distance between two latitude longitude points

    How about this ?
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by bakerman2; 02-16-2018 at 02:03 AM.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Calculating distance between two latitude longitude points

    Using your worksheet, the Great Circle distance (using a spheroid model) can be calculated by:
    =ACOS(SIN(RADIANS(A2))*SIN(RADIANS(C2))+COS(RADIANS(A2))*COS(RADIANS(C2))*COS(RADIANS(B2-D2)))*6367.465
    and copied down as far as needed.

    You may also be interested in: http://www.msofficeforums.com/excel/...using-lat.html
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

+ 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. Need help with my distance formula using latitude & longitude.
    By odimas in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-24-2014, 11:53 PM
  2. Distance between latitude and longitude
    By fazna ali in forum Excel General
    Replies: 2
    Last Post: 11-06-2012, 05:03 AM
  3. Distance Formula for Latitude and Longitude
    By dankappa in forum Excel General
    Replies: 4
    Last Post: 11-06-2012, 01:50 AM
  4. Replies: 0
    Last Post: 09-19-2012, 09:04 PM
  5. Calculate distance of latitude/longitude points
    By sanlen in forum Excel General
    Replies: 5
    Last Post: 12-08-2010, 01:03 AM
  6. Latitude and Longitude: Minimize distance
    By gcool12 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2010, 06:18 PM
  7. Determining Distance from Latitude and Longitude
    By morchard in forum Excel General
    Replies: 3
    Last Post: 01-24-2006, 08:45 PM
  8. Can distance be calculated using latitude and longitude?
    By Paxton in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-02-2005, 10:06 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