+ Reply to Thread
Results 1 to 4 of 4

Getting all unique combinations with in a collection?

  1. #1
    Registered User
    Join Date
    10-17-2011
    Location
    Planet Earth
    MS-Off Ver
    Excel 2003
    Posts
    3

    Getting all unique combinations with in a collection?

    Hi,

    I'm stuck trying to think of a way to workout all possible unique combinations of data within a set of data. All of my attempts so far are either incomplete or don't produce unique results, but all attempt have been successful at giving me a headache. I'm hoping the following explains my dilemma...

    Please Login or Register  to view this content.
    The result I would be looking for in this example is this...

    Please Login or Register  to view this content.
    I can do this if numInEachCombo is always 2 but I need a function that can also give me the following results if numInEachCombo = 3

    Please Login or Register  to view this content.
    Any ideas/assistance would be great.
    Cheers,
    Last edited by manicPsyche; 08-07-2012 at 07:03 AM.

  2. #2
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: Getting all unique combinations with in a collection?

    From what I see you don't want order to be changed, but why is acd not present?
    .?*??)
    `?.???.?*??)?.?*?)
    (?.?? (?.?
    Pichingualas <---
    ??????????????????????????

    Wrap your code with CODE TAGS.
    Thank those who helped you, Don't forget to add to their REPUTATION!!! (click on the star below their post).
    Please mark your threads as [SOLVED] when they are (Thread Tools->Mark thread as Solved).

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

    Re: Getting all unique combinations with in a collection?

    Perhaps http://www.excelforum.com/excel-programming-vba-macros/655940-number-combinations.html

    If it doesn't help, try the forum's advanced search. This problem has been asked many times ans solved

  4. #4
    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: Getting all unique combinations with in a collection?

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

+ 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