Excel formulas or macros

I have 2 columns of text that I want to covert or show in a new column as a number. ss A would = 17, SI A = 18 and SF = 0 how would I do that?

ss A
ss A
si C
sf I
ss A
si C
ss C

AttachmentSize
Book1.xlsx9.4 KB

Hi, This can be done by a

Hi,

This can be done by a formula. If the text is in column A and starts at the first row, you can use something like this:

=if(A1="ss A",17,if(A1="si C",18,if(A1="sf I",0,"")))