Call us at:   1.805.498.7162    

Microsoft Excel workshops for business, engineering and science Innovative Microsoft Excel software design View our customer list from our over 14 years in business Phone numbers, email address and contact form Learn about EMAGENIT Home page containing upcoming Microsoft Excel classes and other EMAGENIT services Self-study Microsoft Excel manuals for business, engineering and science Microsoft Excel consulting services Microsoft Excel training schedule and prices

Home > Excel Resources > Excel Address Function

Microsoft Excel ADDRESS Function Help

Microsoft Excel ADDRESS Function Help

ADDRESS Function Tutorial

The ADDRESS Function returns a cell reference in text form like "A1" based on a specified row and column position that you give it.

 
Function Specifics

 

What is the Microsoft Excel ADDRESS Function?

The ADDRESS function is a computer program that you run from a worksheet cell formula. It returns a cell reference in text form like "A1" based on a specified row and column position that you give it. ADDRESS is used when you have a set of row and column positions and you need to translate this into a cell reference. This need arises many times when you are developing formulas that count data rows or columns on the worksheet or that are searching for something on the worksheet like text, numbers or dates down a column or across a row. The formulas calculating these values usually generate numbers like row or column position not a cell address. So you need some function to convert those numbers into valid cell references so you can then use them as inputs to formulas or functions like the SUM function.

Once the cell reference text is generated by the ADDRESS function, the ADDRESS worksheet function is used with the INDIRECT function being nested inside it as an argument. The INDIRECT function takes the reference text that ADDRESS produces and changes it to a valid reference. Remember ADDRESS only produces text which is not a valid cell reference. You must use INDEX to flip it. The ADDRESS function is key to building range or cell references on the fly (i.e. during calculation). This has many advantages because if your formulas are smart enough to changing worksheet conditions, it eliminates you having to constantly change the references in your formulas if cell positions shift or data changes size on the worksheet. The ADDRESS function is commonly used with the & operator in a formula to help splice together range references that can be used as arguments for functions like SUM or VLOOKUP. The & operator is a formula operator that performs string concatenation (i.e. splice values together).

 

How Do You Type the ADDRESS Worksheet Function in a Formula?

Whenever you type a formula in a worksheet cell, this is called syntax or grammar. The general ADDRESS function syntax has a format like this when you type it in a worksheet cell:

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

Where row_num, column_num, [abs_num], [a1], [sheet_text]  are called the function argument list. Remember, you are running a computer program at this point so the program needs information to operate and that is why there is an argument list. When you see an argument list and you see square brackets [ ] around the argument name, this means the argument is optional and you do not have to include it when typing unless you need it. So for the syntax above, you need to include 2 arguments for the ADDRESS worksheet function when typing it in a worksheet cell formula in order for it to calculate correctly. What argument values can be used are discussed below. Remember functions expect certain things in their argument lists, if you do not put the correct information in the list they will generate an error when run.

ADDRESS Worksheet Function Argument Definitions

  • row_num: This argument can be a constant number, cell reference, formula or function that specifies the row number to use in the cell reference.

  • column_num: This argument can be a constant number, cell reference, formula or function that specifies the column number to use in the cell reference.

  • abs_num (Optional): This argument can be a constant number, cell reference, formula or function that specifies the type of cell reference to return. This argument takes a number between 1 and 4. Use the table below as guidance for the proper number to generate.

abs_num Explanation
1 or omitted Absolute cell reference returned
2 Absolute row; relative column cell reference returned
3 Relative row; absolute column cell reference returned
4 Relative
  • A1 (Optional): This argument can be a constant TRUE/FALSE, cell reference, formula or function that generates a TRUE or FALSE value that specifies the A1 reference style (TRUE) or the R1C1 reference style (FALSE). 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.

  • sheet_text (Optional): This argument can be a text constant, cell reference, formula or function that generates a sheet name value that specifies the name of the worksheet to be used as the external reference. For example, the formula =ADDRESS(1,3,,,"Sheet4") returns Sheet4!$C$1. If the sheet_text argument is omitted, the address returned by the function refers to a cell on the current sheet.

 

How Do You Run the ADDRESS Function?

Since the ADDRESS function is a computer program, it runs when you press Enter to enter the formula that contains it. If any of the arguments are wrong, the function will return an error.

Need Help?

Let our Microsoft Excel workshops below show you how to use the worksheet function that you see on this page and more. They are unlike anything taught on the training market today.

Microsoft Excel Workshops -  Free RepeatsFree Workshop Repeats

All of our workshops come with free repeats. We understand learning takes time. Details

Intermediate Microsoft Excel Workshop

Intermediate Microsoft Excel WorkshopLearn productive Microsoft Excel solution skills that will save you time and effort in your daily Excel tasks. Drawing from our 15 years' of experience, our 1-day "hands-on" Microsoft Excel workshop shows you how to use Excel's formulas, cell naming features, worksheet functions like VLOOKUP, built-in data tools, charts and pivot tables to solve your daily business problems. Complete Outline and Signup

Advanced Microsoft Excel Workshop

Advanced Microsoft Excel WorkshopLearn how to use the advanced Microsoft Excel features that you need to succeed in your business. Drawing from our 15 years' of experience, our 1-day "hands-on" Excel workshop shows you how to create advanced formulas that think and scan, use Excel's advanced data tools to extract external data, construct advanced pivot tables and pivot charts, and use ActiveX controls to build dashboards. It also provides an introduction to VBA macros. Complete Outline and Signup

Advanced Microsoft Excel for Engineers and Scientists

Microsoft Excel Workshop for Engineers and ScientistsLearn how to use Microsoft Excel to create advanced engineering and science tools. Drawing from our 15 years' of experience, our 1-day "hands-on" workshop shows how to create advanced formulas that think and scan, perform numerical analysis tasks on the worksheet, use Excel's advanced data and statistical tools, construct advanced pivot tables, build and optimize system models, and use ActiveX controls to build technical dashboards. It also provides an introduction to VBA macros. Taught by an engineer. Complete Outline and Signup

 

What Do I Type for an ADDRESS Function Argument?

When typing the ADDRESS function in a worksheet cell formula, you need to replace the argument list with arguments separating each one with a comma (,). Some typical arguments you can use are:

Argument Type Cell Formula Example Explanation
Number Constants =ADDRESS(1,1) Returns the cell reference $A$1 in absolute reference. This does not do anything because it is a piece of text not a cell reference that returns a value.
Cell References and Formulas =ADDRESS(A1,B1+2) Returns the cell reference specified by the numbers generated by A1 and B1+2. This does not do anything because it is a piece of text not a cell reference that returns a value.
Nested Functions =INDIRECT(ADDRESS(1,1)) Returns the value in cell $A$1. ADDRESS is used to create the cell reference text and INDIRECT flips it to a valid cell reference.
Nested Functions =SUM( INDIRECT( ADDRESS(1,1) & ":" & ADDRESS(COUNTA(A1:A100),1) )) If A1 is filled to A4 with numbers then the formula sums the values in the range $A$1:$A$4. ADDRESS is used to create the range reference text, INDIRECT flips it to a valid range reference before SUM uses it as an argument. COUNTA figures out how many occupied cells are in the A1 to A100 range thus providing the end row number of the table. The & is used to splice everything together to form a range reference.

 

Additional ADDRESS Function Examples

The worksheet seen below contains some typical worksheet formulas that run the ADDRESS worksheet function. Pay close attention to the argument list and the syntax used to write the formula.

  A B C D E
1 Sales        
2 $100.00

=SUM( INDIRECT( ADDRESS(1,1) & ":" & ADDRESS(COUNTA(A1:A100),1) ))

Sums the values between cells A1 and A6 on the worksheet which is $1600.00. ADDRESS is used to create the range reference text, INDIRECT flips it to a valid range reference before SUM uses it as an argument. COUNTA figures out how many occupied cells are in the A1 to A100 range thus providing the end row number of the table. The & is used to splice everything together to form a range reference.

3 $200.00      

 

4 $300.00        
5 $400.00        
6

$600.00

       
7          
8          
9 Region Q1 Q2    
10 A $1,000,000.00 $2,000,000.00    
11 B $3,000,000.00 $4,000,000.00    
12          
13 Q1

=SUM( INDIRECT( ADDRESS(9,MATCH("Q1",9:9,0)) & ":" & ADDRESS(11, MATCH("Q1",9:9,0)) ))

Sums the values between cells rows 9 and 11 on the worksheet for Q1 which is $4,000,000.00. ADDRESS is used to create the range reference text, INDIRECT flips it to a valid range reference before SUM uses it as an argument. MATCH figures out how the column position fro the range reference. The & is used to splice everything together to form a range reference.

 

Back to Help Topics

 

 

 

 

Site Map

Copyright 2002-2014 EMAGENIT All Rights Reserved