Is there a function to conver a character to an ascii number?
In the end I need to translate a character based column in data into its numerical equivalent. They always happen to be 1 or 2 digits. So effectively
"A" becomes 1
"Z" becomes 26
"AA" becomes 27
"AB" becomes 28
etc.
So say DIE_COLUMN = "CA" I want to return 79
I've come up with the following thoroughly ugly formula... but if there was a char to ascii function I could do a lot better. There HAS to be a cleaner way.
If( Length( :DIE_COLUMN ) == 2,
Contains( "ABCDEFGHIJKLMNOPQRSTUVWXYZ", Left( :DIE_COLUMN, 1 ) ) * 26,
0
) + Contains( "ABCDEFGHIJKLMNOPQRSTUVWXYZ", Right( :DIE_COLUMN, 1 ) )