Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 Excel 2010 Excel 2007 Excel for Mac 2011 Excel Starter 2010 More…Less
This article describes the formula syntax and usage of the ADDRESS function in Microsoft Excel. Find links to information about working with mailing addresses or creating mailing labels in the See Also section.
Description
You can use the ADDRESS function to obtain the address of a cell in a worksheet, given specified row and column numbers. For example, ADDRESS(2,3) returns $C$2. As another example, ADDRESS(77,300) returns $KN$77. You can use other functions, such as the ROW and COLUMN functions, to provide the row and column number arguments for the ADDRESS function.
Syntax
ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])
The ADDRESS function syntax has the following arguments:
-
row_num Required. A numeric value that specifies the row number to use in the cell reference.
-
column_num Required. A numeric value that specifies the column number to use in the cell reference.
-
abs_num Optional. A numeric value that specifies the type of reference to return.
abs_num |
Returns this type of reference |
1 or omitted |
Absolute |
2 |
Absolute row; relative column |
3 |
Relative row; absolute column |
4 |
Relative |
-
A1 Optional. A logical value that specifies the A1 or R1C1 reference style. In A1 style, columns are labeled alphabetically, and rows are labeled numerically. In R1C1 reference style, both columns and rows are labeled numerically. If the A1 argument is TRUE or omitted, the ADDRESS function returns an A1-style reference; if FALSE, the ADDRESS function returns an R1C1-style reference.
Note: To change the reference style that Excel uses, click the File tab, click Options, and then click Formulas. Under Working with formulas, select or clear the R1C1 reference style check box.
-
sheet_text Optional. A text value that specifies the name of the worksheet to be used as the external reference. For example, the formula =ADDRESS(1,1,,,»Sheet2″) returns Sheet2!$A$1. If the sheet_text argument is omitted, no sheet name is used, and the address returned by the function refers to a cell on the current sheet.
Example
Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.
Formula |
Description |
Result |
=ADDRESS(2,3) |
Absolute reference |
$C$2 |
=ADDRESS(2,3,2) |
Absolute row; relative column |
C$2 |
=ADDRESS(2,3,2,FALSE) |
Absolute row; relative column in R1C1 reference style |
R2C[3] |
=ADDRESS(2,3,1,FALSE,»[Book1]Sheet1″) |
Absolute reference to another workbook and worksheet |
‘[Book1]Sheet1’!R2C3 |
=ADDRESS(2,3,1,FALSE,»EXCEL SHEET») |
Absolute reference to another worksheet |
‘EXCEL SHEET’!R2C3 |
Need more help?
Want more options?
Explore subscription benefits, browse training courses, learn how to secure your device, and more.
Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.
The ADDRESS function in Excel enables users to create a cell reference by providing the row and column numbers of a cell. The function is particularly useful when working with large datasets or creating dynamic formulas that need to reference different cells based on changing criteria.
The ADDRESS function returns a text string that identifies the cell’s location in a worksheet in relative, mixed, or absolute format. The return result can be either an A1 type or R1C1 style.
Syntax
The syntax of the ADDRESS function is as follows.
=ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])
The ADDRESS function accepts five arguments out of which two are mandatory and the remaining are optional. Details of each argument are mentioned below for a thorough understanding.
Arguments:
‘row_num‘ -This is a required argument that specifies the row number of the cell of which we want to create a reference. It can be a direct value or a cell reference containing the value. The row number must be a positive integer.
‘column_num‘ – This is also a required argument that specifies the column number of the cell of which we want to create a reference. The column number must be a positive integer and it can either be a direct value or a cell reference containing the value.
‘abs_num‘ – This is an optional argument that specifies the type of reference that we want to create. Depending on the input value from 1 – 4, the return cell reference can be a relative, absolute, or combination reference.
The default value of the abs_num argument is 1 which refers to the absolute cell reference ($A$1). If abs_num is set to 2, the returned reference is a mixed reference with an absolute row and relative column (A$1). If the value of the abs_num is 3, the resulting cell reference is again a mixed reference with relative row and absolute column ($A1). Lastly, if the abs_num value is 4, the return cell reference is completely relative (A1).
‘a1‘ – This is another optional argument that specifies the reference style we want to use. It is a boolean argument where the default value is 1 or TRUE which indicates an A1 style reference (e.g., A1, B2, C3). If the value of the a1 argument is 0 or FALSE, the reference is returned in R1C1 style (e.g., R1C1, R2C3, R3C4) where R means row and C means column.
‘sheet_text – This last argument is also an optional argument that contains the worksheet name to be used as a reference. The default value of the argument is the current worksheet. If we wish to refer to an external worksheet, the input value of the sheet_text argument must be the sheet name enclosed in double quotes.
Important Characteristics of the ADDRESS Function
Some of the noteworthy features of the ADDRESS function are as follows.
- The resulting cell reference of the ADDRESS function is always a text string.
- If the value of the row_num or column_num argument is zero or negative, the ADDRESS function throws a #VALUE! error.
- When the value of the abs_num argument is anything other than 1-4, the function returns a #VALUE! error.
Examples of ADDRESS Function
ADDRESS function is a powerful tool used when dealing with several worksheets and large datasets. Using the examples mentioned below, let’s discover more applications of the said function.
Example 1 – Simple Use of ADDRESS Function
In this example, we will explore the various arguments of the ADDRESS function and its usage by providing examples with different input values. This will allow us to gain a comprehensive understanding of how to utilize each argument and achieve the intended result.
Each column in the example displays distinct input values for each argument, providing a clear visual representation of the various options available for customization of the ADDRESS function. To showcase the role of the optional arguments, we have set the row and column numbers to 2 (as shown in columns B and C) in all the examples. Row 2 and column 2 refer to cell B2. Let’s see what types of cell references we can get for B2 with and without ADDRESS function’s different optional arguments.
In the first example, the ADDRESS function is used with only the mandatory arguments. The row and column numbers are set to 2, and the remaining arguments will assume their default values. The resulting output is a simple absolute reference in A1 style, which denotes the second column ‘B’ with the second row 2, resulting in the output «$B$2».
In the next two examples, the ADDRESS function is used with the abs_num argument set to 2 and 3, respectively. As a result, a mixed cell reference is generated i.e. B2. In the fourth example, the abs_num argument is set to 4, resulting in a relative reference to the second row and second column, which is «B2». These examples showcase the versatility of the abs_num argument in customizing the type of cell reference generated by the ADDRESS function.
The next two examples will help us understand the usage of the a1 argument. The row and column numbers are set to 2. In both cases, the value of the a1 argument is 0. When the abs_num is set to 1, the function returns an absolute cell reference in R1C1 style whereas when it is set to 4, the function results in a relative cell reference in R1C1 style which is «R[2]C[2]».
The last example generates an absolute reference in A1 style that points to cell B2, with the added text string «ADDRESS Function» as the sheet name.
Now that we have covered the basic functionality of the ADDRESS function, let’s explore more examples where we combine it with other functions such as INDIRECT and MATCH. This will allow us to further enhance the flexibility and usefulness of the ADDRESS function in different contexts.
Example 2 – Finding Address of First Cell in Range
When dealing with large data, it is often a neat trick to determine the address of the first and the last cell of the range. The ADDRESS function can be used to get the cell reference pointing to the first and the last cell. To better understand how it works, we have a sample data set containing the country names, their capital, and their currency.
To get the address of the intended cells, we require input values of the first two arguments of the ADDRESS function which are row_num and column_num. We can use a combination of ROW, COLUMN, and MIN functions to get the values of the said arguments.
The ROW and COLUMN functions will return the row and column numbers from the given range. When wrapped in the MIN function, we will get the smallest row and column number. Let’s put the concept in Excel form. The formula used will be as follows.
=ROW(B4:D18)
Now that we have all the row numbers from the cell range, using the MIN function, we can fetch the smallest row number. The formula will be as follows.
=MIN(ROW(B4:D18))
Now that we have the first or smallest row number, we can use this as an input value for the first argument row_num. Using the same logic, we can find the first column number using the following formula.
=COLUMN(B4:D18)
Adding the MIN function to the above formula, we will have the smallest or the first column number in the cell range.
=MIN(COLUMN(B4:D18))
Now that we have both the input values, let’s compile the final formula.
=ADDRESS(MIN(ROW(B4:D18)),MIN(COLUMN(B4:D18)))
That’s how you get the address of the first cell from a cell range using the ADDRESS function.
Example 2.1 – Finding Address of Last Cell in Range
Using the same logic, we can also determine the address of the last cell from a cell range. The only difference would be that then we were trying to locate the smallest or the first row or column number for the first cell address, whereas, for the last cell address, we will locate the maximum or the last row and column number.
In Excel form, the function will look like this.
=ADDRESS(MAX(ROW(B4:D18)),MAX(COLUMN(B4:D18)))
Here, we have the reference of the last cell in A1 form. If we wish to get the desired cell reference in R1C1 style, we can set the value of the a1 argument to 0. The updated formula will be as follows.
=ADDRESS(MAX(ROW(B4:D18)),MAX(COLUMN(B4:D18)),1,0)
When dealing with large datasets, the R1C1 referencing is easier to understand. Try to find the first and last cell addresses on a bigger database while practicing.
Example 3 – Getting Cell Value with Given Row and Column
In this example, we have a dataset of random color names. By entering the row and column number, we want to extract the value from that cell. This can be helpful when we randomly wish to extract a value from a larger dataset.
The user can enter any row number and column number in cells G1 and G2, respectively. Using the ADDRESS function, combined with the INDIRECT function, we can pull out the value from the intended cell. The INDIRECT function will take the resulting text string from the ADDRESS function and return the value of the corresponding cell.
The formula used will be as follows.
=INDIRECT(ADDRESS(G1,G2))
This is an excellent way of also creating dynamic cell references and extracting data from large datasets. A similar result can also be achieved using INDEX and MATCH functions.
Now, what if instead of row and column numbers, the user wishes to determine the position of the largest value in a dataset? Let’s find out in the next example.
Example 4 – Extracting Cell Address with Highest Value
In this scenario, we have the data containing monthly sales made by each salesman. Usually, such datasets are large, and it is difficult to find the exact cell reference to the desired data. Here, we wish to find the highest sales done each month and pull out its exact cell reference.
To find the highest sales value in a month, we need to find the largest value in columns C. The formula used will be as follows.
=MAX(C3:C12)
Now that we have the highest sales value for January month. We can use the MATCH function to find the position of the highest value in that column. The formula used will be as follows.
=MATCH(MAX(C3:C12),C:C,0)
We now know that in January month, the highest sales value lies on row 11. We can now use the ADDRESS function to extract the exact cell reference using the return value of the MATCH function as the input value for row_num and stating column_num as per the month which will be 3 for January. The formula used will be as follows.
=ADDRESS(MATCH(MAX(C3:C12),C:C,0),3)
We now have the desired result. We can go a step ahead and extract the name of the salesperson who made the highest sales each month.
To get that information, instead of using the column_num for the month, we can use 2 as the input value for column_num and then wrap it in the INDIRECT function as we did in the above example. The formula used will be as follows.
=INDIRECT(ADDRESS(MATCH(MAX(C3:C12),C:C,0),2))
Using the same logic, we can also extract the cell address with the lowest value in a dataset.
Explore more useful ways to use the ADDRESS function in Excel, while we curate yet another intriguing Excel function for you.
The ADDRESS function returns the absolute address of the cell based on a specified row and column number. The cell address is returned as a text string. For example, “=ADDRESS(1,2)” returns “$B$1.” An inbuilt function of Excel, it is categorized under the lookup and reference functions.
Table of contents
- Address Function in Excel
- Syntax of the ADDRESS Function
- How to Use the Address Function in Excel? (With Example)
- How to Use the INDIRECT Function to Pass the Address?
- Frequently Asked Questions
- Recommended Articles
Syntax of the ADDRESS Function
The syntax is stated as follows:
You are free to use this image on your website, templates, etc, Please provide us with an attribution linkArticle Link to be Hyperlinked
For eg:
Source: Address Function in Excel (wallstreetmojo.com)
The function accepts the following mandatory arguments:
- Row_Num: This is the row number used in the cell reference. The “row_num=1” represents row 1.
- Column_Num: This is the column number used in the cell reference. The “column_num= 2” represents column B.
The function accepts the following optional arguments:
- Abs_num (absolute number): This is the type of cell referenceCell reference in excel is referring the other cells to a cell to use its values or properties. For instance, if we have data in cell A2 and want to use that in cell A1, use =A2 in cell A1, and this will copy the A2 value in A1.read more–absolute or relative. If this parameter is omitted, the default value is set at 1 (absolute). It can have any of the following values depending on the requirement:
- A1: This is the reference style used. It can be either “A1” (1 or true) or “R1C1” (0 or false). If this parameter is omitted, the default style is “A1.”
- Sheet_text: This is the name of the sheet used in the cell address. If this parameter is omitted, no worksheet name is used.
How to Use the Address Function in Excel? (With Example)
You can download this Address Function Excel template here – Address Function Excel template
Let us consider the various possible outcomes of the ADDRESS function, as shown in the succeeding image.
The observations of a few rows are explained as follows:
1. The Third Row
- The “row=1” and “column=4.”
- The formula is “=ADDRESS(1,4).”
- By default, the parameters “absolute number” and “reference type” are set at 1.
- The result is an absolute address with an absolute row and an absolute column, i.e., “$D$1.”
- The “$D” signifies the absolute column “4” and “$1” signifies the absolute row “1.”
2. The Fifth Row
- The “row=5,” “column=20,” and “abs_num=2.”
- The ADDRESS formula can be rewritten in a simpler form as “=ADDRESS(5,20,2).”
- The reference style is set at 1 (true) when it has not been defined explicitly.
- The result is “T$5,” which has an absolute row ($5) and a relative column (T).
3. The Seventh Row
- We pass all the arguments of the ADDRESS function, including the optional ones.
- The “row=10,” “column=9,” “abs_num=4,” “A1=1,” and “sheet_name=Example1.”
- The address formula can be rewritten in a simpler form as “=ADDRESS(10,9,4,1,”Example1″).”
- The result is “Example1!I10.”
- Since the “absolute number” parameter is set at 4, the result is a relative reference (“I10”).
How to Use the INDIRECT Function to Pass the Address?
The reference of a cell can be derived with the help of the ADDRESS function. However, if we are interested in obtaining the value stored in the Excel address of cells, we use the INDIRECT functionThe INDIRECT excel function is used to indirectly refer to cells, cell ranges, worksheets, and workbooks.read more. With this function, we can get the actual value through reference.
Syntax of the INDIRECT Function
The function accepts the following arguments:
- Ref_text: This is the cell reference supplied in the form of a text string.
- A1: This is a logical value that specifies the style of reference. It can be either “A1” (true or omitted) or “R1C1” (false).
The first argument is mandatory, while the second is optional.
Let us consider an example.
The data is given in the following image. We want to find the value of the cell reference passed in the INDIRECT function.
In the first observation, the “ADDRESS=$D$3.” We rewrite the function as “=INDIRECT(A3).”
In cell D3, under the sample data, the value is “Mathematics.” This is the same as the result of the INDIRECT function in cell B3.
Let us consider another example in which the reference style is R7C5.
Here, we must set the “ref_type” to “false” (0), so that the INDIRECT function can read the reference style.
The output of “=INDIRECT(A8,0)” is 87%.
Frequently Asked Questions
What are the uses of the ADDRESS function of Excel?
The uses of the function are listed as follows:
– It is used to address the first or the last cell in a range.
– It helps convert a column number to a letter and vice versa.
– It is used to construct a cell reference within a formula.
– It helps find the cell value from the row and column number.
– It returns the address of the cell with the highest value.
How does the ADDRESS function return the address of the cell with the highest value?
The ADDRESS function is used in combination with the MATCH functionThe MATCH function looks for a specific value and returns its relative position in a given range of cells. The output is the first position found for the given value. Being a lookup and reference function, it works for both an exact and approximate match. For example, if the range A11:A15 consists of the numbers 2, 9, 8, 14, 32, the formula “MATCH(8,A11:A15,0)” returns 3. This is because the number 8 is at the third position.
read more to return the cell address with the highest value. The formula is stated as follows:
“=ADDRESS(MATCH(MAX(B:B),B:B,0),COLUMN(B2))”
The MAX functionThe MAX Formula in Excel is used to calculate the maximum value from a set of data/array. It counts numbers but ignores empty cells, text, the logical values TRUE and FALSE, and text values.read more returns the maximum value from the range “B:B.” The MATCH function looks for that maximum value and returns the row number (index). The column returns the column number of “B2.”
How does the ADDRESS function return the complete address of a named range?
The formula to return the full address of a named range is stated as follows:
“=ADDRESS(ROW(range), COLUMN(range)) & “:” & ADDRESS(ROW(range) + ROWS(range)-1, COLUMN(range) + COLUMNS(range)-1)”
“Range” is the named range whose address is required.
If the range address is required as a relative reference, the “abs_num” argument is set at 4. The formula can be rewritten as follows:
“=ADDRESS(ROW(range), COLUMN(range), 4) & “:” & ADDRESS(ROW(range) + ROWS(range)-1, COLUMN(range) + COLUMNS(range)-1, 4)”
- The ADDRESS function creates a cell address from a given row and column number.
- The syntax of the ADDRESS function is–“ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text]).”
- The “row_num” and “column_num” are mandatory arguments, while “abs_num,” “A1,” and “sheet_text” are optional arguments.
- The “abs_num” parameter can be set as follows:
- 1 or omitted–Absolute reference
- 2–Absolute row, relative column
- 3–Relative row, absolute column
- 4–Relative reference
- The reference style can be set at either “A1” (1 or true) or “R1C1” (0 or false).
- The default reference style is “A1.”
- The INDIRECT function helps obtain the value stored in the Excel address of cells. The syntax of the INDIRECT function is–“INDIRECT(ref_text, [a1]).”
Recommended Articles
This has been a guide to Address Excel Function. Here we discuss how to use the Address Formula in Excel along with step by step examples and downloadable Excel templates.`
- Excel Convert FunctionAs the word itself, the Excel CONVERT function defines that it can convert the numbers from one measurement system to another measurement system.read more
- Excel VBA MonthVBA Month Function is an inbuilt function that is used to extract the month from a date. The output of this function is an integer ranging from 1 to 12. Only the month number is extracted from the supplied date value by this function.read more
- PMT Excel Function
- Page Setup in ExcelTo set up a page in MS excel, in the page layout tab, click on the small arrow mark under the page setup group> A dialogue box will open, click on «fit to 1 page» option>go to print preview option and choose landscape mode>save changes, it’s done.
read more
This tutorial demonstrates how to use the ADDRESS Function in Excel and Google Sheets to return a cell address as text.
What is the ADDRESS Function?
The ADDRESS Function Returns a cell address as text.
Usually, in a spreadsheet, we provide a cell reference, and a value from that cell is returned. Instead, the ADDRESS Function builds the name of a cell.
The address can be relative or absolute, in A1 or R1C1 style, and may or may not include the sheet name.
ADDRESS – Basic Example
Let’s say that we want to build a reference to the cell in 4th column and 1st row, aka cell D1. We can use the layout pictured here:
Our formula in A3 is simply
=ADDRESS(B1, B2)
Note: By default the ADDRESS Function returns an absolute cell reference. By updating an optional argument we can change the cell references from absolute to relative. Let’s review this and other inputs to the ADDRESS Function…
ADDRESS Function Syntax and Inputs:
=ADDRESS(row_num,column_num,abs_num,C1,sheet_text)
row_num – The row number for the reference. Example: 5 for row 5.
col_num – The column number for the reference. Example: 5 for Column E. You can not enter “E” for column E
abs_num – [optional] A number representing if the reference should have absolute or relative row/column references. 1 for absolute. 2 for absolute row/relative column. 3 for relative row/absolute column. 4 for relative.
a1 – [optional]. A number indicating whether to use standard (A1) cell reference format or R1C1 format. 1/TRUE for Standard (Default). 0/FALSE for R1C1.
sheet_text – [optional] The name of the worksheet to use. Defaults to current sheet.
ADDRESS with INDIRECT
We can combine ADDRESS with the INDIRECT Function. Consider this layout, where we have a list of items in column D.
We can generate a reference to D1 like so
=ADDRESS(B1, B2)
=$D$1
By putting the address function inside an INDIRECT function, we’ll be able to use the generated cell reference and use it in a practical way. The INDIRECT will take the reference of “$D$1” and use it to fetch the value from that cell.
=INDIRECT(ADDRESS(B1, B2)
=INDIRECT($D$1)
="Apple"
Note: While the above gives a good example of making the ADDRESS Function useful, it’s not a good formula to use normally. It required two functions, and because of the INDIRECT it will be volatile in nature. A better alternative would have been to use the INDEX Function like this:
=INDEX(1:1048576, B1, B2)
Address of Specific Value
Sometimes when you have a large list of items, you need to know the location of an item in the list. Consider this table of scores from students. We’ve gone ahead and calculated the min, median, and max values of these scores in cells E2:G2.
Let’s say we wanted to find these values. We have a two options:
- Filter our table for each of these items.
- Use the MATCH Function with ADDRESS. Remember that MATCH will return the relative position of a value within a range.
Our formula in E3 then is:
=ADDRESS(MATCH(E2, $B:$B, 0), 2)
We can copy this same formula across to G3, and only the E2 reference will change since it’s the only relative reference. Looking back at E3, the MATCH function was able to find the value of 98 in the 5th row of column B. Our ADDRESS function then used this to build the full address of “$B$5”.
Translate Column Letters from Numbers
So far, all of the examples have returned an absolute reference. Let’s return a relative reference instead.
Below, in column B, we want to calculate the column letter corresponding to the column number in column A.
We will use the ADDRESS Function to return a reference on row 1 in relative format, and then we’ll remove the “1” from the text string so that we just have the letter(s) left. Consider in our table row 3, where our input is 13. Our formula in B3 is
=SUBSTITUTE(ADDRESS(1, A3, 4), "1", "")
Note that we’ve given the 3rd argument within the ADDRESS function, which controls the relative vs. absolute referencing. The ADDRESS function will output “M1”, and then the SUBSTITUTE function removes the “1” so that we are left with just the “M”.
Find the Address of Named Ranges
In Excel, you can name range or ranges of cells, allowing you to simply refer to the named range instead of the cell reference.
Most named ranges are static, meaning they always refer to the same range. However, you can also create dynamic named ranges that change in size based on some formula(s).
With a dynamic named range, you might need to know the exact address that your named range is pointing to. We can do this with the ADDRESS Function.
In this example, we’ll look at how to define the address for our named range called “Grades”.
Let’s bring back our table from before:
To get the address of a range, you need to know the top left cell and the bottom left cell. The first part is easy enough to accomplish with the help of the ROW and COLUMN functions. Our formula in E1 can be
=ADDRESS(ROW(Grades), COLUMN(Grades))
The ROW Function returns the row of the first cell in our range (which will be 1), and the COLUMN will do the same similarly for the column (also 1).
This formula will get the bottom-right cell
=ADDRESS(ROWS(Grades)-ROW(Grades)+1, COLUMNS(Grades)-COLUMN(Grades)+1)
We used the ROWS and COLUMNS functions to calculate the height and width of the range. By subtracting the first row and column numbers, we calculate the last cell in the range
Finally, to put it all together into a single string, we can simply concatenate the values together with a colon in the middle. Formula in E3 can be
=E1 & ":" & E2
Note: While we were able to determine the address of the range, our ADDRESS function determined whether to list the references as relative or absolute. Your dynamic ranges will have relative references that this technique won’t pick up.
2nd Note: This technique only works on a continuous names range. If you had a named range that was defined as something like this formula
=A1:B2, A5:B6
then the technique above would result in errors.
ADDRESS function in Google Sheets
The ADDRESS function works exactly the same in Google Sheets as in Excel.
Purpose
Create a cell address from a row and column number
Return value
A cell address in the current or given worksheet.
Usage notes
The ADDRESS function returns the address for a cell based on a given row and column number. For example, =ADDRESS(1,1) returns $A$1. ADDRESS can return a relative, mixed, or absolute reference, and can be used to construct a cell reference inside a formula. Note that ADDRESS returns a reference as a text value. If you want to use this text inside a formula reference, you will need to coerce the text to a proper reference with the INDIRECT function.
Note: ADDRESS is a special purpose function and is not necessary in most formulas. For example, to retrieve a value at a specific row and column location, you can use INDEX and MATCH.
The ADDRESS function takes five arguments: row, column, abs_num, a1, and sheet_text. Row and column are required, other arguments are optional. The abs_num argument controls whether the address returned is relative, mixed, or absolute, with a default value of 1 for absolute. The a1 argument is a Boolean that toggles between A1 and R1C1 style references with a default value of TRUE for A1 style references. Finally, the sheet_text argument is meant to hold a sheet name that will be prepended to the address.
ABS options
The table below shows the options available for the abs_num argument for returning a relative, mixed, or absolute address.
abs_num | Result |
---|---|
1 (or omitted) | Absolute ($A$1) |
2 | Absolute row, relative column (A$1) |
3 | Relative row, absolute column ($A1) |
4 | Relative (A1) |
Examples
Use ADDRESS to create an address from a given row and column number. For example:
=ADDRESS(1,1) // returns $A$1
=ADDRESS(1,1,4) // returns A1
=ADDRESS(100,26,4) // returns Z100
=ADDRESS(1,1,1,FALSE) // R1C1
=ADDRESS(1,1,4,TRUE,"Sheet1") // returns Sheet1!A1