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
2
votes
1 answer

Excel INDIRECT to ignore errors

I am looking for a way to make an INDIRECT formula ignore errors and print a 0 instead. I have it working in a round about way but would like it neater. I have an INDIRECT formula to load a cell from a seperate worksheet =INDIRECT("'Invoice…
2
votes
2 answers

Adding previous cell and current cell functions

I like to have an Excel Function for: Previous cell + Current Cell = Current cell to do this function for the entire row, when I enter a new value each time, Eg. A1+A2= A2.
2
votes
1 answer

Using INDIRECT to reference another sheet and current sheet (Google Sheets)

I am working in Google Sheets, not excel. I am currently working (and the below formulae appear) on Sheet1. In Sheet2, I have additional data. On Sheet1 in cell G1 is "Sheet2" (without the quotes). Cell A3 that I am referencing is on Sheet1. This…
user2705241
  • 49
  • 1
  • 2
  • 7
2
votes
1 answer

Dynamic INDIRECT formula with range

I have some dynamic input, in my case, the name of the month in cell I25. Based on the month the function in cell H32 should reference a sheet with the name of the month and cell A18 within that sheet. Now this I can handle and have made it possible…
new to design
  • 35
  • 1
  • 5
2
votes
1 answer

Using INDIRECT() to set dynamic range with VLOOKUP()

I am trying to use INDIRECT() to set a range for a VLOOKUP() function based on a defined numeric value. When stepping through the VLOOKUP() formula, the INDIRECT() function returns what appears to be an acceptable range for my purposes. However,…
Nate
  • 63
  • 1
  • 2
  • 7
2
votes
1 answer

Excel INDIRECT or OFFSET for variable Sum range

I have a sheet with 55 "blocks" of data, stacked vertically between cells A1 through AO44000. All blocks are the same size - each block has 865 rows and 41 columns. In column AK I currently have formula =SUM(H14:O14). This formula is repeated for…
user3066783
  • 35
  • 1
  • 1
  • 6
2
votes
1 answer

INDIRECT with column reference and row reference in different cells

So I have two cells, both referring to another sheet. One cell has the row of the other sheet and another has the column. I tried using an indirect statement along the lines of this: =INDIRECT("'VENDOR COSTING'!R"&R2&"C"&S2) Although I did do a…
2
votes
1 answer

Load range to array depending on row numbers specified in sheet

Does anyone know how I can substitute the following code with a dynamic one that is linked to specific cells? i.e. replace this dim array1() array1=range("a150:k250") with something similar to that dim…
2
votes
1 answer

Finding the next result from a MATCH

I am trying to produce a sorted table in excel, which depend on the selected year and category. My methodology has been to sequentially find largest values in order, within the selected year and category parameters, doing the following: Column…
Steven
  • 721
  • 6
  • 23
2
votes
2 answers

Excel Formula: Lookup from multiple named ranges

I have 3 Tables stored as named ranges. The user picks which range to search through using a drop down box. The named ranges are Table1, Table2 and Table 3. Table1 0.7 0.8 0.9 50 1.08 1.06 1.04 70 1.08 1.06 1.05 95 1.08 …
Benaiah
  • 43
  • 2
  • 7
2
votes
1 answer

Google Spreadsheet Populating Cells in Other Sheet Based on Value

Am new to Google Docs, but have to create a cumulative report of comments that are flagged as positive or negative. I have 6 worksheets that ideally would populate to a single report, but I could create 6 individual reports for now. In the source…
1
vote
2 answers

Reference a sheet range dynamically inside formula by using a cell value

How can I reference a sheet range by using a cell value? i.e This is a working formula =filter(dump!1:1000,dump!G:G = "Active") However, I need to reference the sheet's G:G range dynamically by using a cell value. Let's assume my cell A1 contains…
1
vote
1 answer

How To Add The Ordinal Count To Values Set In Horizontal Non-Contiguous Ranges In Google Sheets With A Formula Or A Script? EDIT ADDRESS FUNCTION

Problem: I'm trying to add each ordinal reference to a set of repeating values in each cells just above each value. The values are organized in horizontal and non-contiguous order. The illustration example I show below is simple for testing…
1
vote
1 answer

Google Sheets - Calling row based on cell reference

I am a coach and have a google sheet that tracks their fitness with a numeric score, higher being better. Each score has paces assigned to it for easier runs and harder runs. Currently I have a sheet that is a table of the scores with the prescribed…
tbriggs
  • 13
  • 2
1
vote
1 answer

Dynamic cell reference in another worksheet by referencing string in another cell as column

Looking for a way to formulate a very typical =([worksheet]![column][row]) type formula where only the [column] is dynamic. And by dynamic I am thinking of reading the string of another cell: For instance let say, in worksheet_1 cell A1 contains…
f0cc
  • 11
  • 1
1 2
3
19 20