Works on this device
Spreadsheet Cell Reference Converter
Convert a cell reference from the A1 style (such as $B$3 or A1:C10) to the R1C1 style (such as R3C2 or R[2]C[1]) and back, or column letters to numbers. Relative parts are counted from the cell that holds the formula.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Convert.
Your result
How it was worked out
How to use this converter
- Choose what to convert: A1 reference to R1C1, R1C1 reference to A1, Column letters and numbers, or Many references at once.
- Type the reference. For relative parts, type the cell that holds the formula (A1 unless you change it).
- The answer shows as you type. It also says whether the reference is absolute, relative or mixed, and how many rows, columns and cells it covers.
The two styles
- A1: column letters, then the row number: B3 is column B (2), row 3. A $ makes a part absolute, so it does not change when the formula is copied: $B$3 (both), B$3 (row only), $B3 (column only).
- R1C1: R and the row, then C and the column. R3C2 is the absolute cell row 3, column 2 (that is $B$3).
- Relative R1C1: a number in brackets is an offset from the cell that holds the formula. R[2]C[1] is 2 rows down and 1 column to the right; R[-1]C[-1] is up and to the left. R or C alone means the same row or column, so RC[-1] is the cell to the left.
- Ranges: A1:C10 is R1C1:R10C3. Whole columns A:C are C1:C3, whole rows 2:5 are R2:R5. A whole column or row with two equal ends is written once in R1C1 (C2 is $B:$B), as Excel shows it.
- Sheet names stay as typed: Sheet1!A1 becomes Sheet1!R1C1. A name with spaces needs single quotes: 'My sheet'!A1.
Column letters and numbers
Columns are numbered in bijective base 26, with no zero: A = 1, ..., Z = 26, AA = 27, AZ = 52, ZZ = 702, AAA = 703. Letters to a number: each letter is its place in the alphabet times a power of 26. XFD = 24 × 676 + 6 × 26 + 4 = 16,384, the last column of a sheet in Excel 2007 and later.
A number to letters: take 1 away, divide by 26, and the remainder is the last letter (0 = A); repeat with the whole part of the division.
Worked example
A formula in cell A1 refers to B3. B3 is 2 rows down and 1 column to the right of A1, so in R1C1 it is R[2]C[1]. The absolute $B$3 is R3C2 wherever the formula is.
C$3:$D4 seen from B2: column C is 1 to the right (C[1]), row 3 is absolute (R3), column D is absolute (C4), row 4 is 2 down (R[2]). The answer is R3C[1]:R[2]C4, a mixed range of 2 columns and 2 rows, 4 cells.
Limits you should know
- The sheet has 16,384 columns (A to XFD) and 1,048,576 rows, as in Excel 2007 and later. Other programs and older files may have other limits.
- A relative R1C1 part that falls outside the sheet is refused. Excel wraps such a reference around to the other edge of the sheet; this tool does not.
- The tool converts references, not whole formulas, names or structured table references such as Table1[Price].