Hi there
I have an alphanumeric string variable where the first character is always a letter while the remaining characters are always numerals (e.g. C10, G198, Z109).
I want to convert these values into purely numeric values, simply by converting the first character into a number so that A=1, B=2, C=3 etc.
So, for example,
C10 becomes 310
G198 becomes 7198
Z109 becomes 26109
etc..
Any tips on an efficient way to do this would be hugely appreciated!
Thanks
I have an alphanumeric string variable where the first character is always a letter while the remaining characters are always numerals (e.g. C10, G198, Z109).
I want to convert these values into purely numeric values, simply by converting the first character into a number so that A=1, B=2, C=3 etc.
So, for example,
C10 becomes 310
G198 becomes 7198
Z109 becomes 26109
etc..
Any tips on an efficient way to do this would be hugely appreciated!
Thanks
Comment