Hi Chanthan,
Insert the following Array Formula in cell C4.
=IFERROR(INDEX($A$1:B19,IFERROR(SMALL(IF($A$14:$A$19=$D$1,ROW($A$14:$A$19),"-"),ROW()-ROW($C$3)),"-"),2),"")
Array Formulas are entered using Control + Shift + Enter instead of Enter.
Vijaykumar Shetye,
Panaji, Goa, India