+ Reply to Thread
Results 1 to 2 of 2

Iterate through list...

  1. #1
    Registered User
    Join Date
    08-15-2014
    Location
    London,England
    MS-Off Ver
    MAC
    Posts
    1

    Iterate through list...

    I would like to create a workbook that contains a list of countries in Europe.

    Then, elsewhere in the workbook, I will have a selection list where one of the countries can be selected...and once a country is selected the entire list of countries would be returned in another list in the order that they border each other.

    For example, if the list contained Spain, France, Belgium, Netherlands, Germany, Switzerland, Italy, and Belgium is selected as the first country, then the other countries should be returned in a list that is ordered by the way that they border each other. So the returned list could look like:

    Belgium, Netherlands, Germany, Switzerland, Italy, France and Spain. (note if there is more than one border then it doesn't matter which path the list takes).

    Any ideas as to the most efficient way to do this?

    Hope this makes some sense!

  2. #2
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Iterate through list...

    Here's a place to gather a formula:

    http://office.microsoft.com/en-us/ex...#_Toc273640147

    Gather your Country borders from Wiki:
    http://en.wikipedia.org/wiki/List_of...y_land_borders

    That should get you started.
    Pete

+ 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] Iterate Through Names, list unused: Type Mismatch with Cells.Find
    By tlafferty in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2012, 04:03 PM
  2. Pick 2 numbers randomly from list and iterate
    By mrtn88 in forum Excel General
    Replies: 1
    Last Post: 07-10-2012, 10:25 AM
  3. Iterate through drop down list
    By excelcal in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-16-2009, 02:56 PM
  4. need to iterate, or something...
    By jacquesmckenna in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-28-2008, 11:34 AM
  5. [SOLVED] Can't iterate thru a row with For
    By peter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-07-2005, 01:06 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