A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
See the printscreen above and try this formula:
=FILTER(INDEX(B2:G21,,MATCH(I2,B1:G1,0)),INDEX(B2:G21,,MATCH(I2,B1:G1,0))<>"")
If you do not use a Microsoft 365 then use the following formula.
=IFERROR(INDEX(INDEX($B$2:$G$21,,MATCH($I$2,$B$1:$G$1,0)),AGGREGATE(15,6,(ROW($B$2:$G$21)-1)/(INDEX($B$2:$G$21,,MATCH($I$2,$B$1:$G$1,0))<>""),ROW(K1))),"")
Hope this helps.