In this lesson you can learn how to use ADDRESS function. By using the ADDRESS function, you can get the address of the cell in the spreadsheet, giving a specific row and column number.
What is the ADDRESS function in Excel?
ADDRESS stands for “Address”. It is a function that takes three arguments:
- The row number of the cell
- The column number of the cell
- An optional Boolean value that specifies whether the address should be absolute or relative
For example, if you want to return the address of the cell in row 2 and column 3, you would use the following formula: =ADDRESS(2, 3)
This formula would return the address “$B$2”.
Address function syntax
The syntax is as follows:
ADDRESS (row_num; column_num, [abs_num], [A1], [sheet_text])
- row_num and column_num are arguments which specify the location of the cell. For example, to create a text cell reference C2 are, respectively, the number of type 2 and 3
- abs_num is a kind of appeal to create a function, given as a number between 1-4, as follows:
1 – (default) means the absolute reference ($A$1),
2 – row absolute, relative to the column (A$1),
3 – relative to the row, absolute for the column ($A1),
4 – relative reference (A1).
- A1 is an optional argument allows us to choose the type of appeal.
If you leave the field blank or write in the TRUE or 1, the address is created in the style of A1,
if the argument will be set to false or 0 – R1C1 style address.
- sheet_text is an optional argument allows you to specify the sheet that contains the cell. You must write the name of the sheet in quotation marks.
How does the ADDRESS function work?
The ADDRESS function works by first converting the row and column numbers into text strings. The text strings are then concatenated together with the $ symbol to create the absolute address. If the optional Boolean value is TRUE, the address is returned as a relative address.
Examples of Address function in Excel
=ADDRESS(2,3) returns $C$2
=ADDRESS(2,3,1) returns $C$2
=ADDRESS(2,3,2) returns C$2
=ADDRESS(2,3,3) returns $C2
=ADDRESS(2,3,4) returns C2
=ADDRESS(2,3,1,TRUE) returns $C$2
=ADDRESS(2,3,1,FALSE) returns R2C3
=ADDRESS(2,3,1,TRUE,”Sheet4″) returns Sheet4!$C$2
Find MAX value in range
You have values in A1:A5 range. You want to find the address of cell with the greatest value. Formula is:
Find MIN value in range
You have values in A1:A5 range. You want to find the address of cell with the smallest value. Formula is: