Edit Check my next post.
Thanks for the upload.
I interpreted the mission wrong the last time.
This has two helper columns. These will return the row and column numbers from the source data. They must both be array entered (Ctrl + Shift + Enter). In M2 and filled down until you get blanks.
Formula:
=IFERROR(SMALL(IF($B$2:$K$194<>"",ROW($B$2:$K$194)-MIN(ROW($B$2:$K$194))+1,""),ROW()-ROW($2:$2)+1),"")
Array entered in N2 and filled down until you get blanks.
Formula:
=IFERROR(SMALL(IF(INDEX($B$2:$K$194,M2,)<>"",COLUMN($B:$K)-MIN(COLUMN($B:$K))+1),COUNTIF($M$2:$M2,$M2)),"")
Then the final output formulas in will return the Scene and Cast No. These are regular formulas and can be committed with Enter. In O2 filled down until you get blanks.
Formula:
=IFERROR(INDEX($A$2:$A$194,M2),"")
In P2 filled down until you get blanks.
Formula:
=IFERROR(INDEX($B$2:$K$194,M2,N2),"")
Bookmarks