+ Reply to Thread
Results 1 to 8 of 8

how do I make a list of unique combinations from a series of variables

  1. #1
    Registered User
    Join Date
    02-07-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    how do I make a list of unique combinations from a series of variables

    Hi

    I need to make a list of unique combinations from a series of variables

    I have 5 variables, A, B, C, D, E

    These can hold 5 unique values each (A1, A2, A3, A4, A5, B1, B2, B3 etc etc)

    from these variables I want to make a list of all unique cominations that these variables and values can generate, like this

    A1B1C1D1E1
    A2B1C1D1E1
    A3B1C1D1E1
    .
    .
    .
    A1B2C1D1E1
    A1B3C1D1E1
    .
    .
    .
    A5B5C5D5E5

    How do I do this?

    Thank you in advane
    Last edited by bjas; 02-11-2011 at 06:59 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: how do I make a list of unique combinations from a series of variables

    @bjas, if you feel you need to cross post given lack of response please ensure you revert to your other threads and add links accordingly

    http://www.mrexcel.com/forum/showthread.php?t=527084

    this is outlined in Rule 8 of our Form Rules.

    Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,517

    Re: how do I make a list of unique combinations from a series of variables

    Please Login or Register  to view this content.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    02-07-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: how do I make a list of unique combinations from a series of variables

    TMShucks --> Works likea charm!

    Thank you so much!

  5. #5
    Registered User
    Join Date
    02-07-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: how do I make a list of unique combinations from a series of variables

    One more thing I thought of.

    is there an easy way to get the code to automaticaly detect if there are more or less than five entries in a column?

    If I for example only use 3 variables for A (a1, a2, a3) but 6 for B (b1,b2,b3,b4,b5,b6), can I make the code realise this without me interfering?

    I think i understand how I can do this manually, by editing the code.

    Again, thank you

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,517

    Re: how do I make a list of unique combinations from a series of variables

    One way:

    Please Login or Register  to view this content.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: how do I make a list of unique combinations from a series of variables

    You can also do this with formulas. See http://www.box.net/shared/ubd28tissi
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Registered User
    Join Date
    02-07-2011
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: how do I make a list of unique combinations from a series of variables

    thank you!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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