The Excel Address function takes a row and a column number and returns a cell reference as a text string.
The syntax of the function is:
where the arguments are as follows:
row_num | - | The row number to use in the reference. |
column_num | - | The column number to use in the reference. |
[abs_num] | - |
An optional argument, which specifies whether the reference should contain absolute or relative references. This can be any the following values: 1 - absolute row & absolute column reference; 2 - absolute row & relative column reference; 3 - relative row & absolute column reference; 4 - relative row & relative column reference. If the [abs_num] argument is omitted, it takes on the default value 1 (absolute references). |
[a1] | - |
An optional logical argument that defines the reference style of the returned reference. This can be either: True - the reference should be in A1 style; False - the reference should be in R1C1 style. If this argument is omitted, it takes on the default value "True" (A1 style). |
[sheet_text] | - |
An optional text argument that specifies the sheet name. If this argument is omitted, the sheet name is blank (i.e. the reference relates to the current worksheet) |
The following spreadsheet shows five simple examples of the Excel Address function.
Formulas:
|
Results:
|
Note that, in the above spreadsheet:
For further details and examples of the Excel Address function, see the Microsoft Office website.
If you get an error from the Excel Address function, this is likely to be the #VALUE! error:
#VALUE! | - |
Occurs if the supplied arguments are invalid. I.e. if either:
|