Column Number to Letter?

dave_d

New Member
Joined
Sep 16, 2002
Messages
6
Is it possible to pull out a column letter rather than the column number? If not is there an easy way to convert the number to the proper letter?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
The 2nd argument to the ADDRESS worksheet function is a column number...

=LEFT(ADDRESS(1,1,2)) produces "A"
=LEFT(ADDRESS(1,2,2)) produces "B"
=LEFT(ADDRESS(1,13,2)) produces "M"
 

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
Also,
=LEFT(ADDRESS(1,A1,2),1+(A1>26))
will work, where A1 holds the column number of interest.
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
Ah!! Of course... you can tell that I never create worksheet models with more than 26 columns. :)
 

Jay Petrulis

MrExcel MVP
Joined
Mar 17, 2002
Messages
2,040
Hi,

Here's another option

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

IML's reply is shorter, so that would likely be preferable.

There are some UDF's that have been posted, but they will be slower than a native Excel solution.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,683
Messages
5,838,792
Members
430,569
Latest member
sbardelli

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
Top