What is the ADDRESS function?
=ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])ADDRESS builds a cell address as text, such as "$C$5", from a row number and a column number. Use it to show the position found by MATCH as an address.
The result is address text, not the cell's value. Wrap it in INDIRECT if you need the value. Click cells in the sheet above to see the address change.
Arguments
- row_num
- The row number of the address.
- column_num
- The column number of the address. 1 is column A.
- abs_num
- 1 (omitted) $C$5, 2 C$5, 3 $C5, 4 C5.
- a1
- TRUE (omitted) for A1 style, FALSE for R1C1 style. This playground handles A1 only.
- sheet_text
- A sheet name to put before the address.
ADDRESS examples
Example 1. Basic
=ADDRESS(5, 3)"$C$5".
Example 2. Relative reference
=ADDRESS(5, 3, 4)"C5".
Example 3. With a sheet name
=ADDRESS(2, 3, 1, TRUE, "Stock")"Stock!$C$2".
Example 4. Where the maximum is
=ADDRESS(MATCH(MAX(C2:C9), C2:C9, 0)+1, 3)The address of the highest price, "$C$6".
Common mistakes
Expecting the value
ADDRESS only builds an address. Get the value with =INDIRECT(ADDRESS(5,3)).
Passing the position within a range
MATCH returns the position within the range, so add the header rows to get the sheet row number.
FAQ
- Just the column letter?
- Use =SUBSTITUTE(ADDRESS(1, column_num, 4), "1", "").
- R1C1 style?
- Set the fourth argument to FALSE to get something like "R5C3".