Welcome to the forum.
I did it in row 42 down.
This array formula in A42 (confirm with Ctrl+Shift+Enter) and copy down to return unique values:
Formula:
=IFERROR(INDEX($A$3:$A$30,MATCH(1,(COUNTIF(A$41:A41,$A$3:$A$30)=0)*($A$3:$A$30<>""),0)),"")
And this formula in B42, copied across and down:
Formula:
=IFERROR(IF(INDEX($B$3:$M$30,AGGREGATE(15,6,(($A$3:$A$30=$A42)/($A$3:$A$30=$A42)*ROW($A$3:$A$30)-ROW($A$3)+1),COUNTIF($A42:A42,"<> ")),COLUMNS($A$1:A$1))=""," ",INDEX($B$3:$M$30,AGGREGATE(15,6,(($A$3:$A$30=$A42)/($A$3:$A$30=$A42)*ROW($A$3:$A$30)-ROW($A$3)+1),COUNTIF($A42:A42,"<> ")),COLUMNS($A$1:A$1)))," ")
Good luck!
Bookmarks