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
2 answers

EXCEL: drag-across of INDIRECT function does not change cell reference between " " marks

I'm having an issue with dragging cell formulas across and having them update the column reference. I have multiple formula referencing a single cell (cell A2) to get a numeric value to incorporate into a cell reference - so I can update this single…
Pilly Ears
  • 21
  • 5
1
vote
1 answer

Dynamic Table: INDIRECT and INDEX to compare cell content in array formula

Overview:I am trying to use INDIRECT combined with INDEX, ROW and COLUMN to get a dynamic table working. Problem: For each cell of a given column in Worksheet1, read the content of the cell to its left. Compare the content of a column from…
1
vote
1 answer

Sumif with named range using INDIRECT()

I have a named range TYPE_NAME which is a list of types of projects. Correspondingly, a named range TYPE_VALUE contains "Yes"/"No" for each type. Then, for each entry in TYPE_NAME, there is a corresponding man hour value stored in a named range…
Oliver Leung
  • 740
  • 5
  • 12
1
vote
2 answers

Return the column header of last cell with data

I'm working on a spreadsheet and trying to create a formula to count the last cell with data, then return the column heading for that cell. There are two parts here: Find the first cell with data, return the column heading Find the last cell with…
Brian
  • 37
  • 2
  • 7
1
vote
1 answer

how to change excel formula to reference worksheet and column based on cell values

I spent hours searching for a solution to adapt and then trying a million modifications to what I found and have finally admitted defeat. I work with survey data where a workbook has one worksheet for each question in a survey. Across the columns…
Morphasis
  • 31
  • 6
1
vote
1 answer

Excel: Indirect() - Populate summary sheet from other named sheets in spreadsheet

How do I use INDIRECT() [or another function] in excel to combine a name sheet reference and cell reference? Problem Context: I have an excel spreadsheet which contains a set of named sheets: [1] "S10000_R3.3.2_201703301839" …
Technophobe01
  • 8,212
  • 3
  • 32
  • 59
1
vote
1 answer

Indirect using variable range for Worksheet names

I have the following formula: =SUMPRODUCT(COUNTIF(INDIRECT("'"&D1:D2&"'!A1"),E2)) Took it from here https://www.extendoffice.com/documents/excel/2541-excel-countif-across-multiple-worksheets.html Now, i'm making a COUNTA to the D…
Or s
  • 11
  • 2
1
vote
2 answers

Count unique values in a range, using an indirect cell reference

Hi I am trying to count the number of unique product codes in a range with one criteria applied using. The formula so far is: =COUNTIFS(INDIRECT("'" & B7 & "'!" & B8 & ":" & B9),"*Germany*",INDIRECT("'" & O7 & "'!" & O8 & ":" & O9),"criteria for…
D.Phillips
  • 13
  • 3
1
vote
0 answers

I would like to create UDF alternative of INDIRECT()

As indirect() is volatile and there is no other way than using indirect in my files, I need to create a UDF equivalent/alternative to indirect. As far as I have been is : INDIRECTVBA(ref_text As String, Optional active_A1 As Boolean) As String If…
ladislasHD
  • 11
  • 3
1
vote
1 answer

Create New Unique ID Based on Two Columns - Excel

I have a problem at work where we would take an old SKU number and replace it with a new one. Unfortunately, there are instances where the new SKU number replacing an old SKU number would eventually become an 'old' SKU itself and would be phased…
Drew
  • 171
  • 1
  • 3
  • 11
1
vote
1 answer

External workbook VLOOKUP with an INDIRECT/MATCH array

Okay I need some help before I pull my hair out :P What I ultimately want to do is find the second vlookup value. The basic design is 1. Find value row number with a MATCH formula 2. Then use INDIRECT formula to shift the table array down one…
1
vote
1 answer

Excel 2010 Conditional Formatting - INDIRECT Function

I have an ongoing table that contains info in columns A-K and an undefined amount of rows. I'm trying to create a rule that will highlight columns A-K in a specific row if the value of cell D in that row is less than or equal to a specific date. I…
1
vote
1 answer

Excel Formula: Using INDIRECT to get same row number with named range causes #VALUE! error

Greetings Stack Overflow denizens! I am having an issue trying to get a formula involving INDIRECT to behave itself in conjunction with INDEX. When i use specific row values, the array works fine, but when i try and use INDIRECT to get current row…
Dshore87
  • 13
  • 3
1
vote
1 answer

Excel Structured Reference Dynamic Table Name

I've been at this for an hour now and I've ended up going back to using INDIRECT, which I would rather avoid. I feel like there must be a simpler way of using table format to get this done very cleanly, but I can't figure it out! I have a sheet like…
1
vote
0 answers

Calculating Business Days in Excel/Indirect Reference

I'm working on making a spreadsheet where someone can put in a date they want a final product by, and then it will automatically fill out deadlines for different steps along the way. (i.e.) If you want something by June 22, Step C would need to be…
Zach
  • 19
  • 1