=IFERROR(IF($L$28="",OFFSET('Master Data'!B2, ($F$2-1),0),INDEX(tbl_data,SMALL(IF(tbl_data=$L$28,ROW(tbl_data)-1),$F2),MATCH(G$1,tbl_data[#Headers],0))),"")
L28 is location selection
L29 is product selection
F1-O1 are the header cells for the scrollable area.
F Column contains the "record #"...