Is there simple function that anyone knows of (or has written) that will convert a letter to its alpha-numeric equivalent?
For instance, A = 1, B = 2, AA = 27, etc (a = 1, b = 2, aa = 27)
Is there simple function that anyone knows of (or has written) that will convert a letter to its alpha-numeric equivalent?
For instance, A = 1, B = 2, AA = 27, etc (a = 1, b = 2, aa = 27)
Last edited by gtmeloney; 07-23-2009 at 10:54 AM.
Ran into this yesterday, no idea if it works:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=218
Thanks J.
I learned the following trick from the link you sent:
I will wrap that in a function and be on my way.![]()
Please Login or Register to view this content.
Thanks
Whoops, ran into this too: http://exceltip.com/st/Convert_betwe...Excel/478.html
![]()
Please Login or Register to view this content.
Last edited by jrussell; 07-23-2009 at 10:56 AM.
Thanks again J.
Incidently why are you wanting / needing to do this? If it is for referencing columns it can be done in it's numeric format...
If you find the response helpful please click the scales in the blue bar above and rate it
If you don't like the response, don't bother with the scales, they are not for you
I store several column letters to display to the user, and now I need to take that list of Column letters and set a combobox according to the corresponding column number.
So if the column is A, I need to select the 0th index in the combobox, if the column is D, I need to select the 3rd index. Hence my need for the number conversion
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks