+ Reply to Thread
Results 1 to 3 of 3

proximity of coordinate data

  1. #1
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    proximity of coordinate data

    G’day again Excel forum

    I’m having another little problem and I was hoping someone out there might have some thoughts.

    I have a series of points in a 3D Cartesian layout, I’ve listed the points in a table array each with a Point ID, X value, Y value, Z value and an ‘N’ value. I’m trying to find an equation I can enter into a new column (H4) that can lookup the ‘Point ID’ of the nth closest point to the point on the subject row (and ideally be dragged down).

    example.png

    So for example in cell H4 the equation would find the 3rd closest point to point 1 (point 4, returning the value 4), while in cell H5 the equation would find the 4th closest point to point 2 (Point 6, returning the value 6).

    I can calculate the distance between any 2 points thusly;

    Distance between 2 points: (SQRT(((X1 – X2)^2)+ ((Y1 – Y2)^2)+ ((Z1 – Z2)^2)))

    But I need an equation that will calculate the distance between the subject point and all points and find the nth smallest value.

    Maybe and Array formula of some description?

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: proximity of coordinate data

    Please attach a sample workbook with enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Note: Please don't attach documents containing confidential data like (address, telephone, ID#s, etc.).


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    10-24-2012
    Location
    Adelaide
    MS-Off Ver
    Excel 2019
    Posts
    79

    Re: proximity of coordinate data

    my apologies, hopefully this makes things clearer, if it doesn't let me know and i will try to simplify it further... I've included an analogue to the calculations i need to make, hopefully that helps as well...
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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