Omnikit
DevFilesMoneyAll tools
Ctrl K
Dev toolsFile toolsMoney calculatorsAll tools
HomeDeveloper toolsExcel Column Letter ConverterColumn Letter to Number

Column Letter to Number

dev

Find the column number of any Excel column letter, such as AB = 28

Runs in your browser. Nothing you type is sent anywhere. Updated on 25 Oct 2026.

Code that reads a spreadsheet usually wants a column number, while the sheet itself shows letters. Type the letters and read the number: AB is 28, ZZ is 702, and XFD, the last column Excel has, is 16,384. A full cell reference such as $AB$12 or Sheet1!C3 works too, and the row is shown separately.

Next:
  • Excel Date Serial Converter Excel serial numbers such as 45292 to dates and back, 1900 or 1904 system, with times
  • CSV to JSON Convert CSV to JSON and JSON to CSV, with a table preview

How to convert a column letter to a number in Excel

1

Open the page with AB already converted to 28.

2

Type your column letters, or a full reference such as Sheet1!C3.

3

Read the Number; the row from a cell reference is shown separately.

4

Press Copy number to take it.

How Column Letter to Number works

Paste a list for a whole mapping at once.

This converter turns Excel column letters into column numbers and numbers back into letters. Type AB and it shows 28; type 28 and it shows AB. It works out which direction you mean from what you type, so there is no mode to switch. Cell references are understood as well: $AB$12, ab12 and Sheet1!C3 all give the column, with the row shown on its own.

Excel has 16,384 columns and 1,048,576 rows per worksheet, according to Microsoft's published specifications, so the last column is XFD. Larger numbers still convert, with a warning, because other spreadsheet programs and libraries have their own limits.

What it does not do: convert R1C1 references, rename columns in a file, or read a workbook. For Excel date serial numbers such as 45292, use the Excel Date Serial Converter. Everything runs in your browser and nothing is sent anywhere.

The rest of the article, and all 6 questions about Excel Column Letter Converter, are on the Excel Column Letter Converter page.

Frequently asked questions

What column number is XFD?

XFD is column 16,384, the last column in an Excel worksheet since Excel 2007. The sum is X (24) times 676, plus F (6) times 26, plus D (4), which gives 16,224 + 156 + 4. Earlier versions of Excel stopped at column IV, number 256.

Why does a normal base-26 conversion give the wrong letters?

Column letters have no zero digit. In ordinary base 26, the number after Z would be written A0; in a spreadsheet it is AA. So each step subtracts one before dividing by 26. Code that skips that step fails on Z, AZ, ZZ and every other column ending in Z.

Does it understand cell references like $B$7?

Yes. Dollar signs, lower case and a sheet name before an exclamation mark are all accepted, so $B$7, b7 and 'My Sheet'!B7 all give column B, number 2, with row 7 shown separately. R1C1 references are not supported.

Is AA column 27 in Google Sheets too?

Yes. Google Sheets, LibreOffice Calc and Numbers use the same lettering, so A is 1, Z is 26 and AA is 27 everywhere. Only the maximum number of columns differs between programs, which is why the Excel limit is shown as a warning, not an error.

Still stuck? Ask about Excel Column Letter Converter and anybody who knows can answer. No account needed.

More ways to use Excel Column Letter Converter

  • Excel Column Letter ConverterExcel column letters to numbers and back (A=1, AA=27, XFD=16384), one or a whole list
  • Number to Column LetterTurn a column number into its Excel letters, such as 28 = AB

Same job, other tools: TSV to JSON – Convert tab-separated values, such as a paste from Excel, into JSON · Decimal to Binary – Convert decimal numbers into binary, grouped in fours.

On the related tools: Query String Parser – Split a URL query string into a table of decoded parameters.

Related tools

All developer tools
Base64 Encode & DecodeText and files to Base64 and back, with URL-safe mode and image previewUnix Timestamp ConverterUnix timestamps to dates and dates to timestamps, in any time zoneJSON to TypeScriptGenerate TypeScript interfaces or types from a JSON sampleCSV to JSONConvert CSV to JSON and JSON to CSV, with a table previewYAML to JSONConvert YAML to JSON and JSON to YAML, with anchors resolvedURL Encoder / DecoderPercent-encode or decode text and URLs, and see every part of a linkColor ConverterHEX, RGB, HSL, HWB, OKLCH and CMYK in both directions, with a contrast checkNumber Base ConverterBinary, octal, decimal, hex and any base to 36, exact at any size, with two's complement
Was this tool helpful?
Omnikit

Small jobs, done in your browser. Free, fast and private. Files are never uploaded.

Files

  • Compress Image
  • Image to PDF
  • Merge PDF
  • Compress PDF
  • PDF to Word
  • Word to PDF

Dev

  • JSON Formatter & Validator
  • Base64 Encode & Decode
  • JWT Decoder, Verifier & Encoder
  • Password Generator
  • UUID Generator
  • Unix Timestamp Converter

Money

  • SIP Calculator
  • EMI Calculator
  • GST Calculator
  • FD Calculator
  • PPF Calculator
  • Lumpsum Calculator
GuidesQuestionsAboutHow we checkLaw library (beta)PrivacyTermsDisclosureContactMore: Exam practice (UGC NET Paper 1)Runs in your browser. Nothing is uploaded. © 2026 Omnikit (theomnikit.com)