Generating a list of names
I need to create a formula that generate a list of names based on specific criteria. I will do my best to describe what I have already done, and what is going wrong:
1. I have created a "data sheet" that lists (among other things) student's names and which classroom teacher they go to:
2. I have created another sheet to list all the students that are associated with Teacher 1, using an IF function to automatically place the students' names on the list:
3. This works fine, until a student moves from one classroom to another. In the first screenshot above, if I change Student 8 (row 9) to work with Teacher 2, their name appears in row 9 on the second sheet:
How can I make changes on the data sheet, have the Teacher sheet automatically update, yet keep the names from populating into the same row they originated from? I have tried using absolute values in the function, but that does not seem to make a difference. Is an IF function appropriate in this case? Is there something better/more useful that I should be using?
Numbers-OTHER, OS X Mountain Lion (10.8.3)