Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default creating a list of letters in a column

I need to create a column that letters the row. For example, A1 is A, A2 is
B. There are about 150 rows, so it needs to loop through AB, AC etc.

I would like to find a formula to do this so that if I add a row, it
recalculates the entire column.

Thanks,

--
Lila


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default creating a list of letters in a column

Try:

=IF(INT((ROW()-1)/26)0,CHAR(INT((ROW()-1)/26)+64),"") & CHAR(MOD(ROW()-1,
26)+65)

Regards,
Greg

"Lila" wrote:

I need to create a column that letters the row. For example, A1 is A, A2 is
B. There are about 150 rows, so it needs to loop through AB, AC etc.

I would like to find a formula to do this so that if I add a row, it
recalculates the entire column.

Thanks,

--
Lila



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 747
Default creating a list of letters in a column

By the way, if you don't want to start in the first row, then change the
number that is subtracted from the Row() function to the row you want to
start in. For example, if you want to start in the fourth row, use this
instead:

=IF(INT((ROW()-4)/26)0,CHAR(INT((ROW()-4)/26)+64),"") & CHAR(MOD(ROW()-4,
26)+65)

Regards,
Greg

"Lila" wrote:

I need to create a column that letters the row. For example, A1 is A, A2 is
B. There are about 150 rows, so it needs to loop through AB, AC etc.

I would like to find a formula to do this so that if I add a row, it
recalculates the entire column.

Thanks,

--
Lila



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default creating a list of letters in a column

This is a bit simpler:

=MID(ADDRESS(1,ROW(),4,TRUE,""),2,1+(ROW()26))

if you don't start in A1, change

Row()

to something like Row()-4. This would be if the formula starts in A5 as an
example.

--
Regards,
Tom Ogilvy


"Lila" wrote in message
...
I need to create a column that letters the row. For example, A1 is A, A2

is
B. There are about 150 rows, so it needs to loop through AB, AC etc.

I would like to find a formula to do this so that if I add a row, it
recalculates the entire column.

Thanks,

--
Lila




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default creating a list of letters in a column

Wonderful! Thanks!

Lila
"Tom Ogilvy" wrote in message
...
This is a bit simpler:

=MID(ADDRESS(1,ROW(),4,TRUE,""),2,1+(ROW()26))

if you don't start in A1, change

Row()

to something like Row()-4. This would be if the formula starts in A5 as

an
example.

--
Regards,
Tom Ogilvy





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
Creating emailing list from column of addresses Howard Excel Discussion (Misc queries) 2 April 9th 10 06:38 PM
creating a pick list from more than one column subroc Excel Discussion (Misc queries) 2 June 27th 09 01:21 PM
Creating a dropdown list within a column dsebiz Excel Discussion (Misc queries) 4 March 19th 08 05:56 PM
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
creating a list from a column of semicolon instauratio Excel Discussion (Misc queries) 3 June 21st 05 11:11 PM


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