![]() |
![]() |
|
|||||||
| 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
|
How do i increment the letters?
I want to be able to select cells A1, then B2, then C3 etc. I can easily increment the rows, how do i increment columns?? thks |
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
=OFFSET(A1,2,2) is C3 ...therefore, the formula... =OFFSET($A$1,ROW(A1),ROW(A1)) ...references B2, and as this formula is copied or filled down it references each sucessive diagonally adjacent cell (i.e., C3, D4, E5, etc.). [ This Message was edited by: Mark W. on 2002-02-20 07:57 ] |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Also
=CHAR(65) returns "A", 66 is "B", and so on. |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Jun 2009
Posts: 76
|
How to Increment Letters after "Z" like excel column (AA, AB, AC etc) is it Possible.
Thanks |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: May 2002
Posts: 10,087
|
It is a lot better to work with numbers instead of letters to identify both rows and columns. That way column 26 is column Z and column 27 is column AA.
__________________
Tushar Mehta (Microsoft MVP Excel 2000-present) Excel & PowerPoint tutorials and add-ins; custom productivity solutions for MS Office |
|
|
|
|
|
#6 | |
|
Board Regular
Join Date: Dec 2009
Location: Indonesia
Posts: 54
|
Quote:
Code:
=ADDRESS(ROW(),COLUMN(Z1)+1) |
|
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Jun 2009
Posts: 76
|
Thanks for reply
Can i get like A, B, C.... Z Than AA, AB, AC Like Excel column Thanks again |
|
|
|
|
|
#8 |
|
Board Regular
Join Date: Dec 2009
Location: Indonesia
Posts: 54
|
Code:
=LEFT(RIGHT(ADDRESS(1,COLUMN($Z$1)+ your increment here,4),2),1) |
|
|
|
|
|
#9 |
|
Board Regular
Join Date: Jun 2009
Posts: 76
|
Thanks dear
But i want Like this, if A1 = A than A2 =B .... =Z than AA, AB (Same as a excel Column name a to z than aa, ab..az) Thanks for reply |
|
|
|
|
|
#10 |
|
Board Regular
Join Date: Dec 2009
Location: Indonesia
Posts: 54
|
You meant "then" not "than" ?
one possible way is: Code:
=SUBSTITUTE(ADDRESS(1,COLUMN($A$1)+ B2,4),"1","") or put this from A1 down Code:
=SUBSTITUTE(ADDRESS(1,ROW(),4),"1","") Last edited by boim; Feb 12th, 2010 at 05:39 AM. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|