+ Reply to Thread
Results 1 to 2 of 2

Grouping students in order of preference

  1. #1
    Registered User
    Join Date
    08-12-2024
    Location
    London, England
    MS-Off Ver
    Microsoft Office Professional Plus 2019
    Posts
    1

    Grouping students in order of preference

    Hi everyone!

    I am stretching my Excel skills to my limit to make my (teaching) life slightly easier. I'd appreciate any help!

    I have a group of 35 students who I need to split in groups of 3. Each group is taught at a different time. For example, group 1 is taught on Tuesdays from 10-11:30 am. Group 2 is taught on Wednesdays from 10-11:30 am, etc. So, roughly, 11 groups in total (2 groups will have 4 students and that's ok) - corresponding to 11 different tutorial hours.

    I'd like to have the students fill in an excel listing their top three groups/tutorial hours.

    I imagine that the first column would be titled 'name' and the three columns to the right would be titled 'preference 1', 'preference 2' and 'preference 3' - - the students would they would fill in the three most convenient groups for them next to their name.

    Relying on this data, is there a way to sort the students in 11 groups of 3?

    I attached a spreadsheet I found in another thread here (cannot post the link due to site rules)

    The problem with this spreadsheet is that columns F, G and H don't seem to be very helpful for the kind of sorting I'd like to do.

    Thank you!

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,989

    Re: Grouping students in order of preference

    Hello LawyernotIT and Welcome to Excel Forum.
    This somewhat works for the sample provided; however, it produces three groups of four.
    1. Column F assigns first preference classes based on: =IF(COUNTIFS(B$2:B2,B2)<=3,B2,"")
    2. Columns G:H assign second preference classes based on: =IF(AND(SUMPRODUCT(--($F2:F2=""))=COLUMNS($F2:F2),SUM(COUNTIFS(G$1:G1,C2),SUMPRODUCT(--($F$2:F$27=C2)))<=COLUMNS($D2:F2)),C2,"")
    3. C33:C43 show the number of students assigned to each class using: =SUMPRODUCT(--(F$2:H$27=B33))
    I feel that in order to get the class sizes down to 3 there will need to be more that three preference choices.
    I imagine that there is some number of choices that must be provided based on numbers of students and classes however I don't know what the number of choices would be.
    Let us know if you have any questions.
    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. Grouping household students with same address
    By smuas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-14-2021, 09:48 AM
  2. Grouping People On Preference
    By xcmtb83 in forum Excel General
    Replies: 7
    Last Post: 12-22-2020, 03:35 AM
  3. [SOLVED] Need help grouping by sales order # and sorting high to low
    By bhoth in forum Excel General
    Replies: 16
    Last Post: 01-13-2018, 02:57 PM
  4. Grouping values by Months in different order
    By dhiresh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-22-2013, 05:32 AM
  5. [SOLVED] Remove the Absent Students from the List of Failing Students
    By alyaahmed in forum Excel General
    Replies: 2
    Last Post: 03-28-2013, 01:40 PM
  6. IF function in order to preference
    By XLS-EXCEL in forum Excel General
    Replies: 2
    Last Post: 09-26-2007, 11:37 AM
  7. Excel 2003 Subtotal order and grouping incorrect in SP1
    By Adam Platt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2005, 08:06 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