I am working on a gradebook for some teachers. I have provided a simplified version HERE
On one of the sheets (the summary one), I am trying to show the grades of the selected student (A3) for the selected subjet (B3). I am pulling the data from three different sheets in the example: Math, Science, English. The pulled data appears in row 6 in the summary tab. My issue is the length of the code.
=IF(B3="Math";IFERROR(INDEX(Math!$B$3:$F$8; MATCH($A$3;Math!$B$3:$B$8;0));"Choisi un élève dans la cellule B4"); IF(B3="Science";IFERROR(INDEX(Science!$B$3:$F$8; MATCH($A$3;Math!$B$3:$B$8;0));"Choisi un élève dans la cellule B4"); IF(B3="English";IFERROR(INDEX(English!$B$3:$F$8; MATCH($A$3;Math!$B$3:$B$8;0));"Choisi un élève dans la cellule B4"))))
I am planning on having 16 subjects and can not figure I more efficient way to get my results. All of the data comes from the same range no matter the tab. The subject is the only variable that would change from selection to selection.
Thanks