+ Reply to Thread
Results 1 to 4 of 4

Create Combinations and permutations from 27 numbers

  1. #1
    Registered User
    Join Date
    07-15-2012
    Location
    Queensland, Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Create Combinations and permutations from 27 numbers

    Hi Im new to this forum,
    I have been away from using VBA for a number of years so not used to 2010 version. I was hoping not to ask this but browsing through the answers to a similar questions are close but not quite there. Anyway I have 27 numbers 1 - 27. And I need help to make a macro that can list in rows of 6 columns 4 number permutations (Single n0 in each cell) 6 numbers = 15 x 4 n0 perms, no 4 number permutation in any of the next rows are to duplicate any previous row. From my calcs there should be 17550 perms of 4 in turn 1170 rows of 6 n0s. Can any 1 guide me in writing this macro.. Any help will be much appreciated..
    Kind regards
    theborg

  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: Create Combinations and permutations from 27 numbers

    There are 17550 combinations of 27 choose 4. Why do you want them in six columns rather than four? How do you get 1170 rows out of that?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Create Combinations and permutations from 27 numbers

    Are you listing the permutations then???
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  4. #4
    Registered User
    Join Date
    07-15-2012
    Location
    Queensland, Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Create Combinations and permutations from 27 numbers

    Gladstone darts club.xlsx

    Hi ghd and xldept,
    Sorry for the confusion. But I am trying to formulate a draw for our darts club. Instead of names im using numbers up to 24 "not 27" members. the objective is to select 4 teams of 6 on a weekly basis where no more than 4 people in the 6 do not play together again over a period of weeks or a cycle. So by using numbers i have produced a table of all combinations about 80k .I have posted a sample of what i wish to be done... any help will be appreciated....the borg.

+ 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