Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Creating emailing list from column of addresses | Excel Discussion (Misc queries) | |||
creating a pick list from more than one column | Excel Discussion (Misc queries) | |||
Creating a dropdown list within a column | Excel Discussion (Misc queries) | |||
How do change a column of data in capitol letters to small letters | Excel Discussion (Misc queries) | |||
creating a list from a column of semicolon | Excel Discussion (Misc queries) |