+ Reply to Thread
Results 1 to 4 of 4

How can I change column numbers back to column letters?

  1. #1
    Space Elf
    Guest

    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. #2
    Richard Buttrey
    Guest

    Re: How can I change column numbers back to column letters?

    On Thu, 2 Mar 2006 08:40:06 -0800, Space Elf
    <SpaceElf@discussions.microsoft.com> 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,COLUMN(CB7),4))-1)

    Hope this helps

    Richard Buttrey
    __

  3. #3
    Bob Phillips
    Guest

    Re: How can I change column numbers back to column letters?

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

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Space Elf" <SpaceElf@discussions.microsoft.com> wrote in message
    news:3D8689F1-7F60-45C6-BF89-01DA363E042F@microsoft.com...
    > 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. #4
    ΓΙΑΝΝΗΣ Χ.Β.
    Guest

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1