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

Excel Indirect command returns #value

Using COUNTIF to count the number of times the value "HW or SW" shows up in a column. I am not sure how many rows of data I will end up with so I want to make that a variable, using INDIRECT. This formula returns a #VALUE error and I cannot figure…
PJd00
  • 13
  • 3
1
vote
1 answer

Using contents of a text cell to reference sheet

Using LibreOffice Calc, Version: 6.4.4.2 I am having trouble using a text cell's content as a sheet reference. I have used previous solutions using INDIRECT but something is still not right. The manual insertion of the sheet name in cell B6…
Monty
  • 13
  • 2
1
vote
1 answer

So apparently the INDIRECT function doesn't work with data validation in Excel when using a dynamic named range

Trying to create a drop-down list in a cell where the source is a dynamic named range. The named range refers to: =$A$2:INDEX($A:$A,COUNTA($A:$A)) Essentially the range starts at A2 and extends down to the last value in the column so that when I…
RolandDW
  • 11
  • 1
  • 2
1
vote
1 answer

Trying to use indirect to make a formula dynamic

Ok, so I am trying to do something I thought was very simple, but it is turning out to be more complicated. What I am trying to do: Take a value through an if statement and return 1 or 0. But I want to be able to change the formula by changing…
Chrispy243
  • 23
  • 2
1
vote
1 answer

Unable to use INDIRECT formula in VBA due to apostrophe in formula

I am trying to write the following formula in VBA however, since the formula contains an apostrophe, the part after the apostrophe gets commented out. Can anyone help please? Dim LastcolGen As Long, lastrowfilter As Long Range(Cells(6, 10),…
1
vote
1 answer

Trying to create 2 columns out of 1 column of data using offset and indirect

Need to take 1 column of data and create 2 columns for maximizing the amount of data on each sheet. Ive been working with offset and indirect formulas but not getting the expected results. Below are just a few examples of what ive tried and worked…
CubanGT
  • 351
  • 3
  • 11
1
vote
1 answer

How can I reference a pivot table value from another sheet by the INDIRECT function?

I use this formula: =GETPIVOTDATA("[Measures].[Sls_LY_GL_Local]",'[2019Innisfil Cube.xlsx]tmp7343'!$A$4,"[Time_Period].[Fiscal Calendar]" Now I try to reference the file name inside the "getpivotdata" function. I'd like to be able to change 1 cell…
zlauzon48
  • 33
  • 6
1
vote
2 answers

How to get for each value in one array column number in another array?

Please look the example sheet. The 'sheet1' is a gradually filled table. In column "A" some kind of ID for each entity. These identifiers are sometimes repeated. In the result I just want to know the appearance number of each ID. To solve this I…
1
vote
0 answers

Excel INDIRECT function - dynamic link not working

I'm using excel 2016 and I've created an INDIRECT formula to combine different cell values into a link but I'm getting #REF! The cell I'm trying to link to is in another workbook on a network drive and I'm using the UNC folder name. I've compared it…
1
vote
1 answer

Excel - Counting no of items in a different sheet between a certain range matching specific criteria

I have been building up an excel sheet to interrogate a data set and produce a set of metrics. I'm aiming to make the process as expandable as possible. In the links are pictures of a simple mock up data set to illustrate what I'm trying to achieve,…
JMM
  • 13
  • 3
1
vote
1 answer

Dynamic reference within Excel formula

How can I use the content in a cell in a separate formula? I have in cell A1 the following content: $BA$10:$BA$150 This content will change on a regular basis. So next time it could be: $BZ$10:$BZ$150. In a different cell, same sheet, I need to use…
n4pster
  • 103
  • 1
  • 10
1
vote
0 answers

Why does my Conditional Formatting fail when it works in Worksheet? Possible INDIRECT issue?

I am trying to do a comparison/Conditional Formatting between columns based on a drop-down choice. I have a formula that works fine in the spreadsheet, but does not seem to be working in my Conditional Formatting formula. Is INDIRECT causing my…
Das.Rot
  • 638
  • 4
  • 11
  • 25
1
vote
0 answers

Alternative to Excel's INDIRECT function that references another sheet

In my workbook, I have multiple (15+) sheets, each with 8+ cells that use the INDIRECT function. All the usage of this function is just to reference another sheet in the workbook. This sheet, Data, has multiple rows, each row representing a…
Oneiros
  • 143
  • 1
  • 13
1
vote
2 answers

Using INDIRECT() on Date type header

I am trying dynamically to calculate Week over Week for a spreadsheet, as new data is added to the columns every week on the date in the header. My data looks like so: Name WoW 9/27/2018 10/4/2018 10/11/2018 10/18/2018 10/25/2018 A …
user8834780
  • 1,620
  • 3
  • 21
  • 48
1
vote
1 answer

Make formula Indirect

How can this formula be made with INDIRECT function so that there are no #REF errors when rows are deleted and shifted up. Here is my code: =IFERROR(INDEX(G5:BL5, MATCH(REPT("z",255),G5:BL5)),0)
Jose Cortez
  • 93
  • 2
  • 10