Home / Formula Types / Lookup / Indirect

Formula generator for INDIRECT function

The INDIRECT function returns a cell reference specified by a string. It allows you to create dynamic formulas by referencing cells or ranges based on a string input. The first argument, cell_reference_as_string, is the string that specifies the cell or range you want to reference. The second argument, is_A1_notation (optional), determines whether the cell_reference_as_string is in A1 notation (TRUE) or R1C1 notation (FALSE). By using the INDIRECT function, you can create formulas that dynamically update based on the value of a cell or other conditions.

Formula generator

Spreadsheet AI is the #1 AI for generating and comprehending Excel and Google Sheets formulas. With its advanced capabilities, it goes beyond the basics by providing support for VBA and custom tasks. Streamline your spreadsheet with Spreadshee AI

Product Demo

How to generate an INDIRECT formula using AI.

To obtain information on the ARRAY_CONSTRAIN formula, you could ask the AI chatbot the following question: “To get the INDIRECT formula, you can ask the AI chatbot the following question: "What is the formula in Excel that allows me to reference a cell indirectly based on the value of another cell?"

INDIRECT formula syntax

The INDIRECT function in Excel is used to convert a text string into a valid reference. It allows you to refer to a cell or range indirectly, based on the text string provided. The syntax for the INDIRECT function is: =INDIRECT(ref_text, [a1]) - ref_text: This is the required argument that specifies the text string representing the cell or range reference you want to convert. It can be a cell reference (e.g., "A1") or a named range (e.g., "Sales"). - a1: This is an optional argument that specifies the type of reference style to use. If set to TRUE or omitted, the reference is interpreted as an A1-style reference. If set to FALSE, the reference is interpreted as an R1C1-style reference. The INDIRECT function is commonly used in situations where you need to dynamically refer to different cells or ranges based on certain criteria. It allows you to create flexible formulas that can be easily adjusted or updated.

Use Cases & Examples

In these use cases, we use the INDIRECT function to convert a text string into a valid cell reference, allowing us to dynamically reference cells based on the text provided. This can be useful when working with formulas that need to reference different cells based on certain conditions or criteria.

Dynamic Sum


Calculates the sum of a range of cells specified by a string.



Conditional Average


Calculates the average of a range of cells specified by a string, based on a condition.



Lookup Value


Looks up a value in a table specified by a string and returns the corresponding value from another column.



AI tips

Enhance Your Excel Efficiency with AI Tips: Discover our innovative Excel add-in feature, ‘AI Tips.’ Streamline your workflow and boost productivity as AI-powered suggestions offer real-time insights for optimal spreadsheet organization, data analysis, and visualization. Elevate your Excel experience with intelligent recommendations tailored to your unique needs, helping you work smarter and achieve more.

Provide Clear Context

When describing your requirements to the AI, provide clear and concise context about the data you have, the specific task you want to accomplish, and any relevant constraints or conditions. This helps the AI understand the problem accurately.

Include Key Details

Include important details such as column names, data ranges, and specific criteria that need to be considered in the formula. The more precise and specific you are, the better the AI can generate an appropriate formula.

Use Examples

If possible, provide examples or sample data to illustrate the desired outcome. This can help the AI better understand the pattern or logic you are looking for in the formula.

Mention Desired Functionality

Clearly articulate the functionality you want the formula to achieve. Specify if you are looking for lookups, calculations, aggregations, or any other specific operations.


Frequently Asked Questions

  • The INDIRECT function in Excel is a function that allows you to indirectly reference a cell or range of cells in a formula. It takes a text string as input and returns the value of the cell or range specified by that text string.
  • To use the INDIRECT function in Excel, you need to provide a text string that represents the cell or range you want to reference. For example, if you have a text string 'A1' in cell B1, you can use the formula =INDIRECT(B1) to get the value of cell A1.
  • Yes, you can use the INDIRECT function to reference cells in another workbook by providing the full file path and sheet name in the text string. For example, =INDIRECT('[Workbook.xlsx]Sheet1'!A1) will reference cell A1 in Sheet1 of Workbook.xlsx.
  • The INDIRECT function is commonly used in scenarios where you need to dynamically reference cells or ranges based on the values in other cells. It can be useful for creating flexible formulas, such as dynamically summing a range based on user input or referencing cells based on the result of a calculation.
  • Yes, there are a few limitations to keep in mind when using the INDIRECT function. It can slow down calculation time in large workbooks, especially if used extensively. Additionally, if the referenced cell or range is deleted or moved, the INDIRECT function will return a #REF! error.