Home › Unit Converters › Excel Column Letter to Number Converter

Excel Column Letter to Number Converter

Find the number of any spreadsheet column (A = 1, Z = 26, AA = 27, XFD = 16,384) or turn a column number back into letters. Paste a list to convert many at once. Works for Excel, Google Sheets, LibreOffice and code that uses column indexes.

Last updated:

Convert

e.g. A, Z, AA, XFD, or a cell reference like $BC$12

Mix freely: letters become numbers, numbers become letters

Enter your values to see the result.
Advertisement
Advertisement

How to use the Excel Column Letter to Number Converter

  1. Pick a direction: Letters → number, Number → letters, or Batch list.
  2. Type the column, for example AA, or a number such as 703.
  3. Press Convert to see the result, the working and the neighboring columns.
  4. For many columns, choose Batch list, paste one item per line and download the results as CSV.

How spreadsheet column letters work

Column labels count like an odometer that uses the 26 letters as digits: A to Z, then AA to AZ, BA to BZ … ZZ, then AAA. Unlike ordinary base 26 there is no zero digit, so A stands for 1 and Z for 26. Mathematicians call this bijective base-26.

  • Letters → number: n = 0; for each letter from left to right, n = n × 26 + (letter position). Example AB: A = 1 → 1; 1 × 26 + 2 = 28.
  • Number → letters: while n > 0: r = (n − 1) mod 26, add letter r (0 = A), n = (n − 1) div 26. Read the letters in reverse.
  • Counting columns by length: 1 letter = 26 columns, 2 letters = 676 more (up to ZZ = 702), 3 letters = 17,576 more (up to ZZZ = 18,278).

Column letter to number reference

LettersNumberLettersNumberLettersNumber
A1AA27BA53
E5AE31CA79
J10AJ36DA105
O15AO41IV256 (old Excel limit)
T20AT46ZZ702
Y25AY51AAA703
Z26AZ52XFD16,384 (Excel limit)

Tips for spreadsheets and code

  • In Excel or Google Sheets, =COLUMN() returns the number of the current column and =COLUMN(D1) the number of column D.
  • Programming libraries (for example pandas, openpyxl or Apache POI) often use zero-based indexes, where column A is 0. The converter shows that value too.
  • VLOOKUP and INDEX take a column number relative to the range, not the sheet. If your range starts at column C, column E is index 3 inside it.
  • Cell references like $AB$12 are accepted: the dollar signs and row number are ignored for the column calculation.

Frequently asked questions

What number is column AA in Excel?

Column AA is column 27. Z is 26, so the next column starts the two-letter sequence: AA = 27, AB = 28, AZ = 52, BA = 53.

How do you convert a column letter to a number?

Read the letters as a base-26 number where A = 1 and Z = 26. For each letter, multiply the running total by 26 and add the letter's value. For example XFD: X = 24; 24 × 26 + 6 (F) = 630; 630 × 26 + 4 (D) = 16,384.

How do you convert a column number to letters?

Subtract 1, divide by 26 and note the remainder (0 = A … 25 = Z). Repeat with the quotient until it reaches 0, then read the letters in reverse. For 28: (28 − 1) ÷ 26 = 1 remainder 1 → B; (1 − 1) ÷ 26 = 0 remainder 0 → A; so 28 = AB.

What is the last column in Excel?

Since Excel 2007, the last column is XFD, column 16,384. Older .xls files (Excel 2003 and earlier) stop at column IV, number 256.

How many columns does Google Sheets allow?

Google Sheets allows up to 18,278 columns, which ends at column ZZZ.

Why is it called bijective base-26?

Normal base 26 would need a zero digit. Spreadsheet columns have no zero: the digits run from A = 1 to Z = 26, and every number has exactly one spelling. That is called bijective numeration.

Is there an Excel formula for this?

Yes. =COLUMN(INDIRECT("AA1")) returns 27, and =SUBSTITUTE(ADDRESS(1,27,4),"1","") returns AA. This tool gives the same answers without opening a spreadsheet.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Number Base ConverterConvert numbers between any bases from 2 to 36, with fractions and steps.Excel Date ConverterConvert Excel serial numbers to dates and times and back, in the 1900 or 1904 date system.CSV Column ExtractorPick, reorder and rename CSV columns, filter rows by value, and export a new CSV or JSON.Roman Numeral ConverterConvert numbers to Roman numerals and back, up to 3,999,999.Currency ConverterConvert currencies with live exchange rates.Unit ConverterConvert length, weight, volume, temperature and more.Number to WordsWrite any number in words, including cheque format.Words to NumberConvert written English number words back into digits.Ordinal Number GeneratorTurn numbers or ranges into ordinals like 1st, 2nd, 3rd or first.Time Zone Abbreviations & UTC OffsetsLook up time zone abbreviations like EST, CET or IST and their UTC offsets.Shoe Size ConverterConvert US, UK, EU and JP shoe sizes for men, women and kids, or size from foot length.Clothing Size ConverterConvert women's, men's and kids' clothing sizes between US, UK, EU, IT, FR, JP and AU.Ring Size ConverterConvert US, UK, EU and JP ring sizes, find a size from diameter, and print a ring sizer.Bra Size CalculatorFind your bra size from two measurements and convert it between US, UK, EU, FR and AU sizes.Paper Size ReferenceA, B, C, US and ANSI paper sizes in mm, inches, points and pixels at any DPI, with a visual compare.Fraction to Decimal CalculatorConvert fractions and mixed numbers to exact decimals with repeating digits and percent.Decimal to Fraction CalculatorTurn decimals and repeating decimals into simplified fractions and mixed numbers.km/L to MPGConvert kilometers per liter to miles per gallon and back, with formula steps.Paper Weight ConverterConvert gsm to lb bond, text, cover and index paper weights, with a thickness guide.UK MPG to US MPGConvert UK miles per gallon to US miles per gallon and back, with formula steps.Fraction to PercentConvert a fraction or mixed number to a percentage and decimal, with repeating digits and steps.Percent to FractionConvert any percentage, including decimals like 12.5%, to a simplified fraction and mixed number.Repeating Decimal to FractionConvert a repeating decimal like 0.1(6) into an exact simplified fraction, with algebra steps.Asian Size Chart ConverterConvert Asian and China clothing sizes (S–5XL, 160/84A) to US, UK and EU sizes from your chest.Baby Clothing Size ConverterConvert baby sizes (preemie, NB, 0–3M to 24M) to weight, length, EU cm and UK sizes.Beaufort Scale ConverterConvert wind speed in mph, km/h, knots or m/s to Beaufort force with sea and land signs.Blood Sugar ConverterConvert blood glucose between mg/dL and mmol/L and see where the reading falls.Bra Sister Size CalculatorFind bra sister sizes (band up, cup down and band down, cup up) with a full sister-size grid.Bra Size ConverterConvert bra sizes between US, UK, EU, French, Australian and Japanese sizing.CAD to USDConvert Canadian dollars to US dollars at the daily ECB reference rate, with a 30-day chart.Coordinate ConverterConvert GPS coordinates between decimal degrees, DMS, DDM, UTM and MGRS, auto-detected.Crochet Hook Size ConverterConvert crochet hooks between mm, US letters and UK sizes, incl. steel hooks and yarn pairing.Decimal to Percent ConverterTurn decimals into percentages with the rounding you choose; convert a list at once.Drill Bit Size ConverterConvert drill bits between fractional, number, letter and metric sizes with decimal inches.EU to US Shoe SizeConvert EU shoe sizes to US men's, women's and kids' sizes, plus UK and foot length.EUR to USDConvert euros to US dollars at the daily ECB reference rate, with a 30-day chart.Font Size ConverterConvert font sizes between px, pt, em, rem, % and vw, with a 6–72px chart and CSS.Fuel Economy ConverterConvert US MPG, UK MPG, L/100km, km/L and mi/L, and compare two vehicles' fuel costs.Knitting Needle Size ConverterConvert knitting needle sizes between US, metric mm and old UK, with yarn weight suggestions.Lumber Size ConverterConvert nominal lumber sizes (2×4, 4×4, 1×6…) to actual dimensions in inches and mm.Men's to Women's Shoe SizeConvert men's shoe sizes to women's (and back) in US, UK and EU, with foot length.Metric Prefix ConverterConvert between SI prefixes (nano, micro, milli, kilo, mega, giga…) for any unit.mg/dL to mmol/LConvert glucose, cholesterol and triglyceride results from mg/dL to mmol/L.Mixed Number to Improper FractionConvert mixed numbers to improper fractions and back, with steps and a pie model.mmol/L to mg/dLConvert glucose, cholesterol and triglycerides from mmol/L to mg/dL with reference ranges.Million Billion Trillion ConverterConvert thousands, millions, billions and trillions, with full numbers, zeros and words.Percent to Decimal ConverterConvert percentages to decimals and fractions, one value or a whole list, with steps.Scale ConverterConvert real sizes to model or drawing scale and back: 1:87 HO, 1:24, 1/4" = 1' and more.Sheet Metal Gauge ConverterSheet metal gauge to inches and mm for steel, galvanized, stainless and aluminum, and back.USD to CADConvert US dollars to Canadian dollars at the daily ECB reference rate, with a 30-day chart.USD to EURConvert US dollars to euros at the daily ECB reference rate, with a 30-day chart.USD to GBPConvert US dollars to British pounds at the daily ECB reference rate, with a 30-day chart.USD to INRConvert US dollars to Indian rupees with daily ECB rates, lakh/crore and a 30-day chart.USD to JPYConvert US dollars to Japanese yen with daily ECB rates, amount tables and a 30-day chart.USD to MXNConvert US dollars to Mexican pesos at the daily ECB reference rate, with a 30-day chart.SAE to Metric Wrench ConverterConvert SAE wrench and socket sizes to metric mm and back, with interchangeable sizes flagged.Climbing Grade ConverterConvert climbing grades between YDS, French, UIAA and Ewbank, and bouldering V-scale to Font.Satoshi to Bitcoin ConverterConvert sats to BTC, mBTC, bits and msat and back, with optional USD at your own price.Add Commas to NumbersFormat numbers with thousands separators (comma, space or period), or remove them, in bulk.Capacitance ConverterConvert F, mF, µF, nF and pF, and encode or decode 3-digit capacitor codes like 104.Lat Long to UTMConvert latitude/longitude (decimal or DMS) to UTM zone, easting and northing, one or in bulk.UTM to Lat LongConvert UTM zone, easting and northing (WGS84) to latitude/longitude in decimal and DMS, or a CSV batch.Engineering Notation ConverterConvert numbers to engineering notation with SI prefix, scientific notation and standard form.Improper Fraction to Mixed NumberTurn improper fractions into simplified mixed numbers with long division and a bar model.Men's Suit Size ConverterConvert men's suit and blazer sizes between US/UK, EU and Italian from chest, height and drop.GBP to USDConvert British pounds to US dollars at the daily ECB reference rate, with a 30-day chart.Hat Size ConverterConvert head circumference to US, UK and EU fitted hat sizes and S–XXL, with kids' sizes.Jeans Size ConverterConvert jeans sizes between W/L waist inches, women's US, UK, EU and S–XL for men and women.
See all 67 Fuel Economy & Other Converters →