I want to use 'ms'=4 , 's'=5, 'p'=2, 'j'=10
so that when I type these letters into a cell I can then run an average based on the letters that will come back with a numeric figure.

How do I do this?