+ Reply to Thread
Results 1 to 3 of 3

how to generate set of combinations from n-integers in excel/vba

  1. #1
    Registered User
    Join Date
    02-25-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    3

    how to generate set of combinations from n-integers in excel/vba

    hi guys, i m really confused could you help me pls!!
    i ve got n integers (lets say n=5) how can i make excel/vba generate all possible combinations of 1, 2, 3 ... 5 digits from these n integers?

    e.g. for n=5, the output should be

    12345
    1234
    1235
    ...
    123
    124
    125
    ...

    12
    13
    14
    15
    23
    ...

    1
    2
    3
    4
    5



    thanks a lot!!!

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

    Re: how to generate set of combinations from n-integers in excel/vba

    Perhaps you can adapt this: http://www.box.net/shared/nqljsd3nlu
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-25-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: how to generate set of combinations from n-integers in excel/vba

    Quote Originally Posted by shg View Post
    Perhaps you can adapt this: http://www.box.net/shared/nqljsd3nlu
    thanks a lot for help. i had a look at the file, but i m not sure i get how to change the solution in the file to adopt my question...

+ 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