Excel How to Return Column Letter

This guide treats “excel how to return column letter” the way busy spreadsheet users actually want it: answer first, a live tool to prove it on your own data, then the reasoning. It is written for Excel but calls out every place Google Sheets differs, and the platform toggle at the top switches all shortcuts between Windows and Mac so nothing here assumes the keyboard you are not on.

Exact answer

In Excel: convert a column number to its letter with =SUBSTITUTE(ADDRESS(1,A2,4),"1","") and a letter to its number with =COLUMN(INDIRECT(B2&"1")) — or use the instant converter above.

ƒxColumn Letter ↔ Number ConverterLive
Column letter
AB

Excel columns run A–XFD (1–16384).

Column number
28

A = 1 · XFD = 16384

=SUBSTITUTE(ADDRESS(1,A2,4),"1","") · =COLUMN(B2:B2)
=SUBSTITUTE(ADDRESS(1,A2,4),"1","")
Ctrl+CthenCtrl+Shift+V+Cthen+Ctrl+VPaste values · WindowsMac

What this does

Excel addresses columns two ways: letters (A, B, …, Z, AA, …, XFD) in the interface, and numbers (1 to 16384) in functions like COLUMN, ADDRESS, OFFSET, and in VBA. The letters are bijective base-26 — after Z comes AA, after AZ comes BA — which is why "what number is column AB" is not obvious mental math (it is 28). The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel how to return column letter”. Start on a copy or a tiny sample, keep the affected columns visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a layout choice that keeps the sheet readable and sortable, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

You need the letter for column 28 to build a range in a macro. =SUBSTITUTE(ADDRESS(1,28,4),"1","") returns AB: ADDRESS(1,28,4) builds the relative reference AB1, and SUBSTITUTE strips the row number. In the other direction, =COLUMN(INDIRECT("AB1")) returns 28. Macro authors, formula builders, and anyone wiring OFFSET/INDEX ranges constantly translate between the letter the sheet shows and the number the function needs. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

In Google Sheets

Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. Treat “excel how to return column letter” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.

Common mistakes

  • Assuming AA is 27 because "A is 1, so AA is 26+1" — correct, but AZ→BA trips people up; it is base-26 with no zero digit.
  • Using ADDRESS without the 4 (abs_num) argument and getting $AB$1 with dollar signs.
  • INDIRECT-based letter→number formulas breaking when the cell contains a trailing space.
  • Hard-coding column letters in VBA that shift when columns are inserted — use named ranges or Cells(row, col).

Frequently asked questions

What is the last column in Excel?

XFD, which is column number 16384 (since Excel 2007).

What column number is AA?

AA is column 27. AB is 28, AZ is 52, BA is 53.

Is there a single built-in function for this?

No single function returns just the letter; the standard idiom combines ADDRESS with SUBSTITUTE as shown above.