+ Reply to Thread
Results 1 to 20 of 20

3 Unique Random Lists

  1. #1
    Registered User
    Join Date
    04-23-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    3 Unique Random Lists

    How would you create 3 unique random lists, where each individual list is different than the other. I’m trying to create a random pairing for golf for 3 rounds. The rows must be unique and the columns must be Player-1 thru Player-8. I atttempted Randarray, but cant filter conditions for duplicates. See Example below for clarification:
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: 3 Unique Random Lists

    Hi,
    what is the formula you are currently using?

  3. #3
    Registered User
    Join Date
    04-23-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: 3 Unique Random Lists

    I'm not currently using anything as I cannot get to work accurately.

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: 3 Unique Random Lists

    If you allow me to use helper columns.
    please try
    Please Login or Register  to view this content.
    Regards.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: 3 Unique Random Lists

    I think there may be another constraint. Each player can only appear once in each column. I guess Jeff can confirm

  6. #6
    Registered User
    Join Date
    04-23-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: 3 Unique Random Lists

    Yes that is correct. Each player can only show up once in each column.

  7. #7
    Registered User
    Join Date
    04-23-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: 3 Unique Random Lists

    To clarify, for example: Match-1 if Jeff plays Steve, then Steve must play Jeff. To make it more difficult, Match-2 cannot have the same two people as Match-1.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,245

    Re: 3 Unique Random Lists

    Is this what is required? You will need VBA to do this as a cell cannot both be a value and formula which is needed to solve this.

    This was a simple manual exercise.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: 3 Unique Random Lists

    I think this will be a vba solution solved by repetition untill you criteria are satisified

    the attached is inelegant, but as your number of people is small is workable

    It matches the people so rank 1 and 2 go together, 3 and 4 go together etc etc

    However to be an acceptable solution the names in the row can not appear more than once

    click the button to generate a solution
    Please Login or Register  to view this content.
    there will be amore elegant solution out there I am sure this is rough and ready
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-23-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: 3 Unique Random Lists

    Thanks davsth that works!

  11. #11
    Registered User
    Join Date
    04-23-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: 3 Unique Random Lists

    davsth - although the loop doesn't appear to be working. Do I have to execute the macro until C23=0?

  12. #12
    Forum Contributor
    Join Date
    04-15-2013
    Location
    Singapore, Melbourne
    MS-Off Ver
    Office 365
    Posts
    167

    Re: 3 Unique Random Lists

    Select range D3:D10, enter the below formula, press Ctrl+Shift+Enter:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Attachment 745648

    OR

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    asdf.png

    Final version...
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Metoo7; 08-27-2021 at 12:42 PM.
    Row row row your boat
    Gently down the stream

  13. #13
    Registered User
    Join Date
    04-23-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: 3 Unique Random Lists

    Metoo7 - thanks for the efforts, the only drawback is the "Players" cannot play against themselves, therefore there would have to be a condition to validate that. If I assigned Players A-H as players 1-8, there will certainly be duplicates.

  14. #14
    Forum Contributor
    Join Date
    04-15-2013
    Location
    Singapore, Melbourne
    MS-Off Ver
    Office 365
    Posts
    167

    Re: 3 Unique Random Lists

    At first, I have misunderstood your question. I just realised this and update the formula and edit the thread in above floor #12.

    You can find my example in worksheet "3 random players (2)"

    formula is
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  15. #15
    Forum Contributor
    Join Date
    04-15-2013
    Location
    Singapore, Melbourne
    MS-Off Ver
    Office 365
    Posts
    167

    Re: 3 Unique Random Lists

    a lookup function will do.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    04-23-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: 3 Unique Random Lists

    Metoo7 - in your spreadsheet for Match-1, if Player Jack plays Cloud, then Cloud must play Jack... this is not the case in your example.

  17. #17
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: 3 Unique Random Lists

    Then, from my previous file.
    Please change formula in E3 to
    Please Login or Register  to view this content.
    Regards.

    After review. this formula didn't work. :'(
    Attached Files Attached Files
    Last edited by menem; 08-27-2021 at 10:09 PM.

  18. #18
    Forum Contributor
    Join Date
    04-15-2013
    Location
    Singapore, Melbourne
    MS-Off Ver
    Office 365
    Posts
    167

    Re: 3 Unique Random Lists

    finally, I have to use a help table. Please see attached workbook for my working.
    Attached Images Attached Images
    Attached Files Attached Files

  19. #19
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: 3 Unique Random Lists

    Another try.
    Base from my previous file (again).
    E3
    Please Login or Register  to view this content.
    Regards.
    Attached Files Attached Files

  20. #20
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: 3 Unique Random Lists

    Jeff

    although the loop doesn't appear to be working. Do I have to execute the macro until C23=0? well the macro loops until this happens, you just need to press the button and enable macros if you haven't already done so. As the rand function is dynamic it changes after a solution is found. To overcome this the results are pasted into the yellow area as static results

    any clearer?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel VBA: Multi-level dependant lists ComboBoxes. some problem in extracting unique lists
    By talha.ansari in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-27-2021, 10:40 AM
  2. Copy multiple lists until last row and paste to unique lists
    By Nicolantonio in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-16-2020, 10:13 AM
  3. Replies: 3
    Last Post: 06-09-2014, 10:56 AM
  4. Dependent drop down lists without creating unique named lists
    By pajordan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-11-2013, 12:20 PM
  5. Validation Lists - Multiple dependent lists with unique values
    By Lewigi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2013, 06:42 AM
  6. LISTS! identifying unique values in multiple lists
    By pwall1115 in forum Excel General
    Replies: 3
    Last Post: 04-09-2013, 03:36 AM
  7. [SOLVED] LISTS! how to identify which values are unique in multiple lists
    By pwall1115 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-08-2013, 10:43 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