I have a sheet that shows the results of data looked up in a table using the formula
=IFERROR(INDEX(Sheet5!$A$2:$A$37,AGGREGATE(15,6,((ROW(Sheet5!$B$2:$B$37)-ROW(Sheet5!$B$2)+1))/((Sheet5!$B$2:$B$37=$B$3)),ROWS($A$1:A1))),"")
Sheet5 contains a table that has A)Room, B)Person, C)Date...