help with lookup for student schedules

kingabraham3

New Member
Joined
Oct 8, 2012
Messages
10
Hi all - first post. i'm trying to do a lookup based on two criterion. I've searched and seen multiple solutions, but have not been able to figure out how to modify to my situation.

In summary - I want to lookup a classroom number based on a two criteron: (1) student ID number, and (2) desired class period.

Any help would be great! Thanks!

The file can be downloaded here: http://sdrv.ms/PQgbZ7

Or, here is an attempt to copy in what the file looks like:
This below is the interface sheet. I enter the desired ID numbers in column A, and choose the period from the top. The name and grade populate from a simple vlookup formula. What I cannot figure out is how to get the correct subject and room number. The sheet with the data is sampled further below.
Select Period >1
IDsFirst NameLast NameGradeSubjectRoom P1
1635676JohnSmith9
6047865MichaelJordan11

<tbody>
</tbody>


Here is the raw data:
StudentIdLastNameFirstNameGradePeriodCourseNameRoomNumber
1635676SmithJohn91Algebra 13077
1635676SmithJohn92Intensive Math3077
1635676SmithJohn93World History3063
1635676SmithJohn94English 13080
1635676SmithJohn95Intensive Readi3080
1635676SmithJohn96Pers/Car/Sch De3053
1635676SmithJohn97Physical Sci2068
1635676SmithJohn98Health Science2104
6047865JordanMichael111U.S. History2073
6047865JordanMichael113Eng Hon 33059
6047865JordanMichael114Early Child 21127
6047865JordanMichael115DE: Spanish I2057
6047865JordanMichael116Crit Think St S1174
6047865JordanMichael117Intensive Readi3086
6047865JordanMichael118Algebra 23073

<tbody>
</tbody>
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi all - first post. i'm trying to do a lookup based on two criterion. I've searched and seen multiple solutions, but have not been able to figure out how to modify to my situation.

In summary - I want to lookup a classroom number based on a two criteron: (1) student ID number, and (2) desired class period.

Any help would be great! Thanks!

The file can be downloaded here: http://sdrv.ms/PQgbZ7

Or, here is an attempt to copy in what the file looks like:
This below is the interface sheet. I enter the desired ID numbers in column A, and choose the period from the top. The name and grade populate from a simple vlookup formula. What I cannot figure out is how to get the correct subject and room number. The sheet with the data is sampled further below.
Select Period >1
IDsFirst NameLast NameGradeSubjectRoom P1
1635676JohnSmith9
6047865MichaelJordan11

<tbody>
</tbody>


Here is the raw data:
StudentIdLastNameFirstNameGradePeriodCourseNameRoomNumber
1635676SmithJohn91Algebra 13077
1635676SmithJohn92Intensive Math3077
1635676SmithJohn93World History3063
1635676SmithJohn94English 13080
1635676SmithJohn95Intensive Readi3080
1635676SmithJohn96Pers/Car/Sch De3053
1635676SmithJohn97Physical Sci2068
1635676SmithJohn98Health Science2104
6047865JordanMichael111U.S. History2073
6047865JordanMichael113Eng Hon 33059
6047865JordanMichael114Early Child 21127
6047865JordanMichael115DE: Spanish I2057
6047865JordanMichael116Crit Think St S1174
6047865JordanMichael117Intensive Readi3086
6047865JordanMichael118Algebra 23073

<tbody>
</tbody>

Hello and welcome to Mr Excel:
Enter IDs

*ABCDEF
1ENTER ID NUMBERS BELOW*Select Period >1
2IDsFirst NameLast NameGradeSubjectRoom P1
31635676JohnSmith9Algebra 13077
46047865MichaelJordan11U.S. History2073
5******
6******

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:82px;"><col style="width:73px;"><col style="width:87px;"><col style="width:44px;"><col style="width:114px;"><col style="width:59px;"></colgroup><tbody>
</tbody>

Spreadsheet Formulas
CellFormula
E3{=INDEX(Schedules!F$2:F$16,MATCH($A3&$D3&$F$1,Schedules!$A$2:$A$167&Schedules!$D$2:$D$16&Schedules!$E$2:$E$16,0))}
F3{=INDEX(Schedules!G$2:G$16,MATCH($A3&$D3&$F$1,Schedules!$A$2:$A$167&Schedules!$D$2:$D$16&Schedules!$E$2:$E$16,0))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

=IFERROR(INDEX(Schedules!F$2:F$16,MATCH($A3&$D3&$F$1,Schedules!$A$2:$A$167&Schedules!$D$2:$D$16&Schedules!$E$2:$E$16,0)),"")

Confirm Control+Shift+Enter.
The additionnal function return empty cell if there is no match.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,767
Members
449,049
Latest member
greyangel23

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