MASTER CLASS LIST Nov 12 2024.xlsm | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | L | M | N | |||||
1 | Last Name | First Name | DOB | Gender | Phone | Parents | PHN | Address | Name | PEN | Grade | ||||
Families |
I would like to create a sheet containing the last (family) name of all students in a school as well the grade. The family name will appear in ColumnA and the Grade in ColumnB. Additionally, a family may have more than 1 student in a class (twins or triplets) and if so, the resulting grade cell would also include the number of children in the grade, for example 5(2x) twins or 5(3x) triplets etc. The information is contained in a table (above). The determining factor when there are multiple identical last names is the "contact field" contents - i.e. same parent/guardian. The table can be sorted in any sequence but will likely be by last name, contact and grade. Ideally, after 55 (or so) family names and grades, the macro will then start populating at row 1, columns D and E, Then Columns G and H. After G and H are filled, back to column a&B with a page break. Continue until the table is processed.
Resulting output sheet called "families":
ColumnA ColumnB
Name Grade
Anderson 3
Brown 3 x 2, 4, 5 (for 2 students in grade 3) one in grade 4, one in grade 5
etc.....
Many thanks in advance,
Hart