Ciao nelsonblu.
Se ho ben capito ti basta scrivere nella cella d2 questa formula

=SE(A2=$C$1;$B$1;"")

e poi trascinarla in basso.