as an alternative, maybe this formula approach?
Create a helper on your 2nd table (I used AA), you can hide this if you want. then in AA15 (in your sample, I used this, copied down...
=IF(AND(I15="no",COUNTIFS($C$15:C15,C15,$L$15:L15,L15,$E$15:E15,E15)=1),AA14+1,AA14)
THen to extract the data, in your 1st (top) table,use this, copied down and across...
=IFERROR(INDEX($C$14:$Z$49,MATCH(ROW($A1),$AA$14:$AA$49,0),MATCH(W$2,$C$14:$Z$14,0)),"")
Bookmarks