Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Column name instead of number

Hello,

Can I write a formula which will give me the alphabets of a column i.e.
currently if I write teh formula "=column(c5)". then I get 3 which represents
"c".
Is there a way to get the resullt as "c" (preferably without writing a macro)?

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,494
Default Column name instead of number

here's a function somebody wrote. just paste in into a code module. then in
a cell, enter the formula with the column number like so:

=getcollet(256)

returns IV


Function GetCoLLet(ColNumber As Integer) As String
GetCoLLet = Left(Cells(1, ColNumber).Address(False, False), _
1 - (ColNumber 26))
End Function



--

Gary Keramidas
Excel 2003


"Tigerxxx" wrote in message
...
Hello,

Can I write a formula which will give me the alphabets of a column i.e.
currently if I write teh formula "=column(c5)". then I get 3 which
represents
"c".
Is there a way to get the resullt as "c" (preferably without writing a
macro)?

Thank you.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Column name instead of number

=CHAR(64+COLUMN(C5))


"Tigerxxx" wrote:

Hello,

Can I write a formula which will give me the alphabets of a column i.e.
currently if I write teh formula "=column(c5)". then I get 3 which represents
"c".
Is there a way to get the resullt as "c" (preferably without writing a macro)?

Thank you.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,510
Default Column name instead of number

Combining the ADDRESS, LEFT and FIND function can return the alpha column Id
from the row and column numbers.

Check out the parameters in Help. Note that I used the
Absolute row; relative column parameter in ADDRESS so there is only the one
$ sign preceding the row number for the FIND.

=LEFT(ADDRESS(4,32,2),FIND("$",ADDRESS(4,32,2),1)-1)

--
Regards,

OssieMac


"Gary Keramidas" wrote:

here's a function somebody wrote. just paste in into a code module. then in
a cell, enter the formula with the column number like so:

=getcollet(256)

returns IV


Function GetCoLLet(ColNumber As Integer) As String
GetCoLLet = Left(Cells(1, ColNumber).Address(False, False), _
1 - (ColNumber 26))
End Function



--

Gary Keramidas
Excel 2003


"Tigerxxx" wrote in message
...
Hello,

Can I write a formula which will give me the alphabets of a column i.e.
currently if I write teh formula "=column(c5)". then I get 3 which
represents
"c".
Is there a way to get the resullt as "c" (preferably without writing a
macro)?

Thank you.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Column name instead of number

Another way:
=substitute(address(1,column(c5),4),1,"")



Tigerxxx wrote:

Hello,

Can I write a formula which will give me the alphabets of a column i.e.
currently if I write teh formula "=column(c5)". then I get 3 which represents
"c".
Is there a way to get the resullt as "c" (preferably without writing a macro)?

Thank you.


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Column name instead of number

Thank you all very much!

"Dave Peterson" wrote:

Another way:
=substitute(address(1,column(c5),4),1,"")



Tigerxxx wrote:

Hello,

Can I write a formula which will give me the alphabets of a column i.e.
currently if I write teh formula "=column(c5)". then I get 3 which represents
"c".
Is there a way to get the resullt as "c" (preferably without writing a macro)?

Thank you.


--

Dave Peterson

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
inverse of the column function? i.e. input a number, output thecorresponding column text label Brotherharry Excel Worksheet Functions 19 February 14th 09 12:37 AM
How do I turn excel columns from column number to column letter? column Setting up and Configuration of Excel 1 April 29th 08 10:15 AM
Count number of cells and total in one column, based on another column suffix Pierre Excel Worksheet Functions 5 October 31st 07 12:28 AM
Display missing Part Number if Column A does not match column B Erik T Excel Worksheet Functions 2 April 17th 06 11:23 PM
Auto number w/ different letter-number combos in same column Colleen B Excel Worksheet Functions 2 February 23rd 05 02:41 PM


All times are GMT +1. The time now is 06:44 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"