Help using complex lookup to populate table

alexllap

New Member
Joined
Jan 29, 2014
Messages
11
I'm not sure if this is even possible, but I have a table with approximately 4K rows, with each row listing a student and the grade that they received in a particular course.

ABC1D
1Student #NameCourseGrade
212345JackENGL 1013.3
312345JackMUSIC 2003.7
412346DanENGL 1014
512346DanFRENCH 1053.9
612347SarahENGL 1013.7
712347SarahMUSIC 2003.6
812348MichelleENGL 1053.8
912348MichelleENGL 1013.8

<tbody>
</tbody>

In another sheet, I have a row for each student, and columns with the courses that I need to make sure that they've taken.

ABCD
1Student #NameENGL 101ENGL 105
212345Jack
312346Dan
412347Sarah
512348Michelle

<tbody>
</tbody>

Is there a formula or macro that can populate this second sheet with the grade that they received in each course? So it would look like this:

ABCD
1Student #NameENGL 101ENGL 105
212345Jack3.3
312346Dan4
412347Sarah3.7
512348Michelle3.83.8

<tbody>
</tbody>

I've tried using VLOOKUP a few different ways, but I'm not very good with nested formulas, or formulas in general for that matter. Any help is greatly appreciated!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
In the first sheet you can add a helper column with a concatenation of Student # and Course (with a delimiter in between), e.g. in cell E2: =A2&"|"&C2
Copy down for all rows.


Assuming the first sheet is "Sheet1", in the second sheet; in cell C2 enter: =IFERROR(INDEX(Sheet1!$D:$D,MATCH($A2&"|"&C$1,Sheet1!$E:$E,0)),"")
Copy to the right and down.
 
Upvote 0
Copy the formulas in C2:D2 down. Assumes your main data are in Sheet1.
Excel Workbook
ABCD
1Student #NameENGL 101ENGL 105
212345Jack3.3 
312346Dan4
412347Sarah3.7
512348Michelle3.8
Sheet2
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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