+ Reply to Thread
Results 1 to 9 of 9

Distance Between (x,y) points Macro Help

  1. #1
    Registered User
    Join Date
    03-03-2015
    Location
    London
    MS-Off Ver
    Excel
    Posts
    5

    Post Distance Between (x,y) points Macro Help

    *user deleted post*
    Last edited by george1963; 03-03-2015 at 04:55 PM. Reason: i need to refine my question more, please delete this post

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Distance Between (x,y) points Macro Help

    Can you attach a sample workbook with some dummy data showing your spreadsheet layout before a macro is and then a results sheet of what it would look like after? To attach a file, click Go Advanced at the bottom of the screen scroll down to the Manage Attachments button, browse to the required file, and then push the Upload button.

  3. #3
    Registered User
    Join Date
    01-19-2015
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    59

    Re: Distance Between (x,y) points Macro Help

    Hi,

    I think a macro is not needed. Please check out the attached file. I hope I didn't make a mistake in the math formula
    Book1.xlsx
    Regards,
    Alex

  4. #4
    Registered User
    Join Date
    03-03-2015
    Location
    London
    MS-Off Ver
    Excel
    Posts
    5

    Re: Distance Between (x,y) points Macro Help

    *user deleted post*
    Attached Files Attached Files
    Last edited by george1963; 03-03-2015 at 04:55 PM.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Distance Between (x,y) points Macro Help

    In Columns E and F how do you get those numbers (the math)?

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Distance Between (x,y) points Macro Help

    First of all, I assume your "real" data doesn't have just "1" or "10" as point locations? Also, if you are calculating the distance between the two points, why are there 2 columns of results? X to Y is the same distance as Y to X as far as I know?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  7. #7
    Registered User
    Join Date
    03-03-2015
    Location
    London
    MS-Off Ver
    Excel
    Posts
    5

    Re: Distance Between (x,y) points Macro Help

    *user deleted post*
    Last edited by george1963; 03-03-2015 at 04:54 PM.

  8. #8
    Registered User
    Join Date
    03-03-2015
    Location
    London
    MS-Off Ver
    Excel
    Posts
    5

    Re: Distance Between (x,y) points Macro Help

    *user deleted post*
    Last edited by george1963; 03-03-2015 at 04:54 PM.

  9. #9
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Distance Between (x,y) points Macro Help

    Ok, here is a starting point. Check this macro and see if it works for you?

    Please Login or Register  to view this content.

+ 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. [SOLVED] Calculating distance between many GPS points and sorting by distance
    By jackalek in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-14-2014, 08:27 AM
  2. [SOLVED] Calculating Distance between 2 points.
    By isdouble in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-20-2012, 07:17 AM
  3. Distance between two points
    By dinuhere in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 06:42 AM
  4. Minimum distance between points
    By pmguerra in forum Excel General
    Replies: 16
    Last Post: 07-25-2009, 05:01 AM
  5. Distance between 2 geo-points
    By bstubbs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2009, 07:53 AM

Tags for this Thread

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