Did you confirm the formula with
CONTROL+SHIFT+ENTER? This is an array formula and you must use CSE. When you look in the formula bar you should she {} around the formula. The formula works for me. The N/A for the last two students is because I did not add them.
[TABLE="class: grid, width: 80%"]
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[TD]H[/TD]
[TD]I[/TD]
[TD]J[/TD]
[TD]K[/TD]
[TD]L[/TD]
[TD]M[/TD]
[TD]N[/TD]
[TD]O[/TD]
[TD]P[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Counselor[/TD]
[TD]Grade[/TD]
[TD]Ident[/TD]
[TD]Student Name[/TD]
[TD]Period[/TD]
[TD]Course Title[/TD]
[TD]Teacher[/TD]
[TD]Room[/TD]
[TD="align: right"][/TD]
[TD]Ident[/TD]
[TD="align: right"][/TD]
[TD]Student Name[/TD]
[TD]Period[/TD]
[TD]Course Title[/TD]
[TD]Teacher[/TD]
[TD]Room[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]Student 1[/TD]
[TD="align: right"]1[/TD]
[TD]Class 1[/TD]
[TD]Teacher 1[/TD]
[TD]Room 1[/TD]
[TD="align: right"][/TD]
[TD="align: right"]6[/TD]
[TD="align: right"][/TD]
[TD]Student 6[/TD]
[TD="align: right"]2[/TD]
[TD]Class 26[/TD]
[TD]Teacher 26[/TD]
[TD]Room 26[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]Student 1[/TD]
[TD="align: right"]2[/TD]
[TD]Class 2[/TD]
[TD]Teacher 2[/TD]
[TD]Room 2[/TD]
[TD="align: right"][/TD]
[TD="align: right"]890[/TD]
[TD="align: right"][/TD]
[TD]Student 890[/TD]
[TD="align: right"]7[/TD]
[TD]Class 7890[/TD]
[TD]Teacher 7890[/TD]
[TD]Room 7890[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]Student 1[/TD]
[TD="align: right"]3[/TD]
[TD]Class 3[/TD]
[TD]Teacher 3[/TD]
[TD]Room 3[/TD]
[TD="align: right"][/TD]
[TD="align: right"]908[/TD]
[TD="align: right"][/TD]
[TD]Student 908[/TD]
[TD="align: right"]2[/TD]
[TD]Class 2890[/TD]
[TD]Teacher 2890[/TD]
[TD]Room 2890[/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]Student 1[/TD]
[TD="align: right"]4[/TD]
[TD]Class 4[/TD]
[TD]Teacher 4[/TD]
[TD]Room 4[/TD]
[TD="align: right"][/TD]
[TD="align: right"]100[/TD]
[TD="align: right"][/TD]
[TD]Student 1000[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]#N/A[/TD]
[TD="align: right"]#N/A[/TD]
[TD="align: right"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]6[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]Student 1[/TD]
[TD="align: right"]5[/TD]
[TD]Class 5[/TD]
[TD]Teacher 5[/TD]
[TD]Room 5[/TD]
[TD="align: right"][/TD]
[TD="align: right"]1001[/TD]
[TD="align: right"][/TD]
[TD]Student 1001[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]#N/A[/TD]
[TD="align: right"]#N/A[/TD]
[TD="align: right"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]7[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]Student 1[/TD]
[TD="align: right"]6[/TD]
[TD]Class 6[/TD]
[TD]Teacher 6[/TD]
[TD]Room 6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]1[/TD]
[TD]Student 1[/TD]
[TD="align: right"]7[/TD]
[TD]Class 7[/TD]
[TD]Teacher 7[/TD]
[TD]Room 7[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]9[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]Student 2[/TD]
[TD="align: right"]1[/TD]
[TD]Class 1[/TD]
[TD]Teacher 1[/TD]
[TD]Room 1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]10[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]Student 2[/TD]
[TD="align: right"]2[/TD]
[TD]Class 2[/TD]
[TD]Teacher 2[/TD]
[TD]Room 2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]11[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]Student 2[/TD]
[TD="align: right"]3[/TD]
[TD]Class 3[/TD]
[TD]Teacher 3[/TD]
[TD]Room 3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]Student 2[/TD]
[TD="align: right"]4[/TD]
[TD]Class 4[/TD]
[TD]Teacher 4[/TD]
[TD]Room 4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]13[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]Student 2[/TD]
[TD="align: right"]5[/TD]
[TD]Class 5[/TD]
[TD]Teacher 5[/TD]
[TD]Room 5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]14[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]Student 2[/TD]
[TD="align: right"]6[/TD]
[TD]Class 6[/TD]
[TD]Teacher 6[/TD]
[TD]Room 6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]15[/TD]
[TD]counselor 1[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD]Student 2[/TD]
[TD="align: right"]7[/TD]
[TD]Class 7[/TD]
[TD]Teacher 7[/TD]
[TD]Room 7[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]16[/TD]
[TD]counselor 2[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]6[/TD]
[TD]Student 6[/TD]
[TD="align: right"]1[/TD]
[TD]Class 16[/TD]
[TD]Teacher 16[/TD]
[TD]Room 16[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]17[/TD]
[TD]counselor 2[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]6[/TD]
[TD]Student 6[/TD]
[TD="align: right"]2[/TD]
[TD]Class 26[/TD]
[TD]Teacher 26[/TD]
[TD]Room 26[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]18[/TD]
[TD]counselor 2[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]6[/TD]
[TD]Student 6[/TD]
[TD="align: right"]3[/TD]
[TD]Class 36[/TD]
[TD]Teacher 36[/TD]
[TD]Room 36[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]19[/TD]
[TD]counselor 2[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]6[/TD]
[TD]Student 6[/TD]
[TD="align: right"]4[/TD]
[TD]Class 46[/TD]
[TD]Teacher 46[/TD]
[TD]Room 46[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]20[/TD]
[TD]counselor 2[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]6[/TD]
[TD]Student 6[/TD]
[TD="align: right"]5[/TD]
[TD]Class 56[/TD]
[TD]Teacher 56[/TD]
[TD]Room 56[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]21[/TD]
[TD]counselor 2[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]6[/TD]
[TD]Student 6[/TD]
[TD="align: right"]6[/TD]
[TD]Class 66[/TD]
[TD]Teacher 66[/TD]
[TD]Room 66[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]22[/TD]
[TD]counselor 2[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]6[/TD]
[TD]Student 6[/TD]
[TD="align: right"]7[/TD]
[TD]Class 76[/TD]
[TD]Teacher 76[/TD]
[TD]Room 76[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]23[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]7[/TD]
[TD]Student 7[/TD]
[TD="align: right"]1[/TD]
[TD]Class 17[/TD]
[TD]Teacher 16[/TD]
[TD]Room 17[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]24[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]7[/TD]
[TD]Student 7[/TD]
[TD="align: right"]2[/TD]
[TD]Class 27[/TD]
[TD]Teacher 26[/TD]
[TD]Room 27[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]25[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]7[/TD]
[TD]Student 7[/TD]
[TD="align: right"]3[/TD]
[TD]Class 37[/TD]
[TD]Teacher 36[/TD]
[TD]Room 37[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]26[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]7[/TD]
[TD]Student 7[/TD]
[TD="align: right"]4[/TD]
[TD]Class 47[/TD]
[TD]Teacher 46[/TD]
[TD]Room 47[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]27[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]7[/TD]
[TD]Student 7[/TD]
[TD="align: right"]5[/TD]
[TD]Class 57[/TD]
[TD]Teacher 56[/TD]
[TD]Room 57[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]28[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]7[/TD]
[TD]Student 7[/TD]
[TD="align: right"]6[/TD]
[TD]Class 67[/TD]
[TD]Teacher 66[/TD]
[TD]Room 67[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]29[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]7[/TD]
[TD]Student 7[/TD]
[TD="align: right"]7[/TD]
[TD]Class 77[/TD]
[TD]Teacher 76[/TD]
[TD]Room 77[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]30[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]890[/TD]
[TD]Student 890[/TD]
[TD="align: right"]1[/TD]
[TD]Class 1890[/TD]
[TD]Teacher 1890[/TD]
[TD]Room 1890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]31[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]890[/TD]
[TD]Student 890[/TD]
[TD="align: right"]2[/TD]
[TD]Class 2890[/TD]
[TD]Teacher 2890[/TD]
[TD]Room 2890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]32[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]890[/TD]
[TD]Student 890[/TD]
[TD="align: right"]3[/TD]
[TD]Class 3890[/TD]
[TD]Teacher 3890[/TD]
[TD]Room 3890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]33[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]890[/TD]
[TD]Student 890[/TD]
[TD="align: right"]4[/TD]
[TD]Class 4890[/TD]
[TD]Teacher 4890[/TD]
[TD]Room 4890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]34[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]890[/TD]
[TD]Student 890[/TD]
[TD="align: right"]5[/TD]
[TD]Class 5890[/TD]
[TD]Teacher 5890[/TD]
[TD]Room 5890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]35[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]890[/TD]
[TD]Student 890[/TD]
[TD="align: right"]6[/TD]
[TD]Class 6890[/TD]
[TD]Teacher 6890[/TD]
[TD]Room 6890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]36[/TD]
[TD]counselor 7[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]890[/TD]
[TD]Student 890[/TD]
[TD="align: right"]7[/TD]
[TD]Class 7890[/TD]
[TD]Teacher 7890[/TD]
[TD]Room 7890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]37[/TD]
[TD]counselor 3[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]908[/TD]
[TD]Student 908[/TD]
[TD="align: right"]1[/TD]
[TD]Class 1908[/TD]
[TD]Teacher 1890[/TD]
[TD]Room 1890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]38[/TD]
[TD]counselor 3[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]908[/TD]
[TD]Student 908[/TD]
[TD="align: right"]2[/TD]
[TD]Class 2890[/TD]
[TD]Teacher 2890[/TD]
[TD]Room 2890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]39[/TD]
[TD]counselor 3[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]908[/TD]
[TD]Student 908[/TD]
[TD="align: right"]3[/TD]
[TD]Class 3890[/TD]
[TD]Teacher 3890[/TD]
[TD]Room 3890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]40[/TD]
[TD]counselor 3[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]908[/TD]
[TD]Student 908[/TD]
[TD="align: right"]4[/TD]
[TD]Class 4890[/TD]
[TD]Teacher 4890[/TD]
[TD]Room 4890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]41[/TD]
[TD]counselor 3[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]908[/TD]
[TD]Student 908[/TD]
[TD="align: right"]5[/TD]
[TD]Class 5890[/TD]
[TD]Teacher 5890[/TD]
[TD]Room 5890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]42[/TD]
[TD]counselor 3[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]908[/TD]
[TD]Student 908[/TD]
[TD="align: right"]6[/TD]
[TD]Class 6890[/TD]
[TD]Teacher 6890[/TD]
[TD]Room 6890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]43[/TD]
[TD]counselor 3[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]908[/TD]
[TD]Student 908[/TD]
[TD="align: right"]7[/TD]
[TD]Class 7890[/TD]
[TD]Teacher 7890[/TD]
[TD]Room 7890[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
Sheet1
[TABLE="class: grid, width: 85%"]
<tbody>[TR]
[TD]
Array Formulas[TABLE="class: grid, width: 100%"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TD="width: 10px"]Cell[/TD]
[TD="align: left"]Formula[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]N2[/TH]
[TD="align: left"]{=INDEX(
F$2:F$8891,MATCH($J2&$M2,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]O2[/TH]
[TD="align: left"]{=INDEX(
G$2:G$8891,MATCH($J2&$M2,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]P2[/TH]
[TD="align: left"]{=INDEX(
H$2:H$8891,MATCH($J2&$M2,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]N3[/TH]
[TD="align: left"]{=INDEX(
F$2:F$8891,MATCH($J3&$M3,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]O3[/TH]
[TD="align: left"]{=INDEX(
G$2:G$8891,MATCH($J3&$M3,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]P3[/TH]
[TD="align: left"]{=INDEX(
H$2:H$8891,MATCH($J3&$M3,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]N4[/TH]
[TD="align: left"]{=INDEX(
F$2:F$8891,MATCH($J4&$M4,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]O4[/TH]
[TD="align: left"]{=INDEX(
G$2:G$8891,MATCH($J4&$M4,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]P4[/TH]
[TD="align: left"]{=INDEX(
H$2:H$8891,MATCH($J4&$M4,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]N5[/TH]
[TD="align: left"]{=INDEX(
F$2:F$8891,MATCH($J5&$M5,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]O5[/TH]
[TD="align: left"]{=INDEX(
G$2:G$8891,MATCH($J5&$M5,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]P5[/TH]
[TD="align: left"]{=INDEX(
H$2:H$8891,MATCH($J5&$M5,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]N6[/TH]
[TD="align: left"]{=INDEX(
F$2:F$8891,MATCH($J6&$M6,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]O6[/TH]
[TD="align: left"]{=INDEX(
G$2:G$8891,MATCH($J6&$M6,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]P6[/TH]
[TD="align: left"]{=INDEX(
H$2:H$8891,MATCH($J6&$M6,$C$2:$C$8891&$E$2:$E$8891,0))}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]