Hi Kumar ,
The INDEX function is used to retrieve the actual value from a particular position ; the MATCH function returns the position where a match is found ; this is why we usually mention an INDEX + MATCH combination.
However , in your example , since there are duplicates , the MATCH function will not do , since it will only retrieve the position of the first item which matches the value being looked up.
If we go back to the formula Deb posted for your earlier question :
=INDEX(B1:B5,SMALL(IF(A1:A5=C1,ROW(A1:A5)-ROW(A1)+1),1))
the portion which is highlighted , is responsible for giving the position.
In your case , since you want all the possible values , you can use the following formula :
=SMALL(IF($A$1:$A$5=$C$1,ROW($A$1:$A$5)-ROW($A$1)+1),ROW(A1))
Copy this down.
Narayan