+ Reply to Thread
Results 1 to 1 of 1

Organising people into groups where the same person cannot appear with another twice.

  1. #1
    Registered User
    Join Date
    09-24-2012
    Location
    Bristol
    MS-Off Ver
    Excel 2010
    Posts
    4

    Organising people into groups where the same person cannot appear with another twice.

    So, Ive been working on a project for a friend for a while now, but am having some trouble on a few parts.

    In short, Im trying to make a template that will take a list of names (that have unique ID numbers) and randomly and equally put them into 4 sets of 8 groups, so basically 32 individual groups. There are 4 "Units", and for each unit this procedure is repeated with the same names (i.e. each unit has again 32 groups made up of the same people), but there are some restrictions:

    Firstly, no one person can be grouped again with someone they have previously been in a group with in the following units.
    Secondly, a person who appears in either the first or last group in a set (i.e. 1 or 8) cant appear in a 1 or 8 group again.

    So far, Ive managed to use VBA to create a list of random numbers, then used some cell formulas to create an index against the names and their random ranking which gives me a list of randomised names and another formula that counts the amount of names and separates them into as even a grouping as possible.

    Ive been looking at using formulas again to see if I can do something similar for the following units where those rules come into play, but have not had much luck, so am looking at VBA now, but my VBA is not really up to par.

    I was thinking of maybe transposing the first list so its headed by the group number and then creating the next unit of groups by finding someone and looking at where they are in that list and looping through to find if who is grouped with who if that makes sense, but I a) dont know if thats the best way to do what im trying to do, and b) need some guidance on how that would be structured in VBA since im pretty new to it.

    Any help would be massively appreciated. Ive attached what ive got so far.
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 09-15-2016, 01:10 AM
  2. Replies: 1
    Last Post: 05-30-2013, 01:32 PM
  3. Transpose/Pivot multiple rows per person into 1 row per person with fixed columns
    By MaestroEnrique in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2013, 06:35 AM
  4. Need a Formula to Check an Audit Log Against a List of Groups of People
    By badmoon75 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-22-2012, 11:44 AM
  5. Adding people to multiple groups for a stakeholder list
    By badlydrunkboy in forum Excel General
    Replies: 5
    Last Post: 03-02-2012, 07:31 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