Hi,
Is this the sort of thing that you're after?
I have deliberately left off the "Art" worksheet, as I wanted to show you a feature of this workbook that I have incorporated that may or may not be of use. If you don't need this feature, let me know and I can grossly shorten the length of the formula.
1. Right-click on the "Biology" worksheet tab
2. Select "Move or copy..."
3. Tick "Create a copy" and select "(move to end)"
4. Rename the copied worksheet to "Art" and watch the formula in action
In short, this formula populates the list of students based on the worksheet name, so that worksheets can be copied to create new subjects without having to retype the formulas again 
Here is the formula:
Formula:
=IFERROR(INDEX(Master!A$2:A$11,SMALL(IF(Master!$C$2:$C$11=REPLACE(CELL("filename",$B$1),1,FIND("]",CELL("filename",$B$1)),""),ROW(Master!$B$2:$B$11)-ROW(Master!$B$1),IF(Master!$D$2:$D$11=REPLACE(CELL("filename",$B$1),1,FIND("]",CELL("filename",$B$1)),""),ROW(Master!$B$2:$B$11)-ROW(Master!$B$1),IF(Master!$E$2:$E$11=REPLACE(CELL("filename",$B$1),1,FIND("]",CELL("filename",$B$1)),""),ROW(Master!$B$2:$B$11)-ROW(Master!$B$1),IF(Master!$F$2:$F$11=REPLACE(CELL("filename",$B$1),1,FIND("]",CELL("filename",$B$1)),""),ROW(Master!$B$2:$B$11)-ROW(Master!$B$1))))),ROWS(A$1:A1))),"")
Note that this is an array formula, and requires Ctrl + Shift + Enter, not just Enter to work.
I hope this helps
Bookmarks