+ Reply to Thread
Results 1 to 2 of 2

Subsets

  1. #1
    Registered User
    Join Date
    03-09-2008
    MS-Off Ver
    MS Excel 2007
    Posts
    17

    Subsets

    Hi all

    I want to populate a spreadsheet by using all possible combinations of, for example, three numbers chosen from five numbers. ie if my full set is {1,2,3,4,5} then I want to achieve subsets like {1,2,3}, {1,2,4}, {1,2 5}, {2,3,4} etc. I am happy with the math, and I know there will be 10 in this case, but I need help with the code to generate the subsets.

    Can anyone help please?

    Thanks in advance.

    Robert

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    There has been another recent post asking a similar question

    http://www.excelforum.com/showthread.php?t=638863
    Martin

+ 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