|
|
Divide into groups.
I have a list of 25 to 50 people and would like to divide them into 13
groups. How would I do this?
|
|
0
|
|
|
|
Reply
|
Utf
|
1/16/2010 1:44:01 AM |
|
Just to clarify. The names or in A1 – A52 and I would like to sort them in A1
– 52. If there are only 26 names then they would be in groups of 2 down A1 –
A52. Thanks! Jeff
"Jeff" wrote:
> I have a list of 25 to 50 people and would like to divide them into 13
> groups. How would I do this?
|
|
0
|
|
|
|
Reply
|
Utf
|
1/16/2010 1:52:01 AM
|
|
I assume you are looking to randomly assign the people to the groups.
Is there any other restictions? Do you want to evenly divide these
people among the groups so 25 people would have 12 groups of 2 people
and one group of 1. Or some other division.
Usually you assign a random number to each person and then sort by the
random number. Then perform an algorith to make the groups
Sub RandomGroups()
Dim Groups(0 To 12, 0 To 3)
'initialize random generator
Randomize
'Assume name are on column A
LastRow = Range("A" & Rows.Count).End(xlUp).Row
'assign rtandom number
For RowCount = 1 To LastRow
Range("B" & RowCount) = Rnd
Next RowCount
'sort on random number
Rows("1:" & LastRow).Sort _
header:=xlNo, _
key1:=Range("B1"), _
order1:=xlAscending
For RowCount = 1 To LastRow
GroupNum = (RowCount - 1) Mod 13
IndexNum = Int((RowCount - 1) / 13)
Groups(GroupNum, IndexNum) = Range("A" & RowCount)
Next RowCount
End Sub
--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/showthread.php?t=170638
[url="http://www.thecodecage.com"]Microsoft Office Help[/url]
|
|
0
|
|
|
|
Reply
|
joel
|
1/16/2010 2:12:03 AM
|
|
|
2 Replies
681 Views
(page loaded in 0.214 seconds)
Similiar Articles: Divide into groups. - microsoft.public.excel.programming ...I have a list of 25 to 50 people and would like to divide them into 13 groups. How would I do this? ... Divide Dates into Weeks and Months - microsoft.public.access ...Hi All, I have a table that has 3 fields: OT_DATE WEEK MONTH The purpose of this table is to calculate overtime worked per employee per week. I jo... Dividing Worksheet into Two Columns - microsoft.public.excel.misc ...Greetings, Is there a way to, in page setup or somewhere else, divide the worksheet itself into two columns, much like Word document? I have a me... Divide a a range of dates into intervals starting with the current ...Could someone please advise if the following is possible. I have a table of dates not all dates are represented. I would like to group these dates into regular ... how to divide the number in one cell into multiple cells ...I have a value (5000) in one Excel cell. I need to distribute it into equal values in 10 cells. Can any one please let me know how to do that ... How do I make the page split into 2, and have them the same ...I want to make landscape A4 page, split into 2 down the middle, and have the same information on the left as the right. ... dividing a number into hours and minutes - microsoft.public.excel ...My users are entering numbers into column B. Is it possible to take the total of column B (say Row X) and divide it into hours and minutes putting ... Records split into two rows - microsoft.public.accessI receive a text file from a 3rd party vendor. The file splits each customer's information across two rows. For example, my first row of data is ... dividing lines - microsoft.public.access.formsDividing Worksheet into Two Columns - microsoft.public.excel.misc ... Divide into groups. - microsoft.public.excel.programming ... dividing lines - microsoft.public.access ... Split text into 2 columns - microsoft.public.excel.programming ...Separate my data into two columns at the first Capital letter? My data looks like this x 544 lines aerodrome A defined area on land or water. ... Dividing Into Smaller Groups - Youthwork Links and IdeasLinks | Ideas | FAQ's | Search | Site Map If you need help NOW, click HERE for hot line numbers in several countries Dividing Into Smaller Groups FUN WAYS TO SPLIT INTO GROUPSGirl Scouts of Northern California Fun_Splitters FUN WAYS TO SPLIT INTO GROUPS PROP RELATED GROUPING PROP RELATED GROUPING Button Sort: Have sets of matching buttons ... Ways to Divide A Group From the Simple and Mundane to Really Fancy ...The Question: It's been a little heavy on the list lately, so I'm going to break it up a bit. I have a group I need to split into 10 teams of 4 people. How to Get Students Into Groups: Organizing Teams and Partners in ...Sometimes students need to be divided into groups for a physical education game in the gym or outdoors. Then grouping with an activity is the fastest method. What is another word for to divide into groups - The Q&A wikiAnother word for divide? "carve up", "dissever", "disunite", "fraction", "part", "separate", "split", "split up", "water parting" and "watershed" 7/22/2012 6:23:23 AM
|
|
|
|
|
|
|
|
|