The ADDRESS function in Excel
The ADDRESS function in Excel is used to return a cell
reference as a text string. The syntax of the ADDRESS function is:
=ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])
Here, row_num is the row number of the cell you want to
reference, column_num is the column number of the cell you want to reference,
[abs_num] specifies the type of cell reference, [a1] is a logical value that
specifies the reference style, and [sheet_text] is the name of the worksheet
that contains the cell you want to reference.
If you omit [abs_num], it defaults to 1, which means that
the cell reference is relative. If you set [abs_num] to 2, the row and column
references will be absolute. If you set [abs_num] to 3, the row reference will
be relative and the column reference will be absolute. If you set [abs_num] to
4, the row reference will be absolute and the column reference will be
relative.
If you omit [a1], it defaults to TRUE, which means that the
cell reference is in A1 reference style. If you set [a1] to FALSE, the cell
reference will be in R1C1 reference style.
If you omit [sheet_text], the ADDRESS function returns a
cell reference for the current worksheet. If you want to reference a cell in another
worksheet, you need to specify the worksheet name in [sheet_text] as a text
string.
For example, if you want to get the address of cell B2 in
Sheet1, you can use the following formula:
=ADDRESS(2, 2, 1, TRUE, "Sheet1")
This will return the text string "$B$2", which is
the cell reference of cell B2 in Sheet1.
Comments
Post a Comment