Index Match and return mutiple results from a table

bosslb

New Member
Joined
Sep 23, 2021
Messages
1
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I am currently using this formula to return data from one table that has a "Student ID" column.

Sometimes the Student ID is repeated in the table and so I want to return all the rows that has the same Student ID in that table.

With this formula, I am getting just the 1st row!



=IF(INDEX(All_Appended[#Data], MATCH($O$3,All_Appended[Student ID],0), MATCH(D6,All_Appended[#Headers],0))=0, "-",INDEX(All_Appended[#Data],MATCH($O$3,All_Appended[Student ID],0), MATCH(D6,All_Appended[#Headers],0)))





Anyone can help please to make this work?

Thank you.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Welcome to MrExcel Message Board.
Please upload example data with Description below of my post.
Or try this:
Book1
ABCDEFG
1Student IDDataStudent IDData
212484Data112484Data1
314567Data2Data5
415786Data3Data9
513254Data4 
612484Data5
714567Data6
815786Data7
913254Data8
1012484Data9
1114567Data10
1215786Data11
1313254Data12
14
Sheet1
Cell Formulas
RangeFormula
F2:F5F2=IFERROR(INDEX(All_Appended[Data],AGGREGATE(15,6,(ROW(All_Appended[Data])-ROW($B$2)+1)/(All_Appended[Student ID]=$E$2),ROWS($E$1:E1))),"")
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,207
Members
452,618
Latest member
Tam84

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