Excel 2010[TABLE="class: grid, width: 300"]
<tbody>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH][/TH]
[TH]A
[/TH]
[TH]B
[/TH]
[TH]C
[/TH]
[/TR]
[TR]
[TD="align: center"]1
[/TD]
[TD]Name
[/TD]
[TD]Year
[/TD]
[TD]Grade
[/TD]
[/TR]
[TR]
[TD="align: center"]2
[/TD]
[TD]Fred bloggs
[/TD]
[TD="align: right"]2000
[/TD]
[TD]A1
[/TD]
[/TR]
[TR]
[TD="align: center"]3
[/TD]
[TD]Mary Smith
[/TD]
[TD="align: right"]2016
[/TD]
[TD]A2
[/TD]
[/TR]
[TR]
[TD="align: center"]4
[/TD]
[TD]john Jones
[/TD]
[TD="align: right"]2017
[/TD]
[TD]A1
[/TD]
[/TR]
[TR]
[TD="align: center"]5
[/TD]
[TD]John Bloggs
[/TD]
[TD="align: right"]2016
[/TD]
[TD]A3
[/TD]
[/TR]
[TR]
[TD="align: center"]6
[/TD]
[TD]Ros bloggs
[/TD]
[TD="align: right"]2000
[/TD]
[TD]A3
[/TD]
[/TR]
</tbody>[/TABLE]
Sheet1
Excel 2010[TABLE="class: grid, width: 300"]
<colgroup><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]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Name[/TD]
[TD]Year[/TD]
[TD]Grade[/TD]
[TD="align: right"][/TD]
[TD]year[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]Mary Smith[/TD]
[TD="align: right"]2016[/TD]
[TD]A2[/TD]
[TD="align: right"][/TD]
[TD="align: right"]2016[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]John Bloggs[/TD]
[TD="align: right"]2016[/TD]
[TD]A3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
Sheet2
[TABLE="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: 10"]Cell[/TD]
[TD="align: left"]Formula[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]A2[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:A2)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!A$2:A$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:A2))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B2[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:B2)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!B$2:B$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:B2))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C2[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:C2)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!C$2:C$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:C2))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]A3[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:A3)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!A$2:A$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:A3))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B3[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:B3)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!B$2:B$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:B3))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C3[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:C3)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!C$2:C$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:C3))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]A4[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:A4)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!A$2:A$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:A4))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B4[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:B4)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!B$2:B$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:B4))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C4[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:C4)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!C$2:C$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:C4))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]A5[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:A5)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!A$2:A$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:A5))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]B5[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:B5)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!B$2:B$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:B5))))}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]C5[/TH]
[TD="align: left"]{=IF(
ROWS($A$2:C5)>COUNTIF(Sheet1!$B$2:$B$6,$E$2),"",INDEX(Sheet1!C$2:C$6,SMALL(IF($E$2=Sheet1!$B$2:$B$6,ROW(Sheet1!$B$2:$B$6)-ROW(Sheet1!$B$2)+1),ROWS($A$2:C5))))}[/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]