+ Reply to Thread
Results 1 to 2 of 2

Randomly assign to a group with a maximum group size

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    Randomly assign to a group with a maximum group size

    I'm seeking some help with this task. I've done a few searches but can't find anything I need.

    I have 180 guests coming to an event. I want the guests to be randomly assigned to one of 25 possible tables, however I want to make sure that there are only 8 people to table.

    I've tried RANDBETWEEN however I can't think of a way to cap the number of assigned numbers to 8.

    Any ideas are appreciated.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,681

    Re: Randomly assign to a group with a maximum group size

    A solution that steals from Bob Umlas' (post #2 in thread)
    1) List the 180 names in a column.
    2) in an adjacent column enter the =RAND() function and copy down.
    3) Sort both columns by the column with the RAND() function.
    Now you can assign the randomly sorted names to tables 1 through 25 in order.
    Let me know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] VBA to randomly select a GROUP of data
    By symaxf in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-15-2016, 08:14 AM
  2. [SOLVED] (VBA) How Assign Column Cell To Corresponding Group, and Paste Group Cells into Groups WS?
    By eryksd in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-08-2016, 06:18 PM
  3. VBA to group a list of names randomly
    By Ironman in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-30-2014, 03:54 AM
  4. Replies: 1
    Last Post: 02-10-2014, 10:26 PM
  5. [SOLVED] Randomly group N elements (where N is a factor of 7) into groups of 7
    By nomadic23 in forum Excel General
    Replies: 14
    Last Post: 10-10-2013, 06:07 AM
  6. Randomly relisted a group of names onto another Book
    By Don Juan in forum Excel General
    Replies: 3
    Last Post: 09-09-2006, 12:44 AM
  7. [SOLVED] How do I shuffle a group of cells randomly in Excel?
    By golfmoab in forum Excel General
    Replies: 1
    Last Post: 01-22-2005, 10:06 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