To convert a column number to Excel column letters, divide by 26 and read the remainders as letters, with A = 1 and Z = 26. Column 1 is A, 26 is Z, 27 is AA, 52 is AZ, 703 is AAA, and the last column, 16,384, is XFD. In Excel, the formula =SUBSTITUTE(ADDRESS(1,28,4),"1","") returns "AB."
The converter works both ways: type a column number to get its letters, or type letters to get the number. The spreadsheet header highlights the column next to its neighbours, and the breakdown below it shows the base-26 math, such as AB = 1 × 26 + 2 = 28.
How number to letter Excel column calculator works?
To turn a column number into letters, the number to letter Excel column calculator counts in bijective base 26. The calculator subtracts 1, takes the remainder after dividing by 26 as a letter (0 = A, 25 = Z), divides by 26, and repeats until nothing is left, then reads the letters from last to first. Column 28 becomes AB.
- Enter numbers or letters
Type column numbers, or switch direction and type letters such as XFD.
28 - Subtract 1 and divide
(n − 1) mod 26 gives the last letter. ⌊(n − 1) ÷ 26⌋ is carried to the next round.
27 mod 26 = 1 → B - Repeat
The carried value goes through the same step until it is 0.
1 − 1 = 0 → A - Read and check
The letters are read from the last found to the first, and the column is flagged if it passes XFD (16,384).
AB · =SUBSTITUTE(ADDRESS(1,28,4),"1","")
Letters to number runs the other way: multiply the running total by 26 and add each letter's position. AB = 1 × 26 + 2 = 28.
Number to letter Excel column formula
The number to letter Excel column formula in a worksheet is =SUBSTITUTE(ADDRESS(1, n, 4), "1", ""). The math behind that formula is bijective base 26, with letters A–Z worth 1–26 and no zero digit.
Formula
Where
- n
- column number, 1 to 16,384
- Li
- letter value at position i from the right (A = 1)
- ADDRESS(1,n,4)
- the relative cell address in row 1, such as AB1
Worked example
Letters back to a number: =COLUMN(INDIRECT("AB1")) returns 28 in Excel and Google Sheets.
Number to letter Excel column conversion chart
The number to letter Excel column conversion chart covers single, double, and triple letters. 1–26 are A–Z, 27–702 are AA–ZZ, and 703–16,384 are AAA–XFD.
| Number | Column | Number | Column | Number | Column |
|---|---|---|---|---|---|
| 1 | A | 27 | AA | 256 | IV |
| 10 | J | 28 | AB | 702 | ZZ |
| 20 | T | 52 | AZ | 703 | AAA |
| 26 | Z | 53 | BA | 16,384 | XFD |
Excel 2007 and later have 16,384 columns (A to XFD); Excel 2003 stopped at 256 (IV). Google Sheets allows up to 18,278 columns (ZZZ), within its 10 million cell limit.
Excel formulas: column number to letter and back
| Task | Formula | Result |
|---|---|---|
| Number to letters | =SUBSTITUTE(ADDRESS(1,A2,4),"1","") | A2 = 28 → AB |
| Letters to number | =COLUMN(INDIRECT(A2&"1")) | A2 = "AB" → 28 |
| Current column letter | =SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","") | Letter of the cell's own column |
| A1Z26 letter (1–26) | =CHAR(64+A2) | A2 = 5 → E |
ADDRESS with the 4th argument set to 4 returns a relative reference such as "AB1"; SUBSTITUTE removes the row number. The same formulas work in Google Sheets.
How the column letter math works
Column letters count like an odometer that has no zero. After Z (26) comes AA (27), because each position runs from 1 to 26 instead of 0 to 25. To convert by hand:
- Subtract 1 from the number: 28 − 1 = 27.
- Take the remainder after dividing by 26: 27 mod 26 = 1, which is B (A = 0).
- Divide and drop the fraction: 27 ÷ 26 = 1. Repeat with 1: subtract 1 → 0, remainder 0 = A.
- Read the letters from last to first: AB.
The "subtract 1" step is what most hand-written code misses, which turns 26 into "A@" instead of Z.
Frequently asked questions
What column number is AA in Excel?
Column AA is number 27, right after Z (26).
What is the last column in Excel?
The last column is XFD, column 16,384, in Excel 2007 and later.
What column number is ZZ?
ZZ is column 702 (26 × 26 + 26). The next column, 703, is AAA.
How do I get a column letter from a number in Excel?
Use =SUBSTITUTE(ADDRESS(1,n,4),"1","") and replace n with the column number or a cell reference.
What number is column Z?
Column Z is number 26.
What is the formula for Excel column number to letter?
=SUBSTITUTE(ADDRESS(1, n, 4), "1", "") returns the column letters for n. With n = 100, the formula returns CV.
What column letter is 100 in Excel?
Column 100 is CV. 3 × 26 + 22 = 100, and C = 3, V = 22.
What column letter is 1000 in Excel?
Column 1,000 is ALL. 1 × 676 + 12 × 26 + 12 = 1,000.
More number and letter tools