Questions tagged [excel-indirect]

Returns the reference specified by a text string. References are immediately evaluated to display their contents.

Syntax

INDIRECT(ref_text, a1)

Ref_text

A reference to a cell that contains an A1-style reference, an R1C1-style reference, a name defined as a reference, or a reference to a cell as a text string.

  • If ref_text is not a valid cell reference, INDIRECT returns the #REF! error value.
  • If ref_text refers to another workbook (an external reference), the other workbook must be open. If the source workbook is not open, INDIRECT returns the #REF! error value.
  • If ref_text refers to a cell range outside the row limit of 1,048,576 or the column limit of 16,384 (XFD), INDIRECT returns a #REF! error.

Note:

This behavior is different from Excel versions earlier than Microsoft Office Excel 2007, which ignore the exceeded limit and return a value.

A1

A logical value that specifies what type of reference is contained in the cell ref_text.

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

Reference links


Tag wiki credits to Microsoft Office documentation of function.

290 questions
1
vote
1 answer

How can I use structured references to identify column and use row values in the identified column as criteria?

I have an Excel 2013 table, called 'student_courses' with columns: stu_id, stu_major, stu_course, and a calculated column named validated_crs. I am trying to create a formula for the calculated column named validated_crs that evaluates every…
1
vote
0 answers

Why does INDIRECT only display value of first cell in a range?

When I put the following =INDIRECT("'2016SP'!A1:A"&"2469") into an Excel cell, the cell only displays the value in the first cell of the range. I want the cell to have an array of values that I can reference later without having to re-fetch…
ermSO
  • 325
  • 1
  • 2
  • 12
1
vote
1 answer

VBA using vlookup of indirect range for formula in cell

I'm sure it's an error with the way I'm using my quotes and apostrophes but for the life of me I can't fix it. I'm running a loop in VBA to add a vlookup in an indirect range. When I just use an indirect cell based on the row number I'm in, I have…
Meghan
  • 115
  • 1
  • 1
  • 7
1
vote
3 answers

Convert Literal Text to Formula

Using MS Excel 2010: I used the CONCATENATE formula to create a text string that looks like a formula and need a formula that will convert the text string to a formula; without the use of MS Excel Paste Special function or VBA/Macro. Example: In…
Miaka3
  • 339
  • 1
  • 10
  • 27
1
vote
2 answers

Clearing out an Indirect function in excel

I have an indirect function in excel which works like it should =INDIRECT(B15) Now I would like to have it when the cell it is pulling data from is blank then the indirect cell is also blank. I thought something likes would work but it does…
flyers
  • 514
  • 2
  • 5
  • 16
1
vote
2 answers

Using Indirect function in CountIf formula to count the number of times the text string occurs in a column

Hi and thank you in advance for your help. I am trying to count the number of times a text string, for example "UML" occurs within a column. The column may contain the text by itself or it may contain the text(UML) in a list with other…
BetterEveryDay
  • 271
  • 1
  • 3
  • 6
1
vote
1 answer

INDIRECT Autocomplete woes

I have five sheets: Overview Invoice 20151017 20151019 20151202 Cell N1 on 'Overview' contains '20151017'. I'd like to use the INDIRECT function to call N1!J3 (so 20151017!J3) to the cell N3 on Overview. This sort of…
1
vote
1 answer

Dynamic VLOOKUP with INDIRECT

I need to perform a VLOOKUP with INDIRECT to a different workbook and to a specific sheet. The name and the sheetname should be dynamically entered inside the direct function (they can be found in cell H2 and H3). This is where I am having trouble.…
Jorn Theunissen
  • 191
  • 2
  • 14
1
vote
1 answer

OFFSET formula produces error when attempting dynamic sheet/cell reference

I am attempting to make a worksheet tool in Excel 2010 that will allow users to pull data from other (new) worksheets that are copied or moved to the workbook. I'm giving the OFFSET formula a try but receive an error with: =OFFSET(("'"&'Profit…
1
vote
1 answer

Use day (cell with date) in a VLOOKUP

I have a main sheet with my data and 31 possible sheets with additional data used for input for various calculations. I want to use a VLOOKUP to grab the correct data, but Iml having a hard time with the additional sheet reference. I'm hoping to…
okmred
  • 147
  • 2
  • 12
1
vote
2 answers

Getting numbers of rows in SUMIF range from different cells

I use a SUMIF function of the kind: =SUMIF('Sheet1'!D54:D63, "QueryText", 'Sheet1'!J54:J63) My problem is that the ranges D54:D63 and J54:J63 will change so I want to get the number of rows from some other cell. e.g. In cell A1 I would have 54, in…
Bart
  • 294
  • 1
  • 2
  • 10
1
vote
2 answers

VLOOKUP inside VLOOKUP formula to find table_array

Is it possible to insert a VLOOKUP inside a VLOOKUP formula, to search for a specific table_array? This is the formula I want to use: =VLOOKUP($F492,CONCATENATE("'[Budget estimate Mar 2016…
Lukas
  • 392
  • 1
  • 4
  • 13
1
vote
2 answers

How to use the explicit "written" values from cells as a reference in a formula?

Say in an Excel spreadsheet I have: in column D, row 13: the number 12 in column D, row 14: the character E, and in column E, row 12: the string Hello World. In another cell, how can I combine the value from column D, row 13 (12) and column D, row…
1
vote
3 answers

Using Indirect formula in Excel to get the product of 1 + Cell Range

I'm trying to use Indirect with an array formula to get the product of 1 + a cell range (e.g. D5:D7). When I try to use a statement like the one below, I get a #VALUE! error. ={PRODUCT(1+INDIRECT("$D"&K5&":$D"&ROW($A4)))} In the code above, K5 will…
Dieter
  • 77
  • 1
  • 2
  • 8
1
vote
1 answer

Using INDIRECT and IF functions together with dynamic range

I'm trying to combine the INDIRECT and IF functions together so I can drag formulas down without getting a #REF! error when I run my macro. Currently, I have one sheet that has all the IF functions and another sheet that it refers to. The current IF…