+ Reply to Thread
Results 1 to 12 of 12

Distance between Coordinates

  1. #1
    Registered User
    Join Date
    12-08-2013
    Location
    Clare, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    13

    Distance between Coordinates

    I have created a sheet that shows distance between coordinates. Also working on something to put them in order of the closest point. I used a fixed point to find the nearest coordinate, but since i'm using a fixed point it doesnt go the order I want it to. I have attached the excel file I am working on. Please add any input Maybe a formula to find the nearest point from a list of coordinates to order each??Excel Help Distance.xlsx

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Distance between Coordinates

    Hi Dustin,

    Could you put in some headers so that we can make out what it is that you want?
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    12-08-2013
    Location
    Clare, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Distance between Coordinates

    I added headers to each.

    Column M I use to search the distance each coordinate is from Q1 & R1, which I am able to sort column M after that with the shortest being on top. Column N shows the distance from the row below coordinates and column O adds the distances together.Excel Help Distance.xlsx

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Distance between Coordinates

    Deleted as impertinent and Ill advised - Sorry!
    Last edited by xladept; 12-08-2013 at 09:26 PM.

  5. #5
    Registered User
    Join Date
    12-08-2013
    Location
    Clare, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Distance between Coordinates

    I'm not really sure whats the best way to complete this. From all the research I did this is the only thing I can find and I'm sure there is something better that could be used. Let me know your thoughts to make it more correct.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Distance between Coordinates

    Hi Dustin,

    Ignore my last post, your distance is copacetic with the change in latitude as a degree of latitude is about 69 miles - but, the truth is: I really don't understand what you're trying to do - it seems like your formulas are correct. I'm deleting my last post

  7. #7
    Registered User
    Join Date
    12-08-2013
    Location
    Clare, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Distance between Coordinates

    I'm trying to complete 2 things.

    1. First I need to sort the coordinates so they go in order from a starting point moving to the next closest point until it reaches the end.

    2. Once they are in order I will calculate the distance between the coordinates so I can show the full distance in feet.

    The coordinates aren't always the one provided in the sheet so I deal with many different coordinates. If possibly I wouldn't mind calculating distance in 3D rather then 2D which is what I have now.

  8. #8
    Registered User
    Join Date
    12-08-2013
    Location
    Clare, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Distance between Coordinates

    Also sometimes the coordinates aren't in a straight line so the method I use to figure out the order of coordinates might not always work. So if there might be a formula that would go in order and finding the next coordinate nearest to it would be helpful.

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Distance between Coordinates

    Here's a vector lesson I presented several years ago - I expect that you already know this but for x coming out of the diagram, z going up on the diagram and y traversing left to right on the diagram

    I'm not sure if this will help - but you're already in 3D - anyway:

    z=r sin lat; x=r cos lat cos long and y= r cos lat sin long

    DustinVex.jpg And here's your file:DustinsDistances.xlsx

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Distance between Coordinates

    Hi Dustin,

    I just got a straight line distance greater than the GC Distance - have you considered putting elevation into your data set??

  11. #11
    Registered User
    Join Date
    12-08-2013
    Location
    Clare, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Distance between Coordinates

    I have considered it...could you guide me on this?

  12. #12
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Distance between Coordinates

    Well you'd need latitude, longitude and elevation for each site then just add the elevation to the earth's radius (6371 km), commensurably of course - but, I'm still not getting what you're after?

    BTW - I suspect that the .31 feet is just rounding error??
    Last edited by xladept; 12-11-2013 at 09:24 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. Replies: 7
    Last Post: 07-29-2013, 04:51 PM
  2. Coordinates and Distance formula
    By cporter5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-24-2010, 06:41 PM
  3. Replies: 7
    Last Post: 02-15-2009, 02:05 AM
  4. [SOLVED] Distance between two sets of coordinates... update
    By Marcus Fox in forum Excel General
    Replies: 4
    Last Post: 03-23-2006, 03:10 PM
  5. Distance between two sets of coordinates.
    By Marcus Fox in forum Excel General
    Replies: 2
    Last Post: 03-20-2006, 12:40 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