Hi,
I needed a similar array formula in the past and was helped hugely by this forum. But I can't replicate for a different context.
I'm looking for an array formula that will allow me to search for a value (in a table in a different sheet), and then return all the neighbouring cell values to the matches. Essentially, I want to be able to enter a class name in one sheet and return all the students in the class (taken from a list of students and their classes in a different sheet). I'd like the array to return the results with no gaps.
Here is the first sheet with the student class/course data:
I've obviously anonymised it, but the real data goes down to row 4293
Here is the second sheet. I'd like to put the search value in cell B1 and return the results A6 downwards.
I've got VLOOKUPS setup for the second sheet that will return key info about the students, but that all works. I would just like to find a way of getting the student names to appear based on what class is in B2.
(Later, I might look at creating a list in B2 with data validation so staff can just select from the list, but I don't believe that will matter for this array as it will just create the search value in B2, right?
Thank you!
I needed a similar array formula in the past and was helped hugely by this forum. But I can't replicate for a different context.
I'm looking for an array formula that will allow me to search for a value (in a table in a different sheet), and then return all the neighbouring cell values to the matches. Essentially, I want to be able to enter a class name in one sheet and return all the students in the class (taken from a list of students and their classes in a different sheet). I'd like the array to return the results with no gaps.
Here is the first sheet with the student class/course data:
Class List Excel.xlsx | |||
---|---|---|---|
D | |||
14 | |||
Class List |
I've obviously anonymised it, but the real data goes down to row 4293
Here is the second sheet. I'd like to put the search value in cell B1 and return the results A6 downwards.
Class List Excel.xlsx | |||
---|---|---|---|
A | |||
6 | |||
Class Plan |
I've got VLOOKUPS setup for the second sheet that will return key info about the students, but that all works. I would just like to find a way of getting the student names to appear based on what class is in B2.
(Later, I might look at creating a list in B2 with data validation so staff can just select from the list, but I don't believe that will matter for this array as it will just create the search value in B2, right?
Thank you!