To convert a column number to its matching Excel column letter, use the formula =SUBSTITUTE(ADDRESS(1, A1, 4), "1", ""), where A1 holds the number. This works in all modern desktop versions of Excel, Excel for Microsoft 365, and Excel for the web. It is the quickest reliable method because ADDRESS builds a cell reference and SUBSTITUTE strips the row number, leaving only the letters. If you need the reverse (letter to number), there is a separate approach covered below. No add-ins or macros are required, but the formula does assume the number is a positive integer between 1 and 16,384 (the maximum column count in current Excel).
What You'll Need
- Excel 2016 or later, Microsoft 365, or Excel for the web (the formulas shown work in all of these).
- A cell containing a whole number from 1 to 16,384 (the column index you want to convert).
- Basic familiarity with entering formulas and dragging the fill handle.
Step-by-Step
- Enter your number. In cell A1, type the column number you want to convert, for example
27. Press Enter. - Select the output cell. Click cell B1 (or any empty cell next to your number).
- Type the formula. Enter exactly:
=SUBSTITUTE(ADDRESS(1, A1, 4), "1", ""). TheADDRESSfunction with the fourth argument set to 4 returns a relative reference likeAA1;SUBSTITUTEthen removes the1row number, leavingAA. - Press Enter. Cell B1 should now show the letter
AAfor the number 27. If it shows something else, check that A1 contains a number, not text. - Fill down for more numbers. If you have a list of numbers in column A starting at A1, drag the fill handle from B1 down as far as needed. The relative reference
A1will adjust toA2,A3, and so on. - Optional: convert a range to letters in one go. If you prefer not to drag, you can use the same formula with a dynamic array in Microsoft 365:
=SUBSTITUTE(ADDRESS(1, A1:A10, 4), "1", "")entered in a single cell and confirmed with Enter (it will spill down). In older versions, use the fill handle instead. - Check edge cases. For number 1 the formula returns
A; for 26 it returnsZ; for 27 it returnsAA. For numbers above 702 (the last column before AAA) it continues correctly up to XFD (16,384). - Convert letter to number (optional). If you also need the reverse, use
=COLUMN(INDIRECT(B1&"1"))where B1 contains a letter such asAA. This returns 27. Note thatINDIRECTis volatile and recalculates on every change, so use it sparingly in large workbooks.
Common Mistakes
- Leaving out the fourth argument in ADDRESS.
=ADDRESS(1, A1)returns an absolute reference like$AA$1, andSUBSTITUTEwill not remove the dollar signs, so you get$AA$instead ofAA. Always include, 4. - Using a number stored as text. If A1 contains
"27(with an apostrophe or formatted as text), ADDRESS may treat it as text and return an error. Convert it withVALUE(A1)or reformat the cell as General or Number. - Forgetting that SUBSTITUTE replaces every "1". The formula removes all occurrences of the character "1" from the address. For column 1, ADDRESS returns
A1, and SUBSTITUTE removes the "1" to giveA— correct. But if the column letter itself contained a "1" (it never does, since letters are A–Z), there would be a problem. In practice this is safe for all valid column letters. - Assuming the formula works for row numbers. This converts column numbers to letters, not row numbers. For row numbers you would use a different approach.
- Using a non-integer. If A1 contains 27.5, ADDRESS truncates to 27 and returns AA, which may not be what you expect. Round or truncate explicitly if needed.
Tips
- To avoid the volatile
INDIRECTin the reverse conversion, you can use a formula based onCODEandMID, but for most users the INDIRECT method is simpler and fast enough for small sheets. - If you need the column letter for a cell reference in a dynamic formula, combine with
CELL("address", A1)and text functions instead. - For a list of numbers, you can also use
=SUBSTITUTE(ADDRESS(1, ROW(A1), 4), "1", "")and drag down, which uses the row number as the input. - Remember that Excel column letters are case-insensitive; the formula returns uppercase letters by default.
- Test with 1, 26, 27, 52, 53, 702, 703 to confirm the pattern before relying on it for a large dataset.
Troubleshooting
If the formula returns #VALUE!, check that the referenced cell contains a number and that you have not included extra spaces or text. If it returns #REF!, the number may be outside the valid range (less than 1 or greater than 16,384). If the result includes dollar signs, you omitted the , 4 argument in ADDRESS. If the result is blank, the input cell may be empty or contain a zero; ADDRESS with column 0 returns an error. If the formula works in one cell but not when filled down, ensure the reference to A1 is relative (no dollar signs) so it adjusts. For the reverse formula using INDIRECT, if you get #REF!, the letter may not form a valid cell reference (e.g., "XFE" exceeds the maximum column XFD).
Frequently Asked Questions
Can I convert a column number to a letter without a formula?
Yes, you can use the Name Box: click it, type the column number followed by a colon and the same number (e.g., 27:27), press Enter, and Excel selects the entire column; the column header will show the letter. This is a quick manual check but not suitable for automation.
Does this work in Excel for Mac?
Yes, the formulas are identical in Excel for Mac 2016 and later, including Microsoft 365 for Mac. Menu labels may differ slightly, but the formula syntax is the same.
What is the maximum column number I can convert?
Excel supports up to 16,384 columns, so the maximum valid input is 16,384, which returns XFD. Any number above that will cause ADDRESS to return an error.
Can I get lowercase letters instead of uppercase?
Wrap the formula in LOWER(): =LOWER(SUBSTITUTE(ADDRESS(1, A1, 4), "1", "")). This returns aa for 27.
Why does my formula return "A1" instead of "A"?
You likely omitted the SUBSTITUTE part or the fourth argument in ADDRESS. The correct formula removes the row number with SUBSTITUTE and uses the relative reference style.
Is there a built-in function for this?
No, Excel does not have a dedicated function to convert column numbers to letters. The ADDRESS/SUBSTITUTE combination is the standard workaround.