+ Reply to Thread
Results 1 to 3 of 3

I want to find the closest point to the origin using delta X and Delta Y.

  1. #1
    Registered User
    Join Date
    07-08-2015
    Location
    Morgantown, WV
    MS-Off Ver
    2010
    Posts
    1

    I want to find the closest point to the origin using delta X and Delta Y.

    I essentially have over 6000 records with an X and Y position but missing data. I have over 17,000 records that have all the data I need with X and Y as well.

    I would like to use excel to take each point missing the data and subtract the X and Y from all the points in the 17,000 with data and pull the data that is the minimum distance in both delta X and delta Y....

    So If the first record missing data is 300 feet from a point with data in the X direction and only 40 feet from a point with data in the Y direction I want to extract the missing data
    from the point that is only 40 feet away.

    My problem is how do you set this up as a formula? I also feel it would require a loop function to "loop" through the 17,000 X,Y points and find the minimum distance from each point in the 6,000+ records.

    I know I can import this into mapping software such as ESRI ArcGIS desktop and do it by hand But I would rather keep it in excel before going to that point!

    Thank you all!
    Dan (DCmapper)

  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: I want to find the closest point to the origin using delta X and Delta Y.

    Sounds like you want to interpolate - can you:
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. 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 shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window (or use the paperclip icon).
    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
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: I want to find the closest point to the origin using delta X and Delta Y.

    if you have x and y as simple measurements yards, meters, fathoms, whatever distance function will be pretty easy (just square root of sum of squared differences) while if you have your points stored as geo coordinates (lattitude and longitude) it will be a bit more advanced.
    HAve a look in these 2 links and check if you can reuse some of the code or formulas used there:
    http://www.excelforum.com/excel-prog...longitude.html (see attachment to post #4)
    http://www.excelforum.com/excel-prog...les-apart.html
    and may be third with an idea od dividing large dataset into smaller ones:
    http://www.excelforum.com/excel-prog...-a-number.html
    Best Regards,

    Kaper

+ 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] Compare two different Production Plan and find the Delta Qty for Day Wise Differences...
    By Rajeshkumar R in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-23-2015, 05:45 PM
  2. Excel 2007 : Conditional Formatting: Delta Tracking
    By lanied in forum Excel General
    Replies: 16
    Last Post: 07-21-2011, 04:43 PM
  3. DELTA Functions I Think!!!
    By ray963 in forum Excel General
    Replies: 1
    Last Post: 05-21-2011, 01:20 AM
  4. IF Function After DELTA
    By MSchleicher in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-17-2011, 05:35 PM
  5. convert numbers to positive and keep delta value
    By nolenkw in forum Excel General
    Replies: 3
    Last Post: 08-11-2006, 12:20 PM
  6. greek symbol delta
    By afdmello in forum Excel General
    Replies: 1
    Last Post: 10-23-2005, 03:05 PM
  7. Delta
    By Shatin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2005, 04:05 PM

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