+ Reply to Thread
Results 1 to 4 of 4

Generating Random Names and Comparing to Existing List.

  1. #1
    Registered User
    Join Date
    01-19-2022
    Location
    Preston, England
    MS-Off Ver
    Office365
    Posts
    11

    Generating Random Names and Comparing to Existing List.

    I am in the process of generating random names using =Rand(), grouping into 4 using =rank() and filtering. Using that group of 4 I create 2 teams of 2 which creates a random pairing doubles match. I then do this for several games and matches. My problem occurs due to keeping a track of who has played with each other before.

    For example week 1 Player A & Player B and Player C & D. The following week Player A & Player D vs Player C & B this is an example using only 4 players but we have upto 20 members could potentially come and play. Also not everyone comes every week.

    Any ideas of how I could ensure the players weren't partnered (exist in the list) with previous pairings but keeping it random. As I have generated it several times but it always has gaps of partners who have played before.

    I have attached an example workbook to this post.

    Players - List of players assigned a random number and rank. If attending Y if not N.
    Matches - Rank from previous pages split into 4 groups according to number.
    PairingsAndResults - Pairings with a tick (using checkboxes) have already been paired (TRUE) and blank checkbox (FALSE) doesn't exist. Names are concatenated below to show pairings as text. (would prefer not to have the table at the bottom but unsure how to code without)
    Games - Displays the matches. For this example there are 20 players, playing 4 matches. If players not played before = names if they have played before = blank

    Thanks, J
    Attached Files Attached Files
    Last edited by Terrortot38; 01-25-2022 at 06:59 AM.

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,824

    Re: Generating Random Names and Comparing to Existing List.

    1. Could you try attaching it again. The file that's attached says there's some problem with it and it can try to repair, but I said no to the repair.
    2. Your Office (Excel) version says Windows 10. That's your Operating system version. What's your Excel version?

  3. #3
    Registered User
    Join Date
    01-19-2022
    Location
    Preston, England
    MS-Off Ver
    Office365
    Posts
    11

    Re: Generating Random Names and Comparing to Existing List.

    Hi, I have attached the spreadsheet again which should now work. I was using google sheets but have now copied and save from Office 365.

    I have opened this document fine in 365 and tried to open in Libre Office but the filter on matches doesn't work. This is the formula that should show in cell B3 =FILTER(Players!$C$5:$C$27, Players!$F$5:$F$27=B2)

    I was originally using Google Sheets but now can access Office 365.

    Thanks,
    J

  4. #4
    Registered User
    Join Date
    01-19-2022
    Location
    Preston, England
    MS-Off Ver
    Office365
    Posts
    11

    Re: Generating Random Names and Comparing to Existing List.

    Hi,

    Was anyone able to take a look at this for me?

    Thanks,
    J

+ 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. New to programming, need help generating random names for a schedule
    By infernalcolonel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2019, 05:01 PM
  2. [SOLVED] Random Generating list
    By jaycee66 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-02-2016, 06:55 PM
  3. [SOLVED] Generating Random Numbers with comparing/aligning
    By FiberFlux in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-28-2016, 06:11 PM
  4. [SOLVED] Generating a list with random units per sale from a list with the totals
    By Juliana33 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-05-2015, 03:45 AM
  5. [SOLVED] Draw random names from list and then remove, carry on till no names left in list
    By dave1983 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-26-2014, 12:14 PM
  6. Generating a list of Random numbers of random length...
    By Growl in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2013, 12:10 PM
  7. [SOLVED] generating a whole random # from a list
    By Arturo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-10-2005, 07:05 PM

Tags for this Thread

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