describe
The INDIRECT function returns the reference specified by a text string.
If you type a reference to B1 in an Excel formula, Excel will understand that this refers to cell B1. However, Excel cannot understand the text string "B1" as a reference. Therefore, if the cell reference is in the form of a text string, you need to use the INDIRECT function to convert it to an actual cell reference.
Immediately evaluate the reference to display its content. If you want to change a reference to a cell in a formula without changing the formula itself, use INDIRECT.
grammar
INDIRECT (ref_text, [a1])
debate
Argument | describe | Required/Optional |
---|---|---|
Ref_text | A reference to a cell that contains an A1 style reference, an R1C1 style reference, defined as the name of the reference, or a reference to the cell as a text string. See notes below. |
Required |
A1 | Specifies which reference type of logical value is contained in the cell ref_text. If a1 is TRUE or omitted, ref_text is interpreted as an A1style reference. If a1 is FALSE, ref_text is interpreted as an R1C1-style reference. |
Optional |
Notes
-
If ref_text is not a valid cell reference, INDIRECT returns the #REF! error value
-
If ref_text refers to another workbook (external reference), the other workbook must be opened. If the source workbook is not open, INDIRECT returns #REF!. error value
-
If the row range referenced by ref_text exceeds the row range of 1,048,576 or the column range of 16384 (XFD), INDIRECT returns a #REF! error
applicability
Excel 2007,Excel 2010,Excel 2013,Excel 2016