Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Space Elf
 
Posts: n/a
Default How can I change column numbers back to column letters?

I'm using Office 2000. The columns are normally letters. When using the
command COLUMN(CB7), naturally I get the answer "80". How can I convert it
back to "CB"? Someting like COMMAND(80) will equal "CB". I can't use
CHAR(64+80) because that would not result in multiple letter column. Any help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Richard Buttrey
 
Posts: n/a
Default How can I change column numbers back to column letters?

On Thu, 2 Mar 2006 08:40:06 -0800, Space Elf
wrote:

I'm using Office 2000. The columns are normally letters. When using the
command COLUMN(CB7), naturally I get the answer "80". How can I convert it
back to "CB"? Someting like COMMAND(80) will equal "CB". I can't use
CHAR(64+80) because that would not result in multiple letter column. Any help?


The following entered in any cell will return the column reference of
that cells column.

=LEFT(ADDRESS(1,COLUMN(),4),LEN(ADDRESS(1,COLUMN() ,4))-1)

A slight modification to include the specific column reference, e.g
CB7 will produce "CB" wherever the formula is placed.

=LEFT(ADDRESS(1,COLUMN(CB7),4),LEN(ADDRESS(1,COLUM N(CB7),4))-1)

Hope this helps

Richard Buttrey
__
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default How can I change column numbers back to column letters?

=MID(ADDRESS(1,COLUMN()),2,FIND("$",ADDRESS(1,COLU MN()),2)-2)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Space Elf" wrote in message
...
I'm using Office 2000. The columns are normally letters. When using the
command COLUMN(CB7), naturally I get the answer "80". How can I convert it
back to "CB"? Someting like COMMAND(80) will equal "CB". I can't use
CHAR(64+80) because that would not result in multiple letter column. Any

help?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ΓΙΑΝΝΗΣ Χ.Β.
 
Posts: n/a
Default How can I change column numbers back to column letters?

Another simple solution:

=LEFT(ADDRESS(1,COLUMN(),4),IF(COLUMN()<27,1,2))

=LEFT(ADDRESS(1,COLUMN(CB7),4),IF(COLUMN(CB7)<27,1 ,2))

Ioannis, Athens

"Space Elf" wrote:

I'm using Office 2000. The columns are normally letters. When using the
command COLUMN(CB7), naturally I get the answer "80". How can I convert it
back to "CB"? Someting like COMMAND(80) will equal "CB". I can't use
CHAR(64+80) because that would not result in multiple letter column. Any help?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My Excel column headings were letters and it switched to numbers? Sondra Excel Discussion (Misc queries) 1 December 2nd 05 02:45 PM
How do I change column labels from numbers to letters? Gregg Hillyer Excel Discussion (Misc queries) 2 November 29th 05 09:10 PM
creating a bar graph Johnfli Excel Discussion (Misc queries) 0 October 26th 05 08:16 PM
how do i change column labels back to letters? currently columns. slthompson Excel Discussion (Misc queries) 3 January 6th 05 06:25 AM
How do I change column labels from numbers to letters in Excel? AllisonCincy Excel Discussion (Misc queries) 2 December 9th 04 12:55 AM


All times are GMT +1. The time now is 11:04 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"