Closed Thread
Results 1 to 2 of 2

Generate permutations from a table that satisfy criteria

Hybrid View

  1. #1
    Registered User
    Join Date
    06-07-2021
    Location
    Auckland, NZ
    MS-Off Ver
    office 365
    Posts
    15

    Question Generate permutations from a table that satisfy criteria

    Hi everyone,
    I would like to generate a set of permutations that are unique and satisfy a criteria from a table.
    I have 8 classes and in future there will always be 8 classes for the week. Each class has a different number of students. This can range from 3 up to say 20 students for each class.
    I need to pick a student from each class and add their scores together. If the total score falls with a set range, I need to have the permutation copied down that represents each of those students.
    So for the example attached, I have 111.2 millions possible permutations. I only want to record the permutation when the total score of the 8 students (1 from each class) is between 10 and -20 points in total. Though this overall score will need to be changed. So at times I might choose (-5 and -40) or (30 and 22).
    I would need to calculate say aaaaaaaa, aaaaaaab, aaaaaaac....
    And running through all possible scenarios, the permutations I need recorded would start at aaaaaaah, aaaaaabg, aaaaaabh, aaaaaacf - as seen in the attachment in column U.
    Preferrably I would have all the possible permutations in the one column.
    If this is not possible with excel, what other programs could I use?
    I really appreciate all the help and wish you all a fantastic day.

    class score results permutations.xlsx

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    27,192

    Re: Generate permutations from a table that satisfy criteria

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    Please see Forum Rule #2 about thread duplication.

    I am closing this thread, but you may continue here in the Commercial Services thread

    If you wish to close the CS thread and continue here in the free forum please PM me.

    Thread closed.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] help with a vba to generate combinations-permutations
    By thoandros in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-30-2019, 04:21 AM
  2. Macro/Plugin to generate all possible permutations
    By surajshenoy91 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2017, 12:00 PM
  3. Using IF and results that satisfy 2 of 3 criteria
    By lbenfield in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2014, 12:30 PM
  4. [SOLVED] Pls help noobie generate a whole buncha permutations
    By yeehawlm in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 05-22-2013, 01:50 AM
  5. Satisfy 2 and more criteria
    By Mark McDonough in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-28-2006, 03:15 AM
  6. Satisfy 2 and more criteria
    By Mark McDonough in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-27-2006, 09:30 AM
  7. Generate permutations but delete double entries
    By as_sass in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2006, 02:35 PM

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