ADDRESS
Returns a cell reference as text from row and column numbers.
ADDRESS can emit either A1 or R1C1 notation and optionally prefix the address with a
sheet name.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
row_num | number | Required | — |
column_num | number | Required | — |
abs_num | number | Optional | 1 |
a1 | logical | Optional | true |
sheet_text | text | Optional | — |
Return type
Can return text.
Remarks
abs_numdefaults to1($A$1) and supports values1..4.a1defaults toTRUE;FALSEreturns R1C1-style text.- Valid row range is
1..1048576; valid column range is1..16384. - If
sheet_textcontains spaces or special characters, it is quoted.
Error cases
- Out-of-range row/column values or invalid
abs_numreturn#VALUE!.
Examples
Build an absolute A1-style address from a row and column.
Formula =ADDRESS(7,3)
Expected result $C$7
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Choose relative R1C1 notation and include a sheet name.
Formula =ADDRESS(7,3,4,FALSE,"Data")
Expected result Data!R[7]C[3]
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Build the address at the first row and first column.
Formula =ADDRESS(1,1)
Expected result $A$1
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Row zero is outside the worksheet.
Formula =ADDRESS(0,3)
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Absolute A1 reference
Formula =ADDRESS(2,3)
Expected result $C$2
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Relative R1C1 reference with sheet
Formula =ADDRESS(5,3,4,FALSE,"Data Sheet")
Expected result 'Data Sheet'!R[5]C[3]
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
What happens when abs_num is outside 1..4?
ADDRESS returns #VALUE!; only 1 (absolute), 2 (absolute row), 3 (absolute column), and 4 (relative) are valid.
Why does sheet_text sometimes add single quotes?
Sheet names containing spaces or special characters are quoted and internal apostrophes are escaped to keep a valid reference string.