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 INDIRECT Function

The Microsoft Excel INDIRECT function converts a text string to a valid reference.


Syntax

=INDIRECT (ref_text, [a1])


Arguments

Ref_text (the required argument): It is the reference to a cell that contains one of the below:

  • An A1-style reference.
  • An R1C1-style reference.
  • A named range defined as a reference.
  • A reference to a cell in the form of text string.

[a1] (the optional argument): It is a logical value to assign the style of ref_text.

  • If a1 is ture or omitted, ref_text is interpreted as an A1-style reference.
  • If a1 is FALSE, ref_text is interpreted as an R1C1-style reference.

Return value

The INDIRECT function will return a valid reference specified by a text string.


Function notes:

The INDIRECT function will return the #REF! error value when:

  • The ref_text refers to another workbook that is not open;
  • The ref_text refers to a cell range outside the row limit of 1,048,576 or the column limit of 16,384(XED).

Examples

The below examples is going to illustrate the common usage of INDIRECT function in Excel.

Example 1: INDIRECT cell reference

As below screenshot shown, the INDIRECT function =INDIRECT(B2) converted the text string in B2 into a valid cell reference, and then return the value of this cell reference (D2) as the final result.

Notes:

  • If the ref_text is enclosed in double quotation marks such as =INDIRECT("B2"), it will get the value in B2 directly.
  • You can also combine a text string and a cell reference within the INDIRECT function as the below screenshot shown.

Here the INDIRECT function concatenates the ref_text (says D) and the value in B2 (says 2) as a valid cell reference D2, and returns the value in D2 as the result.

Example 2: INDIRECT with named range

The INDIRECT function also can directly refer to named ranges. As the below screenshot shown, there is a table containing several named ranges, and now you need to sum values in a certain named range (says Mon) with the combination of SUM and INDIRECT functions, please do as follows.

1. Enter the range’s name into a cell, here I enter Mon into cell C12. Select a blank cell, copy below formula into it and press the Enter key.
=SUM(INDIRECT(C12))

Now you have summed all values in the specified named range (Mon).


More Examples

How to extract unique values from multiple columns in Excel?


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.