Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 42
Default Formula to return column letters

In Excel 2007, I need to use the letters of the column that I am in in the
formula bar. However, I don't need a particular cell, just the letters.
Because of this, the letters do not change as I use Autofill down the row. I
am using over 500 columns, so I really need for Autofill to do this for me.
Basically, in the formula bar, I have "A" in part of my formula (when I am in
column A), but when I autofill, every column still has "A" rather than
updating. Is there a formula that returns the column letters of the current
position?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Formula to return column letters

This works in xl2003....
=LEFT(ADDRESS(ROW(),COLUMN(),2),FIND("$",ADDRESS(R OW(),COLUMN(),2))-1)


--
John C


"DoubleZ" wrote:

In Excel 2007, I need to use the letters of the column that I am in in the
formula bar. However, I don't need a particular cell, just the letters.
Because of this, the letters do not change as I use Autofill down the row. I
am using over 500 columns, so I really need for Autofill to do this for me.
Basically, in the formula bar, I have "A" in part of my formula (when I am in
column A), but when I autofill, every column still has "A" rather than
updating. Is there a formula that returns the column letters of the current
position?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Formula to return column letters

A little shorter (and 5 function calls less)...

=SUBSTITUTE(ADDRESS(1,COLUMN(),2),"$1","")

Rick


"John C" <johnc@stateofdenial wrote in message
...
This works in xl2003....
=LEFT(ADDRESS(ROW(),COLUMN(),2),FIND("$",ADDRESS(R OW(),COLUMN(),2))-1)


--
John C


"DoubleZ" wrote:

In Excel 2007, I need to use the letters of the column that I am in in
the
formula bar. However, I don't need a particular cell, just the letters.
Because of this, the letters do not change as I use Autofill down the
row. I
am using over 500 columns, so I really need for Autofill to do this for
me.
Basically, in the formula bar, I have "A" in part of my formula (when I
am in
column A), but when I autofill, every column still has "A" rather than
updating. Is there a formula that returns the column letters of the
current
position?


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Formula to return column letters

Columns are vertical, rows are horizontal.

You cannot copy a formula down one column and have the column referfence
change.

This formula entered in A2 and copied down 500 rows will give you the
contents of row 1

=INDEX($1:$1,ROWS($1:1))


Gord Dibben MS Excel MVP




On Tue, 22 Jul 2008 11:21:09 -0700, DoubleZ
wrote:

In Excel 2007, I need to use the letters of the column that I am in in the
formula bar. However, I don't need a particular cell, just the letters.
Because of this, the letters do not change as I use Autofill down the row. I
am using over 500 columns, so I really need for Autofill to do this for me.
Basically, in the formula bar, I have "A" in part of my formula (when I am in
column A), but when I autofill, every column still has "A" rather than
updating. Is there a formula that returns the column letters of the current
position?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 42
Default Formula to return column letters

Thanks Rick and John C.

"Rick Rothstein (MVP - VB)" wrote:

A little shorter (and 5 function calls less)...

=SUBSTITUTE(ADDRESS(1,COLUMN(),2),"$1","")

Rick


"John C" <johnc@stateofdenial wrote in message
...
This works in xl2003....
=LEFT(ADDRESS(ROW(),COLUMN(),2),FIND("$",ADDRESS(R OW(),COLUMN(),2))-1)


--
John C


"DoubleZ" wrote:

In Excel 2007, I need to use the letters of the column that I am in in
the
formula bar. However, I don't need a particular cell, just the letters.
Because of this, the letters do not change as I use Autofill down the
row. I
am using over 500 columns, so I really need for Autofill to do this for
me.
Basically, in the formula bar, I have "A" in part of my formula (when I
am in
column A), but when I autofill, every column still has "A" rather than
updating. Is there a formula that returns the column letters of the
current
position?



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
Formula Bar blocks column header letters so I can't paste Clueless in Seattle New Users to Excel 3 November 21st 07 09:50 PM
Formula bar obscures top of column letters Ted M H Excel Discussion (Misc queries) 0 August 18th 07 10:12 PM
formula for column letters BorisS Excel Discussion (Misc queries) 3 December 7th 06 08:51 AM
How do change a column of data in capitol letters to small letters Barb P. Excel Discussion (Misc queries) 6 November 15th 06 06:17 PM
Return column letters to spreadsheet. Isidor Charts and Charting in Excel 4 June 28th 05 03:27 PM


All times are GMT +1. The time now is 03:04 PM.

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"