Summary
The Excel ADDRESS function generates a cell’s address based on specific row and column numbers. For instance, =ADDRESS(1,1) produces $A$1. The function can provide addresses in various formats (relative, mixed, or absolute) and is useful for creating cell references within formulas.
Syntax
=ADDRESS(row_num, col_num, [abs_num], [a1], [sheet])
- row_num: The row number for the cell address.
- col_num: The column number for the cell address.
- abs_num: [Optional] Type of address (absolute, relative, etc.). Defaults to absolute (1).
- a1: [Optional] Reference style (A1 vs. R1C1). Defaults to A1 style.
- sheet: [Optional] Worksheet name. Defaults to the current sheet.
Return value
How to use
The ADDRESS function creates a cell address from specified row and column numbers. It can return references in relative, mixed, or absolute formats. The function’s output is a text representation of a reference, which you can convert into an actual reference with INDIRECT if needed. While ADDRESS is useful for certain tasks, functions like INDEX and MATCH are typically more straightforward for retrieving values at specific locations.
The abs_num argument allows various types of address formatting:
1or omitted: Absolute ($A$1)2: Absolute row, relative column (A$1)3: Relative row, absolute column ($A1)4: Relative (A1)
Examples
Simple ADDRESS
=ADDRESS(1,1)
ADDRESS for Relative Reference
=ADDRESS(1,1,4)
ADDRESS for Mixed Reference
=ADDRESS(100,26,2)
ADDRESS for R1C1 Style Address
=ADDRESS(1,1,1,FALSE)
ADDRESS with Sheet Name
=ADDRESS(1,1,4,TRUE,"Sheet1")
Additional Notes
- The ADDRESS function is useful for dynamically creating cell references in formulas.
- By default, ADDRESS returns absolute references ($A$1). The
abs_numargument can change this to relative (A1), mixed (A$1 or $A1), or other combinations. - When the
a1argument is set to FALSE, ADDRESS generates R1C1 style references, which can be more intuitive in certain programming or formula contexts. - The
sheetargument allows incorporating a specific worksheet’s name into the address. This is particularly useful when dealing with multiple sheets. - ADDRESS returns a text representation of the cell address. To use this address in a formula, like for range referencing, it needs to be converted into a proper reference with the INDIRECT function.
- While ADDRESS is powerful for certain specialized tasks, simpler functions like INDEX and MATCH are often more straightforward for retrieving data from specific row and column locations.