Students Schedule on Excel 2016

knaimi

New Member
Joined
Jun 23, 2013
Messages
47
My excel sheets has the schedule of all the students in my school. The schedule has the following fields. Please see the sample for one student below:
ABCDEGHIJKLMNOP
1CounselorGradeIdentStudent NamePeriodCourse TitleTeacherRoomIdentStudent NamePeriodCourse TitleTeacherRoom
2counselor 110ID #Student 11Class 1Teacher 1Room 1ID #Student 62
3counselor 110ID #Student 12Class 2Teacher 2Room 2ID #Student 8902
4counselor 110ID #Student 13Class 3Teacher 3Room 3ID #Student 9082
5counselor 110ID #Student 14Class 4Teacher 4Room 4ID #Student 10002
6counselor 110ID #Student 15Class 5Teacher 5Room 5ID #Student 10012
7counselor 110ID #Student 16Class 6Teacher 6Room 6
8counselor 110ID #Student 17Class 7Teacher 7Room 7

<tbody>
</tbody>

Each student has 7 lines that represent 7 different classes that he/she is currently enrolled in. In our school we have 1400 students * 7 lines which is equals to 9800 lines of information that is located between column A to I. In columns K to M, I need to add a list of individual students. I need to place a formula to find what class, teacher, and room the student will be in based on a period that I will add in column M. I just want to point out that each student has a unique ID number. The info in columns N, O, & P should change if I change the period # in column M. I hope you can help me find a formula to help with this task.
Thank you,
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
I did not add all the data. Adjust ranges to match your data. Copy the formula in L2 across and down.


Excel 2010
ABCDEFGHIJKLMN
1CounselorGradeIdentStudent NamePeriodCourse TitleTeacherRoomIdentStudent NamePeriodCourse TitleTeacherRoom
2counselor 110ID #Student 11Class 1Teacher 1Room 1ID #Student 62Class 2six6Teacher 2Room 26
3counselor 110ID #Student 12Class 2Teacher 2Room 2ID #Student 8907Class 7890Teacher 7Room 78
4counselor 110ID #Student 13Class 3Teacher 3Room 3ID #Student 9082
5counselor 110ID #Student 14Class 4Teacher 4Room 4ID #Student 10002
6counselor 110ID #Student 15Class 5Teacher 5Room 5ID #Student 10012
7counselor 110ID #Student 16Class 6Teacher 6Room 6
8counselor 110ID #Student 17Class 7Teacher 7Room 7
9counselor 111ID #Student 61Class 1six6Teacher 1Room 16
10counselor 111ID #Student 62Class 2six6Teacher 2Room 26
11counselor 111ID #Student 63Class 3six6Teacher 3Room 36
12counselor 111ID #Student 64Class 4sx6Teacher 4Room 46
13counselor 111ID #Student 65Class 5six6Teacher 5Room 56
14counselor 111ID #Student 66Class 6six6Teacher 6Room 66
15counselor 111ID #Student 67Class 7six6Teacher 7Room 76
16counselor 211ID #Student 8901Class 1890Teacher 11Room 18
17counselor 211ID #Student 8902Class 2890Teacher 21Room 28
18counselor 211ID #Student 8903Class 3890Teacher 31Room 38
19counselor 211ID #Student 8904Class 4890Teacher 41Room 48
20counselor 211ID #Student 8905Class 5890Teacher 51Room 58
21counselor 211ID #Student 8906Class 6890Teacher 61Room 68
22counselor 211ID #Student 8907Class 7890Teacher 7Room 78
Sheet1
Cell Formulas
RangeFormula
L2{=INDEX(F$2:F$22,MATCH($J2&$K2,$D$2:$D$22&$E$2:$E$22,0))}
L3{=INDEX(F$2:F$22,MATCH($J3&$K3,$D$2:$D$22&$E$2:$E$22,0))}
M2{=INDEX(G$2:G$22,MATCH($J2&$K2,$D$2:$D$22&$E$2:$E$22,0))}
M3{=INDEX(G$2:G$22,MATCH($J3&$K3,$D$2:$D$22&$E$2:$E$22,0))}
N2{=INDEX(H$2:H$22,MATCH($J2&$K2,$D$2:$D$22&$E$2:$E$22,0))}
N3{=INDEX(H$2:H$22,MATCH($J3&$K3,$D$2:$D$22&$E$2:$E$22,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
I did not add all the data. Adjust ranges to match your data. Copy the formula in L2 across and down.

Excel 2010
ABCDEFGHIJKLMN
1CounselorGradeIdentStudent NamePeriodCourse TitleTeacherRoomIdentStudent NamePeriodCourse TitleTeacherRoom
2counselor 110ID #Student 11Class 1Teacher 1Room 1ID #Student 62Class 2six6Teacher 2Room 26
3counselor 110ID #Student 12Class 2Teacher 2Room 2ID #Student 8907Class 7890Teacher 7Room 78
4counselor 110ID #Student 13Class 3Teacher 3Room 3ID #Student 9082
5counselor 110ID #Student 14Class 4Teacher 4Room 4ID #Student 10002
6counselor 110ID #Student 15Class 5Teacher 5Room 5ID #Student 10012
7counselor 110ID #Student 16Class 6Teacher 6Room 6
8counselor 110ID #Student 17Class 7Teacher 7Room 7
9counselor 111ID #Student 61Class 1six6Teacher 1Room 16
10counselor 111ID #Student 62Class 2six6Teacher 2Room 26
11counselor 111ID #Student 63Class 3six6Teacher 3Room 36
12counselor 111ID #Student 64Class 4sx6Teacher 4Room 46
13counselor 111ID #Student 65Class 5six6Teacher 5Room 56
14counselor 111ID #Student 66Class 6six6Teacher 6Room 66
15counselor 111ID #Student 67Class 7six6Teacher 7Room 76
16counselor 211ID #Student 8901Class 1890Teacher 11Room 18
17counselor 211ID #Student 8902Class 2890Teacher 21Room 28
18counselor 211ID #Student 8903Class 3890Teacher 31Room 38
19counselor 211ID #Student 8904Class 4890Teacher 41Room 48
20counselor 211ID #Student 8905Class 5890Teacher 51Room 58
21counselor 211ID #Student 8906Class 6890Teacher 61Room 68
22counselor 211ID #Student 8907Class 7890Teacher 7Room 78

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
L2{=INDEX(F$2:F$22,MATCH($J2&$K2,$D$2:$D$22&$E$2:$E$22,0))}
M2{=INDEX(G$2:G$22,MATCH($J2&$K2,$D$2:$D$22&$E$2:$E$22,0))}
N2{=INDEX(H$2:H$22,MATCH($J2&$K2,$D$2:$D$22&$E$2:$E$22,0))}
L3{=INDEX(F$2:F$22,MATCH($J3&$K3,$D$2:$D$22&$E$2:$E$22,0))}
M3{=INDEX(G$2:G$22,MATCH($J3&$K3,$D$2:$D$22&$E$2:$E$22,0))}
N3{=INDEX(H$2:H$22,MATCH($J3&$K3,$D$2:$D$22&$E$2:$E$22,0))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>

Hi Scott,

Is there a way to ignore the students' names in the formula and focus on the student id? What I found out is that the name of each student in the first list is in one cell that include lastname,first name last name; while the name of each student in the second list is in two cells where last name in one cell and the first name in another. The student ID in both list should match.

Thank you,
 
Upvote 0
Using Id#

Excel 2010
ABCDEFGHIJKLMN
1CounselorGradeIdentStudent NamePeriodCourse TitleTeacherRoomIdentStudent NamePeriodCourse TitleTeacherRoom
2counselor 1101Student 11Class 1Teacher 1Room 16Student 62Class 2six6Teacher 2Room 26
3counselor 1101Student 12Class 2Teacher 2Room 2890Student 8907Class 7890Teacher 7Room 78
4counselor 1101Student 13Class 3Teacher 3Room 3ID #Student 9082
5counselor 1101Student 14Class 4Teacher 4Room 4ID #Student 10002
6counselor 1101Student 15Class 5Teacher 5Room 5ID #Student 10012
7counselor 1101Student 16Class 6Teacher 6Room 6
8counselor 1101Student 17Class 7Teacher 7Room 7
9counselor 1116Student 61Class 1six6Teacher 1Room 16
10counselor 1116Student 62Class 2six6Teacher 2Room 26
11counselor 1116Student 63Class 3six6Teacher 3Room 36
12counselor 1116Student 64Class 4sx6Teacher 4Room 46
13counselor 1116Student 65Class 5six6Teacher 5Room 56
14counselor 1116Student 66Class 6six6Teacher 6Room 66
15counselor 1116Student 67Class 7six6Teacher 7Room 76
16counselor 211890Student 8901Class 1890Teacher 11Room 18
17counselor 211890Student 8902Class 2890Teacher 21Room 28
18counselor 211890Student 8903Class 3890Teacher 31Room 38
19counselor 211890Student 8904Class 4890Teacher 41Room 48
20counselor 211890Student 8905Class 5890Teacher 51Room 58
21counselor 211890Student 8906Class 6890Teacher 61Room 68
22counselor 211890Student 8907Class 7890Teacher 7Room 78
Sheet1
Cell Formulas
RangeFormula
L2{=INDEX(F$2:F$22,MATCH($I2&$K2,$C$2:$C$22&$E$2:$E$22,0))}
L3{=INDEX(F$2:F$22,MATCH($I3&$K3,$C$2:$C$22&$E$2:$E$22,0))}
M2{=INDEX(G$2:G$22,MATCH($I2&$K2,$C$2:$C$22&$E$2:$E$22,0))}
M3{=INDEX(G$2:G$22,MATCH($I3&$K3,$C$2:$C$22&$E$2:$E$22,0))}
N2{=INDEX(H$2:H$22,MATCH($I2&$K2,$C$2:$C$22&$E$2:$E$22,0))}
N3{=INDEX(H$2:H$22,MATCH($I3&$K3,$C$2:$C$22&$E$2:$E$22,0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thanks, Scott. Unfortunately, when I entered the formula, I got the following error message "#N/A"

This is the formula I used in cell N2 "=INDEX(F$2:F$8891,MATCH($J2&$M2,$C$2:$C$8891&$E$2:$E$8891,0))"

F column is class, J is student ID, M is Period, C is student ID, E is period. I left column I blank.

any suggestions?
 
Last edited:
Upvote 0
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.

ABCDEFGHIJKLMNOP
1CounselorGradeIdentStudent NamePeriodCourse TitleTeacherRoomIdentStudent NamePeriodCourse TitleTeacherRoom
2counselor 1101Student 11Class 1Teacher 1Room 16Student 62Class 26Teacher 26Room 26
3counselor 1101Student 12Class 2Teacher 2Room 2890Student 8907Class 7890Teacher 7890Room 7890
4counselor 1101Student 13Class 3Teacher 3Room 3908Student 9082Class 2890Teacher 2890Room 2890
5counselor 1101Student 14Class 4Teacher 4Room 4100Student 10002#N/A#N/A#N/A
6counselor 1101Student 15Class 5Teacher 5Room 51001Student 10012#N/A#N/A#N/A
7counselor 1101Student 16Class 6Teacher 6Room 6
8counselor 1101Student 17Class 7Teacher 7Room 7
9counselor 1102Student 21Class 1Teacher 1Room 1
10counselor 1102Student 22Class 2Teacher 2Room 2
11counselor 1102Student 23Class 3Teacher 3Room 3
12counselor 1102Student 24Class 4Teacher 4Room 4
13counselor 1102Student 25Class 5Teacher 5Room 5
14counselor 1102Student 26Class 6Teacher 6Room 6
15counselor 1102Student 27Class 7Teacher 7Room 7
16counselor 2116Student 61Class 16Teacher 16Room 16
17counselor 2116Student 62Class 26Teacher 26Room 26
18counselor 2116Student 63Class 36Teacher 36Room 36
19counselor 2116Student 64Class 46Teacher 46Room 46
20counselor 2116Student 65Class 56Teacher 56Room 56
21counselor 2116Student 66Class 66Teacher 66Room 66
22counselor 2116Student 67Class 76Teacher 76Room 76
23counselor 7117Student 71Class 17Teacher 16Room 17
24counselor 7117Student 72Class 27Teacher 26Room 27
25counselor 7117Student 73Class 37Teacher 36Room 37
26counselor 7117Student 74Class 47Teacher 46Room 47
27counselor 7117Student 75Class 57Teacher 56Room 57
28counselor 7117Student 76Class 67Teacher 66Room 67
29counselor 7117Student 77Class 77Teacher 76Room 77
30counselor 711890Student 8901Class 1890Teacher 1890Room 1890
31counselor 711890Student 8902Class 2890Teacher 2890Room 2890
32counselor 711890Student 8903Class 3890Teacher 3890Room 3890
33counselor 711890Student 8904Class 4890Teacher 4890Room 4890
34counselor 711890Student 8905Class 5890Teacher 5890Room 5890
35counselor 711890Student 8906Class 6890Teacher 6890Room 6890
36counselor 711890Student 8907Class 7890Teacher 7890Room 7890
37counselor 310908Student 9081Class 1908Teacher 1890Room 1890
38counselor 310908Student 9082Class 2890Teacher 2890Room 2890
39counselor 310908Student 9083Class 3890Teacher 3890Room 3890
40counselor 310908Student 9084Class 4890Teacher 4890Room 4890
41counselor 310908Student 9085Class 5890Teacher 5890Room 5890
42counselor 310908Student 9086Class 6890Teacher 6890Room 6890
43counselor 310908Student 9087Class 7890Teacher 7890Room 7890

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
N2{=INDEX(F$2:F$8891,MATCH($J2&$M2,$C$2:$C$8891&$E$2:$E$8891,0))}
O2{=INDEX(G$2:G$8891,MATCH($J2&$M2,$C$2:$C$8891&$E$2:$E$8891,0))}
P2{=INDEX(H$2:H$8891,MATCH($J2&$M2,$C$2:$C$8891&$E$2:$E$8891,0))}
N3{=INDEX(F$2:F$8891,MATCH($J3&$M3,$C$2:$C$8891&$E$2:$E$8891,0))}
O3{=INDEX(G$2:G$8891,MATCH($J3&$M3,$C$2:$C$8891&$E$2:$E$8891,0))}
P3{=INDEX(H$2:H$8891,MATCH($J3&$M3,$C$2:$C$8891&$E$2:$E$8891,0))}
N4{=INDEX(F$2:F$8891,MATCH($J4&$M4,$C$2:$C$8891&$E$2:$E$8891,0))}
O4{=INDEX(G$2:G$8891,MATCH($J4&$M4,$C$2:$C$8891&$E$2:$E$8891,0))}
P4{=INDEX(H$2:H$8891,MATCH($J4&$M4,$C$2:$C$8891&$E$2:$E$8891,0))}
N5{=INDEX(F$2:F$8891,MATCH($J5&$M5,$C$2:$C$8891&$E$2:$E$8891,0))}
O5{=INDEX(G$2:G$8891,MATCH($J5&$M5,$C$2:$C$8891&$E$2:$E$8891,0))}
P5{=INDEX(H$2:H$8891,MATCH($J5&$M5,$C$2:$C$8891&$E$2:$E$8891,0))}
N6{=INDEX(F$2:F$8891,MATCH($J6&$M6,$C$2:$C$8891&$E$2:$E$8891,0))}
O6{=INDEX(G$2:G$8891,MATCH($J6&$M6,$C$2:$C$8891&$E$2:$E$8891,0))}
P6{=INDEX(H$2:H$8891,MATCH($J6&$M6,$C$2:$C$8891&$E$2:$E$8891,0))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>
 
Last edited:
Upvote 0
Solution
IT WORKED! I really want to thank you for your patience with me, Scott. I'm not an advance user, but your formula has saved me a lot of time.

I really appreciate your help,
 
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,720
Members
449,050
Latest member
MiguekHeka

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top