How can I change column numbers back to column letters?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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,COLUMN(CB7),4))-1)

Hope this helps

Richard Buttrey
__
 
=MID(ADDRESS(1,COLUMN()),2,FIND("$",ADDRESS(1,COLUMN()),2)-2)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

Space Elf said:
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?
 
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
 

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

Back
Top