Rows and Columns
Rows and Columns
Example: Use of the ADDRESS Function and the Comparison with CELL
The ADDRESS function returns the address of a cell in a worksheet, given specified
row and column numbers. Note that in Chapter 22, we saw that the CELL function
could also provide address-related (e.g. address, row, or column number) as well as
other information (e.g. its format or type of contents) about a cell.
The file Ch25.3.CELL.ADDRESS.1.xlsx shows an example of the ADDRESS func-
tion and the analogous result produced using the address-form of the CELL function
(see Figure 25.3).
Note (for later reference) that each function can be entered in a cell which ref-
erences itself without creating a circular calculation. It is also worth noting that the
CELL function has the Excel property that it is Volatile. This means that it is evaluated
at every recalculation of the worksheet even when its arguments have not changed,
which reduces computational efficiency. Thus, the ADDRESS function may be chosen
in preference to the CELL function in some cases.
The file Ch25.4.CELL.ADDRESS.4.xlsx contains an example of the use of the
ADDRESS function (see Figure 25.4). It uses the last of the function’s optional argu-
ments to find the address of a cell in another worksheet of the workbook. In other
words, the ADDRESS function is providing (in Cell B3) the full address of Cell B3 of
the “Feb” worksheet. A similar result can be obtaining using the address form of the
CELL function by explicitly concatenating the text strings. (This approach will be
important for some examples of multi-sheet models shown later in the chapter, and
discussed in Chapter 6.)