Help with INDEX MATCH maybe???

Hawkmek

New Member
Joined
Apr 29, 2004
Messages
45
Been inactive for years and just logged back in using my 2004 Password!
Looking for some assistance on this sheet my wife sent this morning. Should be easy for you guys on this board. Pretty sure it can be accomplished with those hairy INDEX/MATCH functions but they are Greek to me!

We need to populate the Student's Books columns C,D,E from the Book List. I use VLOOKUP all the time, but there are duplicate Student IDs on this list and it isn't working very well. I get Book1 only in all three Book columns. Students will never have more than 3 books if that matters.


Column A---------B------------C----------D-----------E
STUDENT LIST
Student ID------ Course-----Book1-----Book2-------Book3
11111------------Math
22222------------English
33333------------Math

Column M----------N
BOOK LIST
Student ID-------Book
11111------- Math 1
11111------- Math 2
11111------- Math 3
22222------- Reading
22222------- Writing
33333------- Math 3

Thanks for the help!

Hawkmek
 
Last edited:

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi,

This is an array formula so enter it as usual, and then confirm with ctrl - shift - enter. drag down and across.


Book1
ABCDE
1Student IDCourseBook 1Book 2Book 3
211111MathMath 1Math 2Math 3
322222EnglishReadingWriting
433333MathMath 3
5
6
7
8
9Student IDBook
1011111Math 1
1111111Math 2
1211111Math 3
1322222Reading
1422222Writing
1533333Math 3
Sheet1
 
Upvote 0
Apologies,

Forgot the formulas.


Book1
ABCDE
1Student IDCourseBook 1Book 2Book 3
211111MathMath 1Math 2Math 3
322222EnglishReadingWriting 
433333MathMath 3  
5 
6 
7
8
9Student IDBook
1011111Math 1
1111111Math 2
1211111Math 3
1322222Reading
1422222Writing
1533333Math 3
Sheet1
Cell Formulas
RangeFormula
C2{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A2,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:A2))),"")}
C3{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A3,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:A3))),"")}
C4{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A4,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:A4))),"")}
C5{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A$2,ROW($A$10:$A$15)-ROW($A$10)+1),ROWS($A$2:A5))),"")}
C6{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A$2,ROW($A$10:$A$15)-ROW($A$10)+1),ROWS($A$2:A6))),"")}
D2{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A2,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:B2))),"")}
D3{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A3,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:B3))),"")}
D4{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A4,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:B4))),"")}
E2{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A2,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:C2))),"")}
E3{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A3,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:C3))),"")}
E4{=IFERROR(INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A4,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:C4))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thank you for the quick reply and please excuse my ignorance.

What does this mean? Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces

I cut and pasted all but the brackets and got nothing. The formulas are int he right cells, but they are blank.

Thx again!
 
Upvote 0
Paste this formula into C2,
=IFERROR(
INDEX($B$10:$B$15,SMALL(IF($A$10:$A$15=$A2,ROW($A$10:$A$15)-ROW($A$10)+1),COLUMNS($A$2:A2))),""
)

Press Ctrl + Shift + Enter at the same time to confirm the formula. This is an array formula that wont work if you just hit enter after typing it in.
Then you can drag down and across as far as you need.
 
Upvote 0
OK, I got it! I had to be in 'EDIT MODE' in Cell C2 to do the C+S+E thing. Pretty cool stuff.
I'll work with getting this going in the real deal sheet now.

Thank you so much. Good see Mr. Excel still going strong after all these years and the service never dropped off a bit!

I'll be back later with another issue. Have a good weekend!
 
Upvote 0
YourWelcome
OK, I got it! I had to be in 'EDIT MODE' in Cell C2 to do the C+S+E thing. Pretty cool stuff.
I'll work with getting this going in the real deal sheet now.

Thank you so much. Good see Mr. Excel still going strong after all these years and the service never dropped off a bit!

I'll be back later with another issue. Have a good weekend!
 
Upvote 0

Forum statistics

Threads
1,223,898
Messages
6,175,274
Members
452,628
Latest member
dd2

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