![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi, I'm running some long functions which overhang the formula bar and obscure the column header letters. I've been re-entering the column letters manually into row 10 but have to change them each time my layout changes. Using =COLUMN()shows the column as a number - is there an equivalent function that will show the column as a letter?
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
=ADDRESS(ROW(),COLUMN()) =CELL("address") Otherwise please elaborate with examples. |
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
Thanks Aladin, both give me $J$10 in cell J10 when I just want J
ie I'm just looking to display the column letter in a cell, A in A10, B in B10 etc (to keep on top of my evermoreconfusing formulae!) |
|
|
|
#4 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Aladin |
|
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
Try: -
=LEFT(ADDRESS(1,COLUMN(),4),1) |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Try your formula in AB1. Aladin |
|
|
|
|
|
|
#7 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
So I propose using: =MID(ADDRESS(ROW(),COLUMN()),2,SEARCH("@",SUBSTITUTE(ADDRESS(ROW(),COLUMN()),"$","@",2))-2) Aladin |
||
|
|
|
|
|
#8 |
|
Guest
Posts: n/a
|
Thanks for the replies, I've pasted in Aladin #2 (and will look to work out the script a little later..)
|
|
|
|
#9 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Sunny, spring-like Hull
Posts: 3,339
|
You're right of course, Aladin
Incidentally, I came up with a formula (below) which seems to work OK, is there a reason for doing it the way you did? =MID(ADDRESS(1,COLUMN()),2,SEARCH("$",ADDRESS(1,COLUMN(),2))-1) |
|
|
|
|
|
#10 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
Aladin |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|