Well, so I have a formula:
=IFERROR(INDEX(Sheet2!$X$3:$X$2000,SMALL(IF($B$2=Sheet2!$X$3:$X$2000,ROW($3:$2000)-2,IF($B$2=Sheet2!$Y$3:$Y$2000,ROW($3:$2000)-2,"")),ROW(L3)-2)),"")
I can't have the index arrays change, and not the row arrays as well, otherwise you end up with arrays of different sizes and it returns nothing. Even if there is a simpler way to write this formula, I have others that make use of the Index, Small, Row combo to resize and filter lists.
So if I can make Index($B$3:$B$2000,...,....) into Index($B$3:Index(B:B,$A$1),...,...)
What's the corresponding way to do that with Row($3:$2000) into Row($3:?????) so that is also points to A1 for its variable array sizing.
Bookmarks