FormulaCraft

How to convert a column letter to a number in Excel and Google Sheets

Excel & Google Sheets
=COLUMN(INDIRECT(A2&"1"))

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter the column letter(s) you want to convert in column A (e.g., A, B, Z, AA).
  2. 2In column B, type =COLUMN(INDIRECT(A2&"1")) and press Enter.
  3. 3INDIRECT(A2&"1") constructs a reference like 'A1' from the letter, and COLUMN() returns its numeric position.
  4. 4Copy the formula down for each letter in column A.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

Does this work for two-letter columns like AB or ZZ?

Yes — =COLUMN(INDIRECT("AB1")) returns 28 and =COLUMN(INDIRECT("ZZ1")) returns 702, just as those columns appear in the spreadsheet.

Why do I append '1' inside INDIRECT?

INDIRECT needs a valid cell address like 'A1', not just a column letter. Appending '1' gives it the row number it needs to construct a reference.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: