A1 ↔ R1C1 Notation Converter

Switch spreadsheet cell references between A1 and R1C1 style

Ad placeholder (leaderboard)

A1 versus R1C1

Spreadsheets can address cells in two styles. A1 notation, the default in Excel and Google Sheets, names the column with letters and the row with a number, for example B3. R1C1 notation names both the row and the column with numbers, so the same cell is R3C2. R1C1 is popular for writing formulas because relative positions become obvious arithmetic rather than shifting letters.

How it works

Converting between the two styles is really about converting the column between letters and a number using bijective base-26 (A=1, B=2, … Z=26, AA=27).

From A1 to R1C1, the tool splits the label into its letter and digit parts, turns the letters into a column number, and emits R{row}C{column}:

B3  ->  R3C2

From R1C1 back to A1, it reads the numeric row and column, converts the column number back into letters, and joins them:

R3C2  ->  B3

Ranges are handled by splitting on the colon and converting each endpoint independently, so A1:C10 round-trips to R1C1:R10C3.

Example and tips

The cell AA1 sits in column 27, so it converts to R1C27. Going the other way, R5C28 becomes AB5 because column 28 is AB. Because the column math is the same bijective base-26 scheme Excel uses internally, the conversions are exact for any column index, including the far-right columns of a large sheet.

Ad placeholder (rectangle)