danigirl121
New Member
- Joined
- Jun 8, 2016
- Messages
- 1
Link
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
<bdo dir="ltr">=INDEX(Student,MATCH("Teacher 2",Teacher,0))
<bdo dir="ltr">=IF($A$2=INDEX(Student,MATCH("Teacher 2",Teacher,0)),OFFSET(INDEX(Student,MATCH("Teacher 2",Teacher,0)),1,0),"")</bdo>
</bdo>
The link is to the Google Spreadsheet I'm referencing. The first formula is put into the A2 cell of Teacher 2's sheet, it pulls the first student that is assigned to her. And it does this successfully. <bdo dir="ltr">=IF($A$2=INDEX(Student,MATCH("Teacher 2",Teacher,0)),OFFSET(INDEX(Student,MATCH("Teacher 2",Teacher,0)),1,0),"")</bdo>
</bdo>
The second formula I'm trying to get to pull the next student that belongs to Teacher 2, but it just pulls the next student from the list.
I also don't think the logical expression of my IF statement is correct because I need it to take into account all the student names above the one I'm trying to pull. I feel like there should be a COUNTIF statement, but I haven't been able to get it to work.