+ Reply to Thread
Results 1 to 3 of 3

How to generate a list of pairs for all combination possible?

  1. #1
    Registered User
    Join Date
    07-27-2015
    Location
    Freising
    MS-Off Ver
    2010
    Posts
    2

    How to generate a list of pairs for all combination possible?

    Hello

    Like Laeticha I am also trying to generate, in two columns, a list of pairs from a list of names.
    For example, if my original list is:
    201
    202
    203
    204

    Then I would like to generate the following pair list in two columns:
    column 1 column 2
    201 202
    201 203
    201 204

    and so on.

    JBeaucaire's code works really well, but:
    a) I don't need each number paired with itself, e.g. 201 201
    b) I only need each pair once, i.e. I need 201 204 but I don't then need 204 201

    Does anyone have any ideas? Thank you!
    Last edited by JBeaucaire; 08-05-2015 at 08:53 AM. Reason: Moved to its own thread. Please read and follow the Forum Rules, link above in the menu bar.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to generate a list of pairs for all combination possible?

    Here's a unique version:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    07-27-2015
    Location
    Freising
    MS-Off Ver
    2010
    Posts
    2

    Re: How to generate a list of pairs for all combination possible?

    Wow, that works perfectly, thank you very much!

+ 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 generate a list of pairs for all combination possible?
    By Laeticha in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-05-2015, 08:56 AM
  2. [SOLVED] Assemble a list of combinations/pairs into a matrix
    By guillm in forum Excel General
    Replies: 5
    Last Post: 07-09-2015, 04:31 AM
  3. [SOLVED] Flag values in a list of pairs?
    By unipsychologist in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-31-2015, 12:46 AM
  4. Create list of pairs based on conditions
    By Xenos27 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2013, 09:24 AM
  5. I need to generate a list of combination
    By ciprianb in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 02-28-2011, 01:28 PM
  6. Select Pairs Of Names From List Containing Dupes
    By callenco in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2010, 07:28 PM
  7. Producing Combination pairs of values
    By sajeel in forum Excel General
    Replies: 4
    Last Post: 05-27-2010, 02:53 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