Excel Automation using VBA

LowHC

New Member
Joined
Jul 23, 2018
Messages
4
Hi,
I like to create a macro spreadsheet that can help me to automate the class allocation for my students.
My tasks include the following:-
1. Open an excel file and save as another file (done)
2. Filter Group 1 students
3. Allocate them evenly in G,H,I classes
4. Filter Group 2 students with the remaining students
5. Allocate them evenly in A,B,C,D,E,F,G,H,I
6. With the remaining students, using the entry score in descending order, allocate them into A,B,C,D,E,F,G,H,I for the 1st 9 remaining students then the next 9 remaining students start from B,C,D,E,F,G,H,I and go back to A and the 3rd group start from C,D,E,F,G,H,I and A, B and so on.
7. At the same time, have to ensure that the no. of students in each class is approximately the same (difference of 1-2).

Can anyone help?
Thanks in advance
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
You may be able to do what you want with helper columns without using a macro
Please list your column headings (incl column number)
Thanks
 
Upvote 0
A helper column is..
... a column added to the existing data that contains a formula(or text etc) to help use data sort/filter to give you what you want.
 
Upvote 0
Any others with other solutions? The helper column won’t work as it is dynamic. Those already filtered in the 1 2 groups would have already assigned a class. So left with the remaining students. Please advise. Thanks
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top