A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi,
In cell K2, enter this formula
=TOCOL(FILTER($B$1:$H$1,XLOOKUP(J2,$A$2:$A$5,$B$2:$H$5)<>""))
In cell L2, enter this formula
=LET(rw,XLOOKUP(J2,$A$2:$A$5,$B$2:$H$5),TOCOL(FILTER(rw,rw<>"")))
Hope this helps.