convert Excel column numbers into alphabetical characters

Re: convert Excel column numbers into alphabetical character

ok, here's another, thougt a split might work. (i imagine these 2 methods can be turned into functions as well)

colchar = split(activecell.address, "$")(1)
MsgBox colchar & Space(10), vbQuestion
 
Last edited:
Upvote 0
Re: convert Excel column numbers into alphabetical character

Code:
Function ConvertToLetter(r As Range) As String
ConvertToLetter = Split(r.Address, "$")(1)
End Function
 
Last edited:
Upvote 0
Here is a formula based solution that does the same thing:

=SUBSTITUTE(ADDRESS(1,COLUMN(A1),4),1,"")

Change the A1 to whatever you want or you can take out the A1 to use the column the formula is in.

=SUBSTITUTE(ADDRESS(1,COLUMN(),4),1,"")


Excel 2010
DEFGHIJ
2ABCDEFG
Sheet1
Cell Formulas
RangeFormula
D2=SUBSTITUTE(ADDRESS(1,COLUMN(A1),4),1,"")
E2=SUBSTITUTE(ADDRESS(1,COLUMN(B1),4),1,"")
F2=SUBSTITUTE(ADDRESS(1,COLUMN(C1),4),1,"")
G2=SUBSTITUTE(ADDRESS(1,COLUMN(D1),4),1,"")
H2=SUBSTITUTE(ADDRESS(1,COLUMN(E1),4),1,"")
I2=SUBSTITUTE(ADDRESS(1,COLUMN(F1),4),1,"")
J2=SUBSTITUTE(ADDRESS(1,COLUMN(G1),4),1,"")



Excel 2010
DEFGHIJ
2DEFGHIJ
Sheet1
Cell Formulas
RangeFormula
D2=SUBSTITUTE(ADDRESS(1,COLUMN(),4),1,"")
E2=SUBSTITUTE(ADDRESS(1,COLUMN(),4),1,"")
F2=SUBSTITUTE(ADDRESS(1,COLUMN(),4),1,"")
G2=SUBSTITUTE(ADDRESS(1,COLUMN(),4),1,"")
H2=SUBSTITUTE(ADDRESS(1,COLUMN(),4),1,"")
I2=SUBSTITUTE(ADDRESS(1,COLUMN(),4),1,"")
J2=SUBSTITUTE(ADDRESS(1,COLUMN(),4),1,"")
 
Last edited:
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top