How to get value from excel1

consider their are two same id 102,102 then how i get that values in second column

ex.
Id name
102 yogita
102 Akshay
103 neha
104 kapil

Output***
want output for 102
yogita
Akshay