here is the linkDear,
No I am not worried about the error but, i could not understood this formula, Can you'r explore me in detail the formula.
Thanking you,
If your worried about the error messages simply add and Iferror() function around it
=IFERROR(INDEX(B:B,SMALL(IF($A$2:$A$7=$D$2,ROW($A$2:$A$7)),ROW(A1))),"") Ctrl+Shift+Enter