Hello there, I am wondering if someone can help me. I have a list of text strings that I'd like to convert to a list of numbers, such that each letter equates to:
A = 10
B = 11
C = 12, etc.
At this point I'm using the MID function to pull specific letters out of a text string, and then the CODE function to convert them to a number.
So =CODE(MID(A1,1,1))-87 = 10, where A1 = "ADE"
So far so good, but here's my issue: I don't know how to tell Excel that the number of characters varies in the text string I want to convert.
Optimally, I'd like to convert ADE to 101415, then add on six zeroes to the end of that number to allow for the fact that other text strings may have up to a total of six letters.
I'm doing all this so I can rank a list of random text strings alphabetically. I want to take the number assigned to each text string, then I can use RANK to order those strings (I think!).
Anyway, thank you so much if anyone can help.
Take care,
--Bill
A = 10
B = 11
C = 12, etc.
At this point I'm using the MID function to pull specific letters out of a text string, and then the CODE function to convert them to a number.
So =CODE(MID(A1,1,1))-87 = 10, where A1 = "ADE"
So far so good, but here's my issue: I don't know how to tell Excel that the number of characters varies in the text string I want to convert.
Optimally, I'd like to convert ADE to 101415, then add on six zeroes to the end of that number to allow for the fact that other text strings may have up to a total of six letters.
I'm doing all this so I can rank a list of random text strings alphabetically. I want to take the number assigned to each text string, then I can use RANK to order those strings (I think!).
Anyway, thank you so much if anyone can help.
Take care,
--Bill