LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.misc
DJS DJS is offline
external usenet poster
 
Posts: 31
Default Translate Column Index Num to Letter

Thanks Ron, that explains it.
I am working in a macro.

"Ron Rosenfeld" wrote:

On Fri, 8 Dec 2006 07:05:01 -0800, DJS wrote:

Thanks All.
I need the Column Letter as a reference for the end user.
I got the function to work (from Gord), but i kept getting the following
error if i try and use any of the others "Compile Error: Sub or Function Not
Defined". Do i have to put the other samples into a function like Gord did?

I tried:
colLtr = Left(Address(1, colNum, 4), Len(Address(1, colNum, 4)) - 1)

Thanks again.

"Ron Rosenfeld" wrote:

On Thu, 7 Dec 2006 13:52:00 -0800, DJS wrote:

Looking for a quick and easy way to revert my Column Index Number back to the
respective Column Letter...

TIA

With the column index number in A1:

=LEFT(ADDRESS(1,A1,4),1+(A126))


--ron


Mine is a simple worksheet function. You just enter it into some cell in the
worksheet, with the column number in A1 (or whatever cell you choose to
specify).

Biff's recommendation is similar, but he chose to use a Name'd reference for
the location of the column number.


--ron

 
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
Copying forumla for vlook up but changing the column Index # klafert Excel Worksheet Functions 21 September 4th 06 07:56 PM
Column picked randomly with probability relative to number of entr Neil Goldwasser Excel Worksheet Functions 4 May 30th 06 08:55 AM
How to automatically number an index column Phil Excel Worksheet Functions 13 October 25th 05 01:36 PM
How to replace column letter in refferences with a function using the old column letter? Dmitry Kopnichev Links and Linking in Excel 6 October 13th 05 09:09 AM
How to replace column letter in refferences with a function using the old column letter? Dmitry Kopnichev Excel Worksheet Functions 6 October 13th 05 09:09 AM


All times are GMT +1. The time now is 08:35 AM.

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"