+ Reply to Thread
Results 1 to 9 of 9

Sorting students into groups with preferences

  1. #1
    Registered User
    Join Date
    01-16-2022
    Location
    New Mexico
    MS-Off Ver
    MS Office 2019
    Posts
    4

    Sorting students into groups with preferences

    Good afternoon,
    I am a teacher assistant working on creating an automatic grouping workbook on excel. I have the preferences of the students already and need help grouping them. Attached is the worksheet with all student's topic options and voting results. If anyone can help me it would be much appreciated, thank you!
    Attached Files Attached Files

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

    Re: Sorting students into groups with preferences

    I don't understand. What's your question? Can you mock up the results you want to see? How do you want to group the students?

  3. #3
    Registered User
    Join Date
    01-16-2022
    Location
    New Mexico
    MS-Off Ver
    MS Office 2019
    Posts
    4

    Re: Sorting students into groups with preferences

    I would like to group the students by topics such as Nuisance, GMO, Water, Onions, Pesticide, Immigration, Beef, Animal Welfare. They have put their preferences from 1-8 with 1 being their most desirable topic and 8 being their least desirable topic. I know I could do it manually but would like to learn how to do this if I am presented with a larger data set.

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

    Re: Sorting students into groups with preferences

    But what do you want the results to look like? What do you mean by "group the students by topics"? Take only a few students and mock up the results you'd like to see and then we can probably present you with a formula that will work for as many students as you like.

  5. #5
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,066

    Re: Sorting students into groups with preferences

    please provide an example spreadsheet that has been grouped (manually), along with explanation how you manually calculated/formulated your grouping.

  6. #6
    Registered User
    Join Date
    01-16-2022
    Location
    New Mexico
    MS-Off Ver
    MS Office 2019
    Posts
    4

    Re: Sorting students into groups with preferences

    Ok, I have attached the file with how I would group the students manually. What I did was went to each student starting from the top and looked at which topic was most desirable to that student. Again 1 being most desired and 8 being least desired. I decided that there would be a group with 1 student being that there were 8 groups with 15 students. Then, I started with the first student and gave them their most desired topic until the group was full. Once a group was full and I was unable to add any more students, I gave the remaining students their second most desirable choice and so on until all groups were full.
    Attached Files Attached Files

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

    Re: Sorting students into groups with preferences

    This is not as automatic as I imagine you would like and perhaps it will inspire someone to come up with a better proposal.
    1. Produce a list of topics as modeled in L7:L14
    2. Populate M7:M14 using: =COUNTIFS(J$3:J$17,L7)
    3. Populate N7:N14 using: =IFERROR(INDEX(L$7:L$14,AGGREGATE(15,6,(ROW(L$7:L$14)-ROW(L$6))/(M$7:M$14<M$6),ROWS(N$7:N7))),"")
    Note that cell M6 contains the desired group size.
    4. Populate J3:J17 using data validation drop downs that have the following source: =OFFSET($N$7,0,0,SUMPRODUCT(--($N$7:$N$14<>"")))
    Once a topic has been selected equal to the desired group size it will be removed from column N and the drop downs.
    As the number of drop down options decreases it is a bit easier to select the topic for the student.
    Note that I banded the rows as it made it a bit easier to keep up with the values I was evaluating.
    5. The names in L3:S4 are populated using: =IFERROR(INDEX($A$3:$A$17,AGGREGATE(15,6,(ROW($A$3:$A$17)-ROW($A$2))/($J$3:$J$17=L$1),ROWS(L$3:L3))),"")
    Note that L1:S1 are populated with group names copied from B2:I2.
    Let us 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.

  8. #8
    Registered User
    Join Date
    01-16-2022
    Location
    New Mexico
    MS-Off Ver
    MS Office 2019
    Posts
    4

    Re: Sorting students into groups with preferences

    Thank you so much Jete! I am taking a look at it right now.

  9. #9
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Sorting students into groups with preferences

    My result is different from your a bit.

    by adding many of helper columns.

    K3
    =IF(COUNTIF(V$2:V2,"x")<2,B3,"-")
    copy throu R17

    T3
    =MIN(K3:R3)
    copy throu T17

    V3
    =IF(B3=$T3,"x","")
    copy throu Ac17

    Result area
    AE11
    =IFERROR(INDEX($A$2:$A$17,AGGREGATE(15,6,(ROW($A$2:$A$17)-ROW($A$1))/(1/(V$2:V$17="x")),COUNTA(AE$10:AE10))),"")
    copy throu AL12

    Regards.
    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. Need help with Randomly Sorting people based on preferences
    By RoelKing in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-09-2016, 06:00 AM
  2. Creating random groups of students with no repeats
    By philgolf in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-25-2014, 02:09 PM
  3. Random groups of students
    By ILIASD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2014, 05:24 AM
  4. Replies: 2
    Last Post: 11-11-2013, 10:52 AM
  5. Mail merging students into separate groups
    By Cloudburst in forum Excel General
    Replies: 1
    Last Post: 08-28-2013, 11:21 AM
  6. Create or rank work groups based on preferences
    By stargroups in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2011, 03:10 PM
  7. Preferences for sorting to always have header row
    By Helenka in forum Excel General
    Replies: 3
    Last Post: 04-26-2006, 02:00 PM

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