So if I type in the following data:
I want to be able to drag the handle in the bottom right to expand the list all the way to ZZZ if necessary. By default, excel just repeats the sequence I typed.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communitySo if I type in the following data:
I want to be able to drag the handle in the bottom right to expand the list all the way to ZZZ if necessary. By default, excel just repeats the sequence I typed.
Change your data to rows instead of columns, there are not enough columns to get to ZZZ.
=CHAR(INT((ROW(1:1)-1)/26^2)+65)&CHAR(MOD(INT((ROW(1:1)-1)/26),26)+65)&CHAR(MOD((ROW(1:1)-1),26)+65)
ROW()
without an argument and it will assume the current cell.
– Engineer Toast
Apr 19 '17 at 19:48
AAB
– Scott Craner
Apr 19 '17 at 19:49
Assuming you have Excel 2007 or later, start in column A with the formula:
=MID(ADDRESS(1,702+COLUMN()),2,3)
This just takes advantage of the fact that column 703 is AAA
. If you start in a different column, adjust the value of 702
as needed.
YGD
(I think) before it breaks on any method using Address
.
– Engineer Toast
Apr 19 '17 at 19:45
XFD
as there are no more columns beyond that. There is no column XFE
so it will be an error #Value
after that. Everything after column WED will be an error.
– Scott Craner
Apr 19 '17 at 19:48
AA
to the left of the address and return the 3 right characters, you can start with column A
and, thus, get 702 addresses further which I think is YGD
. It's still a failure, it's just a failure later on.
– Engineer Toast
Apr 19 '17 at 19:49
In A1 write AAA
In B1 write the following:
=SUBSTITUTE(SUBSTITUTE(ADDRESS(1,COLUMN(INDIRECT(A1&"1"))+1),"$",""),"1","")
and drag it in the same row to C1, D1 till you have the result you need
The formula
Address Function return =Address(1,1) -->$A$1
From SUPERUSER QUESTION 867965 answered by SeanC