Algorithm to convert Column Letter to Number

F

Fred Holmes

Is there a VBA function or algorithm readily availble that will
convert the column letter designation to the column number (such as is
used in Cells(n, m))??

For example, looing for an F() such that:

m = F("AB")

would return

m = 28


thanks in advance,

Fred Holmes
 
D

Dana DeLouis

If A1 held the string "AB", perhaps something like this...

=COLUMN(INDIRECT(A1&"1"))

returns 28
HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top