![Quote](https://www.excelforum.com/images/misc/quote_icon.png)
Originally Posted by
JohnTopley
In A5
=IFERROR(INDEX(Database!$A$2:$A$100,SMALL(IF(Database!$B$2:$B$100=$B$1,ROW(Database!$A$2:$A$100)-ROW($A$2)+1,""),ROWS($A$2:$A2))),"")
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
Then copy down
in B5
=IFERROR(INDEX(Database!C$2:C$100,SMALL(IF(Database!$B$2:$B$100=$B$1,ROW(Database!$A$2:$A$100)-ROW($A$2)+1,""),ROWS($A$2:$A2))),"")
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
Then copy across and down
Bookmarks