Jul 24 2024 06:23 PM
Hello!
I'm currently trying to process data in Excel, and looking at how I might optimise my distribution of resources.
Effectively, I have a number of students who have provided up to 3 preferences for a staff member to talk to for guidance, and I'm looking if there's a way to optimise my spread for the most equal distribution of students per staff member.
Some staff members have been requested more than others, which is unavoidably going to lead to them having larger loads, but trying to distribute as evenly as possible. Is there a solution I'm not thinking of right now? I have the ability to process this data in either 365 or the desktop app.
Aug 02 2024 01:04 AM
o optimize the distribution of students to staff members in Excel based on their preferences and achieve the most equal distribution possible, you can use a combination of Excel features such as formulas, sorting, and potentially some manual adjustments. Here is a step-by-step guide to help you through this process:
Step 1: Gather and Organize Data
Step 2: Assign Students Based on Preferences
Step 3: Optimization Process
Example Formulas and Steps
=COUNTIF(StudentTable[Preference1], StaffMemberName) + COUNTIF(StudentTable[Preference2], StaffMemberName) + COUNTIF(StudentTable[Preference3], StaffMemberName)
=IF(COUNTIF(StaffTable[StaffMemberName], StudentTable[@Preference1]) < AVERAGE(StaffTable[AssignedStudents]), StudentTable[@Preference1], IF(COUNTIF(StaffTable[StaffMemberName], StudentTable[@Preference2]) < AVERAGE(StaffTable[AssignedStudents]), StudentTable[@Preference2], StudentTable[@Preference3]))
Advanced Option: Solver Add-In (Excel Desktop)
If you are using the desktop version of Excel, you can leverage the Solver Add-In to optimize the allocation. Solver is a powerful tool for what-if analysis, and it can help find the optimal solution for resource allocation problems.
Conclusion
By using these methods, you can optimize the distribution of students to staff members in Excel to achieve a more equal load. Start with the basic formula approach for initial assignment and use Solver for a more advanced and precise optimization. This approach ensures that student preferences are considered while aiming for an even distribution of assignments.
NOTE: Since no one has answered it for at least one day or more, I entered your question in an AI (Otherwise it would have cost the author a lot of writing time ). The text and the steps are the result of AI. Maybe it will help you further in your project, if not please just ignore it.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and Like it!
This will help all forum participants.
Aug 02 2024 06:59 AM
@wjhaw0 This reminded me of another post I helped on:
for that post I created a Lambda function and thought it might be of help to you. Here is the explanation I gave there and the file attached:
So in the attached I created a complex set of LAMBDA functions include 2 that are recursively calling themselves to solve this challenge. In the attached workbook is an example:
The inputs to the main LAMBDA call include the RANGE with the selection table (must be 1 column as a unique ID followed by any number of picks) and a Table with the list of options and corresponding max # spots for that option.
This solution will:
A) randomize the order of the table
B) go down the 1st choices and allow up to the max # for each option
C) continue with each next lower choice columns
D) For EACH row IF that row did not match (i.e. all selected options were already max) then it will auto assign a non-full option based on which ever option has most spots open first. (an example of this is the last line in the image above where E was given even though they didn't select E as an preferred option)
E) Undo the randomized order so that the result correctly lines back up
F) I added in an addition output column to show the 'randomized' order that was used during the process (i found this helpful just for my sake to understand why/how each row ended up getting the choice they got)