+ Reply to Thread
Results 1 to 9 of 9

Randomly assign people to groups, over three rotations, without repeating groups

  1. #1
    Registered User
    Join Date
    02-28-2018
    Location
    Lausanne, Switzerland
    MS-Off Ver
    Excel for Mac 2011, Version 14.7.6
    Posts
    4

    Randomly assign people to groups, over three rotations, without repeating groups

    Hi everyone,

    I have 360 participants that need to be randomly assigned to three sessions. They all need to attend each Topic once. There are seven sessions available within each Topic. I've attached a table with all the information. I was able to create an array formula to randomly assign each participant to a session for the first round but I am not sure how I can make sure they don't attend the same topic twice.

    The intended results would be similar to the attached Round 1 - Group Generator sheet except it would be for all three rounds with each person having attended all three topics

    Any help would be really appreciated.
    Attached Files Attached Files
    Last edited by Gioletsgo; 02-28-2018 at 06:52 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Randomly assign people to groups, over three rotations, without repeating groups

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-28-2018
    Location
    Lausanne, Switzerland
    MS-Off Ver
    Excel for Mac 2011, Version 14.7.6
    Posts
    4

    Re: Randomly assign people to groups, over three rotations, without repeating groups

    Thank you! I have made some changes and attached excel sheets to make it easier. Please let me know if this is alright?

    Thank you

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Randomly assign people to groups, over three rotations, without repeating groups

    Not fully tested, but insert two more columns to the right of column B, and then try these array formulae:

    =IFERROR(INDEX($E$2:$E$22,LARGE((COUNTIF($C$1:C1,Teams)<>Members)*IF($E$2:$E$22<>B2,MATCH(ROW(Teams),ROW(Teams))),RANDBETWEEN(1,SUM(--(COUNTIF($C$1:C1,Teams)<>Members))))),"")

    =IFERROR(INDEX($E$2:$E$22,LARGE((COUNTIF($D$1:D1,Teams)<>Members)*IF($E$2:$E$22<>B2,IF($E$2:$E$22<>C2,MATCH(ROW(Teams),ROW(Teams)))),RANDBETWEEN(1,SUM(--(COUNTIF($D$1:D1,Teams)<>Members))))),"")

    Where E refers to what is currently in C, etc.
    Last edited by AliGW; 02-28-2018 at 07:09 AM. Reason: Second formula amended.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Randomly assign people to groups, over three rotations, without repeating groups

    Quote Originally Posted by Gioletsgo View Post
    Thank you! I have made some changes and attached excel sheets to make it easier. Please let me know if this is alright?

    Thank you
    I answered before you posted - please let me know if what I suggested is OK or not.

  6. #6
    Registered User
    Join Date
    02-28-2018
    Location
    Lausanne, Switzerland
    MS-Off Ver
    Excel for Mac 2011, Version 14.7.6
    Posts
    4

    Re: Randomly assign people to groups, over three rotations, without repeating groups

    Thank you for your reply. The formulas you've provided seem to work for two out of three topics but I still get some participants who are assigned to the same topic twice.
    If I understand what you've done, the trick would be to add an IF to the formula so that it does not take into consideration topics previously assigned?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Randomly assign people to groups, over three rotations, without repeating groups

    Yes, and it was a guess, I have to confess! I am not sure quite how to refine it to work properly - someone else may know.

  8. #8
    Registered User
    Join Date
    02-28-2018
    Location
    Lausanne, Switzerland
    MS-Off Ver
    Excel for Mac 2011, Version 14.7.6
    Posts
    4

    Re: Randomly assign people to groups, over three rotations, without repeating groups

    Your formula would work if it were for 21 different topics. Unfortunately, I have 3 topics that each contain 7 different sessions. Your help was much appreciated.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Randomly assign people to groups, over three rotations, without repeating groups

    Maybe you can adapt it.

+ 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. Groups no longer appear in Recent People
    By taylorsm in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 11-14-2017, 12:30 PM
  2. 22 people randomized into 4 groups
    By msa969 in forum Excel General
    Replies: 4
    Last Post: 10-25-2016, 03:47 PM
  3. [SOLVED] Randomly Shuffling Data Groups
    By terryhenderson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2015, 05:41 AM
  4. Randomly assign to groups, without duplicates
    By rw2 in forum Excel General
    Replies: 5
    Last Post: 05-08-2015, 08:31 AM
  5. Organize 35 people into groups of 5 over 9 days; minimize same people together
    By LuluPearl in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2015, 07:12 AM
  6. Randomly select 4 groups using 8 teams
    By johns1mom in forum Excel General
    Replies: 5
    Last Post: 01-15-2015, 03:45 PM
  7. Replies: 0
    Last Post: 09-11-2013, 11:04 AM

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