Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to match random letters to numbers

Status
Not open for further replies.

47redlands

Programmer
Mar 9, 2010
62
GB
I have a column lets call it A, in column A there is 9 random letters A to I e.g.
I
E
D
H
F
A
c
B
G

in column B I wish to have numbers that match the random letters from column A, e.g. A = 1, B = 2,
How can I do this?
 
Hi,

=CODE(A1)-64

...assuming that your data starts in A1.

Copy down.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Or a bit more robustly,to account for the accidental lower case "c" in the list:

=CODE(UCASE(A1))-64
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top