Excel Column Letter and Number Converter

Turn AB into 28 and 1024 into AMJ, translate A1 and R1C1 references, size any range and convert a whole list at once.

S'executa al teu navegador. Els fitxers mai no surten del dispositiu. Mira com comprovar-ho

…

Com es fa

  1. 1
    Choose the program

    Pick Excel, old Excel, LibreOffice or Google Sheets so the limits match your file.

  2. 2
    Convert one value

    On Letter and number, type a column number or letters and read the answer straight away.

  3. 3
    Work with references

    On A1 and R1C1, set the formula cell, then convert references, cycle the $ signs or size a range.

  4. 4
    Convert a list

    On Batch list, paste many values and check the notes for anything out of range.

  5. 5
    Export

    Download the batch or the reference table as CSV, or copy the results as two columns.

  6. 6
    Use it in the sheet

    Copy one of the formulas at the bottom if you need the conversion to update inside the workbook.

Sobre aquesta eina

Spreadsheet columns are named with letters, but code, APIs and many formulas think in numbers. A Python script reading an export wants column 28, the person who sent the file says column AB, and somewhere in between someone counts on their fingers and gets it wrong. The letters work like a counting system in base 26 with no zero: A to Z are 1 to 26, AA follows Z as 27, AZ is 52, ZZ is 702, AAA is 703, and the last column in current Excel, XFD, is 16,384. This converter does the sum both ways as you type, warns when a column is beyond the grid of the program you chose, and lets you step up or down one column at a time. The references tab goes further. It converts A1 references to R1C1 style, where R7C3 is an absolute cell and R[-2]C[-1] is relative to the cell holding the formula, which you set yourself. It converts R1C1 back to A1, cycles the dollar signs the way F4 does in Excel, shows where a reference moves when you copy a formula down and across, and works out the number of rows, columns and cells in any range, including whole columns such as B:D, whole rows such as 3:7 and references with a sheet name.

Batch conversion

Paste a list with one item per line, or separated by commas or tabs. Numbers become letters, letters become numbers, R1C1 references become A1, ranges are sized and plain cell references are described with their column number, row and absolute R1C1 form. Lines that cannot be read are marked with the reason. Download the result as CSV or copy it as two columns to paste back into a sheet.

Reference table

The table tab lists columns with their letters for any range you choose, up to 2,000 at a time, as a grid you can scan or download as CSV. It is useful as a printed cheat sheet next to a data entry screen.

Formulas for inside the sheet

The bottom card gives formulas that do the same job inside a workbook: SUBSTITUTE(ADDRESS(1,A2,4),"1","") turns a number into letters in Excel and LibreOffice, a REGEXREPLACE version does it in Google Sheets, and COLUMN(INDIRECT(A2&"1")) turns letters into a number.

Limits

The grid sizes are those of Excel 2007 and later (16,384 columns by 1,048,576 rows), Excel 97 to 2003 (256 by 65,536), LibreOffice Calc 7.4 and later, and Google Sheets (18,278 columns, with a limit of 10 million cells per file, so the row figure is a ceiling, not a promise). The tool does not open or edit spreadsheet files and does not translate whole formulas between A1 and R1C1; it converts references one at a time.

Exemple resolt

Column 1024 is AMJ, so a CSV with 1,024 fields ends at column AMJ, and column 2026 is BYX. In R1C1 terms, a formula in D5 that points at B3 reads R[-2]C[-2], while $B$3 reads R3C2. The range B2:H101 is 100 rows by 7 columns, 700 cells, and the whole column A:A in Excel holds 1,048,576 cells.

En resum

Preguntes freqüents

How do you convert a column letter to a number by hand?

Read the letters left to right, multiply the running total by 26 and add the letter's position (A = 1, Z = 26). For AB: A gives 1, then 1 x 26 + 2 = 28. For XFD: 24, then 24 x 26 + 6 = 630, then 630 x 26 + 4 = 16,384.

Why is there no column zero?

Column names are a bijective base-26 system: every digit is 1 to 26, never 0. That is why Z (26) is followed by AA rather than by a two-letter name with a zero digit, and why the usual base conversion tricks give wrong answers.

What is R1C1 reference style?

It names cells by row and column numbers. R3C2 is row 3, column 2, an absolute reference like $B$3. Square brackets make it relative to the formula's cell: R[-1]C[2] means one row up and two columns right. Excel can display all formulas this way through its options.

What is the last column in Excel?

XFD, column 16,384, in Excel 2007 and later, with 1,048,576 rows. Old .xls files stop at column IV (256) and row 65,536. Google Sheets allows up to column ZZZ (18,278).

What does the F4 button do?

It cycles a reference through A1, $A$1, A$1 and $A1, fixing the column, the row, both or neither when the formula is copied. Cycle $ like F4 does the same, and the copy panel shows where each version moves.

Can I convert a whole column of values?

Yes. Paste them into the Batch list tab, one per line, and download the results as CSV or copy them as two tab-separated columns to paste back into your sheet.

Totalment gratisSense cost, sense registre
Els fitxers es mantenen privatsTot funciona al teu navegador
Fàcil en el teu idiomaDisponible en molts idiomes