Formualizer Docs

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

ArgumentTypeRequiredDefault
row_numnumberRequired—
column_numnumberRequired—
abs_numnumberOptional1
a1logicalOptionaltrue
sheet_texttextOptional—

Return type

Can return text.

Remarks

  • abs_num defaults to 1 ($A$1) and supports values 1..4.
  • a1 defaults to TRUE; FALSE returns R1C1-style text.
  • Valid row range is 1..1048576; valid column range is 1..16384.
  • If sheet_text contains spaces or special characters, it is quoted.

Error cases

  • Out-of-range row/column values or invalid abs_num return #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?.

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.

Implementation

Engine source

On this page