Dear Ahhhmed,
In the sample sheet you have given, i think the following formula would work:
Assuming: B2:B8 has the names, A2:A8 has the numbers you want, C2,C3 etc have the dropdowns.
in cell D2
=LARGE(($B$2:$B$8=$C2)*$A$2:$A$8,COLUMN()-3)
this is an array formula and require ctrl +...