Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default column heading formula

i'm in column A, i type this formula in a cell , cell("col") then it gives a
result of 1. my problem is what formula should i type to get a result of A
(column heading)? appreciate any help.

EricBB
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default column heading formula

here we go:

=CHAR(COLUMN()+64)

greetings

"EricBB" schreef in bericht
...
i'm in column A, i type this formula in a cell , cell("col") then it gives
a
result of 1. my problem is what formula should i type to get a result of
A
(column heading)? appreciate any help.

EricBB



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 367
Default column heading formula

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

hth

Carlo

On Nov 15, 4:26 pm, EricBB wrote:
i'm in column A, i type this formula in a cell , cell("col") then it gives a
result of 1. my problem is what formula should i type to get a result of A
(column heading)? appreciate any help.

EricBB


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 367
Default column heading formula

Unfortunately Frederiks Formula only works for the first 26 columns!
If you don't need more than that, it works perfect. Otherwise take my
Formula.

Cheers Carlo

On Nov 15, 4:37 pm, "Frederik" wrote:
here we go:

=CHAR(COLUMN()+64)

greetings

"EricBB" schreef in ...



i'm in column A, i type this formula in a cell , cell("col") then it gives
a
result of 1. my problem is what formula should i type to get a result of
A
(column heading)? appreciate any help.


EricBB- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default column heading formula

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

Regards,
Stefi


€žEricBB€ť ezt Ă*rta:

i'm in column A, i type this formula in a cell , cell("col") then it gives a
result of 1. my problem is what formula should i type to get a result of A
(column heading)? appreciate any help.

EricBB



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default column heading formula

You are absolutely right! Didn't think enough:-)

"carlo" schreef in bericht
...
Unfortunately Frederiks Formula only works for the first 26 columns!
If you don't need more than that, it works perfect. Otherwise take my
Formula.

Cheers Carlo

On Nov 15, 4:37 pm, "Frederik" wrote:
here we go:

=CHAR(COLUMN()+64)

greetings

"EricBB" schreef in
...



i'm in column A, i type this formula in a cell , cell("col") then it
gives
a
result of 1. my problem is what formula should i type to get a result
of
A
(column heading)? appreciate any help.


EricBB- Hide quoted text -


- Show quoted text -




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 367
Default column heading formula

@Stefi...Thanks for the shorter version Stefi, didn't came to my mind.

@EricBB...go with Stefis version.

@frederik....i know...i always had that problem with columns :D

Cheers Carlo


On Nov 15, 4:45 pm, Stefi wrote:
=LEFT(ADDRESS(1,COLUMN(),4,1),IF(COLUMN()<27,1,2))

Regards,
Stefi

„EricBB" ezt írta:



i'm in column A, i type this formula in a cell , cell("col") then it gives a
result of 1. my problem is what formula should i type to get a result of A
(column heading)? appreciate any help.


EricBB- Hide quoted text -


- Show quoted text -


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default column heading formula

Hi Eric

Try
=SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")

this will deal with all column headings up to XFD in Excel 2007

--
Regards
Roger Govier



"EricBB" wrote in message
...
i'm in column A, i type this formula in a cell , cell("col") then it gives
a
result of 1. my problem is what formula should i type to get a result of
A
(column heading)? appreciate any help.

EricBB



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default column heading formula

all your answer got the same result, which really what im looking for. thank
you guys.
EricBB

"Roger Govier" wrote:

Hi Eric

Try
=SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")

this will deal with all column headings up to XFD in Excel 2007

--
Regards
Roger Govier



"EricBB" wrote in message
...
i'm in column A, i type this formula in a cell , cell("col") then it gives
a
result of 1. my problem is what formula should i type to get a result of
A
(column heading)? appreciate any help.

EricBB




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
I have an IF formula to return column heading for FALSE NN Excel Discussion (Misc queries) 7 October 5th 06 10:45 PM
Formula to Return Column Heading den4673 Excel Discussion (Misc queries) 4 February 13th 06 09:55 PM
In a table produce an value by column heading and row heading naflan Excel Worksheet Functions 1 December 27th 05 05:18 PM
Formula to reference column heading JimDandy Excel Worksheet Functions 2 November 19th 04 05:48 AM
Formula to reference column heading JimDandy Excel Worksheet Functions 1 November 17th 04 04:06 PM


All times are GMT +1. The time now is 12:45 PM.

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

About Us

"It's about Microsoft Excel"