if, then statements and alpha variables

J

jfav

I want to have Excel return 1 if the value is e and -1 if the value is
w. I can do this with the logical IF statement if the variables are
numbers but it doesn't work if the variables are letters. any
suggestions?
 
Top