Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

Excel ADDRESS function

doc address function 1

Description

Syntax and Arguments

Usage and Examples


Description

The ADDRESS function returns the cell address reference as text, based on the given column number and row number. For example, the formula =ADDRESS(1,1) returns $A$1. The ADDRESS function can return relative or absolute address, and, return in A1 or R1C1 style, also, the sheet name can be included in the result.

syntax and arguments

Formula syntax

ADDRESS(row_num, column_num, [abs_num], [a1], [sheet_text])

Arguments

  • Array: Required, a range of cells or an array of constants you retrieve from. If the array argument is a column of cells, row_num is required, if array is a row of cells, col_num is required.
  • Row_num: Required. A value that indicates the row number to use in the cell reference.
  • Col_num: Required. A value that indicates the column number to use in the cell reference.
  • Abs_num: Optional. A numeric value that decides the type of reference to return.
  • A1: Optional. A logical value that specifies reference style in A1 or R1C1.
  • Sheet_text: Optional. The name of worksheet to use, and it will refer to current sheet if omitted. For example, ADDRESS(1,1,,,”Sheet2”), returns Sheet2!$A$1.

Remarks:

Abs_num argument
The type of reference Example
1 or omitted Absolute row and column $A$1
2 Relative row, absolute column A$1
3 Absolute row, relative column $A1
4 Relative row and column A1
A1 argument Style Description
1 or TRUE or omitted A1 Columns are labeled alphabetically, and rows are labeled numerically
0 or False R1C1 Both columns and rows are labeled numerically

Return Value:

ADDRESS function returns a cell reference as text.

Usage and Examples

Here some examples are provided to explain how to use the INDEX function.

Example 1-Basic usage: Obtain cell address from given column and row

1) If you just enter the row and column arguments in the ADDRESS function,
=ADDRESS(A2,B2)
A2 and B2 are the numeric values of row and column, and it returns
$A$1
doc address function 2


2) If you enter the row, column and abs arguments in the ADDRESS function,
=ADDRESS(A3,B3,C3)
C3 is the abs arguments, 2 indicates to display reference as relative row and absolute column, and it returns
A$1
doc address function 3


3) If the fourth argument is entered in the ADDRESS function,
=ADDRESS(A4,B4,C4,D4))
D4 controls the reference style, A1 or R1C1, 0 or False will display result in A1 style, 1 or True will show result in R1C1 style, here it returns
R1C1
doc address function 4


4) If all the arguments are entered in the ADDRESS function,
=ADDRESS(A6,B6,C6,D6,E6)
E6 is the fifth argument which indicates the sheet refer to, it returns
BasicUsage!$A1
doc address function 5


Example 2–Cell value from row and column number

The ADDRESS function returns the cell address as text, if you want to show the cell value in the cell address, you can to combine the ADDRESS function and the INDIRECT function to achieve this goal.

Here is a formula in B4 which will obtain the cell value in B1.

=INDIRECT(ADDRESS(B2,B3))
doc address function 6


Example 3–Get address of max value

In this case, I introduce how to use the ADDRESS function to get the cell address of max value.

Firstly, you need to get the max value with this formula =MAX(B2:B6).
doc address function 7

Then use the formula

=ADDRESS(MATCH(E1,B1:B6,0),COLUMN(B1))

MATCH(E1,B1:B6,0) will find the row number, E1 is the max value, B1:B6 is the column you find max value from;

COLUMN(B1) will find the column number, B1 is the column you find value from.
doc address function 8

Note: This formula can only find the max value in one column.


Example 4–Return column letter based on column number

In this example, I will introduce how to use the ADDRESS function to return column letter based on a given column number.

For example, you want to get the column letter for the 29th column, use below formula:

=SUBSTITUTE(ADDRESS(1,A3,4),"1","")

What the arguments mean:

ADDRESS function: 1 is row 1, A3 is the column number whose relative column letter you want to get, 4 is abs argument which returns reference in relative, in this part, the ADDRESS function gets result AC1;

SUBSTITUTE function: replace 1 with empty string, so the final result is
AC
doc address function 9

If you want to get the column letter of current cell, you can use this formula

=SUBSTITUTE(ADDRESS(1,COLUMN(),4),"1","")
doc address function 10


Sample File
doc sample


Excel Productivity Tools

300 Advanced Features Help You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 70% time.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.

Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Office Tab Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.