The simplest solution maybe to use a lookup table with the conversion factors. Here is an example with weights:
The formula in column C is:
=A2*VLOOKUP(B2,G$1:H$13,2)