?
Solved

Auto input column letter headings for columns > "Z" in Excel

Posted on 2011-03-13
8
Medium Priority
?
469 Views
Last Modified: 2012-05-11
Hello,

In Excel (2007), I have been using the following formula to generate letters (rather than numbers) to represent particular columns:

    =UPPER(CHAR(COLUMN(A1)+96))

However, that method is only useful for columns A-Z.  Beginning with column AA, the formula returns non-alphabetic symbols.  

Is there a different formula which generates column letters but does so for all columns rather than just the first 26?

Thanks
0
Comment
Question by:Steve_Brady
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 2000 total points
ID: 35123540
The formula below returns the column letter or letters given a column number.

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

Kevin
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 35123558
In case the row the formula is in is not row 1:

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

Kevin
0
 
LVL 13

Expert Comment

by:Alan
ID: 35123559

Try this:

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

for the column it is entered in,

OR

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

for the column of E5.


HTH,

Alan.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 13

Expert Comment

by:Alan
ID: 35123561
Sorry, that last narrative should have read AC5.

Just change the reference in the formula as required.


Alan.
0
 
LVL 13

Expert Comment

by:Alan
ID: 35123568
However, can I ask *why* you want this?

I suspect there is a much easier way to achieve your actual objective, that going down this route.

Alan.
0
 

Author Comment

by:Steve_Brady
ID: 35123814
Thank you for the helpful responses.

Alan3285:
>>I suspect there is a much easier way to achieve your actual objective, that going down this route.


Alan, I appreciate that follow-up question and I would like to see if there is an easier way to approach it. However, since the question in this thread has already been answered, I will begin a new thread in a few minutes with the follow-up question there.

Thanks again.
0
 
LVL 13

Expert Comment

by:Alan
ID: 35123897
Okay - no problem.

Alan.
0
 

Author Comment

by:Steve_Brady
ID: 36358811
Reference file added with a couple of methods.
EE-26883770-Auto-input-column-le.xlsx
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question