+ Reply to Thread
Results 1 to 5 of 5

Generating table of permutations of text values

  1. #1
    Registered User
    Join Date
    08-10-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    30

    Generating table of permutations of text values

    Hello,

    I don’t think a Pivot Table is going to accommodate the number of permutations I am looking to have displayed. Couldn’t find a text related function that would display these combinations for me. I hope someone can help.

    Scenario:
    There are 10 possible values for data contained in Columns A to F (Header title of each column is 1st, 2nd, 3rd.....6th). The 10 possible values are: “Break”, “Down/Even”, “Down/Under”, ”Down/Over”, “Same/Even”, “Same/Under”, “Same/Over”, “Up/Even”, “Up/Under”, “Up/Over” AND :
    (i) “Break” can only be present in one of the 6 columns or not at all; and
    (ii) All other values can be duplicated any number of times across any of the columns.

    how can I produce a table in which each row displays each possible permutation of those values for 1st through 6th according to those two rules?

    Thanks

    Trent

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: Generating table of permutations of text values

    bernborough,

    This may get you started in the right direction.

    If you copy the information in the title row, except for “Break”, and transpose them into a new worksheet in column A.

    Then in cell B1 type in 6 (or some other number), and run this macro:
    Create list of all pair combinations
    By pgc01
    http://www.mrexcel.com/forum/showthread.php?t=412952
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Registered User
    Join Date
    08-10-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Table of permutations incorporating duplication of elements

    Thanks alot Stanley. This has brought me further towards a solution.

    One aspect that I would like to accommodate is to have the macro By pgc01
    http://www.mrexcel.com/forum/showthread.php?t=412952 accommodate the presence of duplicate entries of an element.

    So, for example, a row of data From columns C to G has the values:
    Same/Under, Same/Even, Up/Over, Up/Even, Break, Same/Even
    Here, "Same/Even" is duplicated.

    Is there something simple that can be changed within the macro By pgc01
    http://www.mrexcel.com/forum/showthread.php?t=412952 to allow these types of datasets(rows) to show up in the table ??

    The permutations would be massive I know.

    Thanks,

    Trent

  4. #4
    Registered User
    Join Date
    08-10-2010
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Generating table of permutations of text values

    One aspect that I would like to accommodate is to have the macro By pgc01
    http://www.mrexcel.com/forum/showthread.php?t=412952 accommodate the presence of duplicate entries of an element.

    So, for example, a row of data From columns C to G has the values:
    Same/Under, Same/Even, Up/Over, Up/Even, Break, Same/Even
    Here, "Same/Even" is duplicated.

    Can this be done? The permutations would be massive I know.

    Thanks,

    Trent

  5. #5
    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: Generating table of permutations of text values

    There are 885,735 permutations. What would you do with them after you had them all listed that you couldn't do without listing them?
    Last edited by shg; 08-12-2010 at 07:17 PM.
    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