I am trying to take the information on the report provided and search through the report and find and display only the students (and their rows of information) that match a given homeroom (Hmrm) each students information may have anywhere from 1 to 7 rows of info that I would want to display and each homeroom may have anywhere from 1 to 30 students. If you open the sheet in AL26 you can see my attempted function. Any help/guidance would be much appreciated.
https://docs.google.com/spreadsheets/d/1UAl1sD6g1Pum21nIov-4mzkkerSFx0dFG2AVJ8aogpA/edit








