+ Reply to Thread
Results 1 to 6 of 6

Create all combination of cities possible from the given cities

  1. #1
    Registered User
    Join Date
    07-23-2017
    Location
    Peoria, USA
    MS-Off Ver
    2016
    Posts
    55

    Create all combination of cities possible from the given cities

    Dear Friends,

    I have a list of cities which i put in different columns. Now I want to create all the possible combination of cities from them. The cities can be individual cities, group of two cities, or 3 cities or N number of cities with all possible combination. Please help me on how can I develop that. I have attached the excel sheet for reference

    Thank You

    Piku
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    6,986

    Re: Create all combination of cities possible from the given cities

    .
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,912

    Re: Create all combination of cities possible from the given cities

    Try the attached, based on Myrna Larson's code. Myrna was an Excel MVP.
    Attached Files Attached Files
    Bernie Deitrick
    Excel MVP 2000-2010

  4. #4
    Registered User
    Join Date
    07-23-2017
    Location
    Peoria, USA
    MS-Off Ver
    2016
    Posts
    55

    Re: Create all combination of cities possible from the given cities

    Thank you so much guys. Worked like magic.

    Piku

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    6,986

    Re: Create all combination of cities possible from the given cities

    .
    You are welcome.

    Glad to help.

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Create all combination of cities possible from the given cities

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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] How to lookup a different number of cities?
    By waimea in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-06-2019, 02:06 AM
  2. [SOLVED] fix the cities in addresses
    By KingTamo in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-03-2018, 02:47 PM
  3. How to get the counts for different cities in a certain period.
    By rvfotopro in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-14-2017, 03:55 PM
  4. counting cities
    By TheVolkinator in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-26-2014, 02:35 PM
  5. How to generate all possible combinations of nine cities
    By Nikolas1988 in forum Excel General
    Replies: 2
    Last Post: 06-09-2014, 09:21 AM
  6. Macro to filter cities
    By rafuk73 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-31-2013, 09:56 AM
  7. Many Cities into few Regions
    By Johnny Image in forum Excel General
    Replies: 2
    Last Post: 04-17-2012, 07: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