+ Reply to Thread
Results 1 to 4 of 4

Finding closest index/match from LAT/LON without REPEATS

Hybrid View

  1. #1
    Registered User
    Join Date
    08-06-2020
    Location
    Florida
    MS-Off Ver
    Prof. Plus 2016
    Posts
    2

    Cool Finding closest index/match from LAT/LON without REPEATS

    I am looking to find closest location without a duplicate...

    I have a list of location I need to find a near site to REPLACE with a closest location, but not a duplicate from the search.

    I have included a sample workbook and the formulas I had put in and have as reference. Please let me know if there is a way to populate the closest site with not including the last one listed if less than as the closest distance. I need unique values and tried to mess around with small and other functions and each example led to duplicates no matter where I searched within the forum for similar.

    please also copy to [email


    Thank you very much anybody willing to help out!!!!!
    Attached Files Attached Files

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

    Re: Finding closest index/match from LAT/LON without REPEATS

    Administrative Note:

    Welcome to the forum.

    Unfortunately, it has come to our attention you have violated Rule #8 of our Forum RULES:

    Don't private message, visitor message or email Excel (or Access, Word, etc.) questions to moderators or other members.

    All questions and answers will benefit other posters like yourself when discussed in public threads. The point of having a public forum is to share solutions to common (and sometimes uncommon) problems with all members.

    Breaking this rule is considered harassment by most of our contributors and thus cannot be tolerated. Repeat offence could lead to a permanent ban, so do take this caution to heart.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-06-2020
    Location
    Florida
    MS-Off Ver
    Prof. Plus 2016
    Posts
    2

    Re: Finding closest index/match from LAT/LON without REPEATS

    i will not ask you to read the public forum note again.... trying to get hits to help.....

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,241

    Re: Finding closest index/match from LAT/LON without REPEATS

    Hi LBook and welcome to the forum.

    Sorry you got slapped with the rules, but I did too when I first started.

    I have an answer for you, but you will need to learn about the Solver Tool. In Solver there is an "Add Constraint" dialog where all possible solutions need to be Different ("dif" in the dialog). If you match your points 1 to 9 up with points A through K and calculate a Sum of distances between the matches, Solver might give you the answer you want.

    Think of the problem like this: Start matching 1 with a random letter points and calculate the distance between those two points. Then move to point 2 and match with any of the letters left. At the end you can calculate the Sum of the total distances between all matched points. Do the above a few thousand times and keep the pairings that is smallest. I used to do this random matching using VBA, then I discovered the Solver tool. Your goal in solver is to make the Sum of the random distances a minimum and have all the points be different.

    Watch a youtube video or two like: https://www.bing.com/videos/search?q...tail&FORM=VIRE or
    https://www.bing.com/videos/search?q...tail&FORM=VIRE
    I think you want the Evolutionary Method with a "dif" in the constraints.

    Hopes this gives you a place to start your study.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Finding closest match with 6 criteria
    By Redcannon973 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-20-2020, 06:23 AM
  2. [SOLVED] Finding Closest Match For Rows
    By mjm1013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-28-2020, 04:13 PM
  3. [SOLVED] Index & Match: Return Sum of Indexed Values if Match Repeats
    By fbinaghi in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-25-2019, 12:57 PM
  4. Finding Match or Closest match based on Multi Cells
    By Urlryn in forum Excel General
    Replies: 2
    Last Post: 08-30-2019, 07:07 AM
  5. Finding the closest match from 3 corresponding lists
    By simonpreston in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-31-2018, 01:13 PM
  6. Finding next closest match
    By nasir3100 in forum Excel General
    Replies: 1
    Last Post: 04-26-2009, 02:04 AM
  7. Finding Closest Match
    By andyiain in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-15-2006, 03:25 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