Excel INDIRECT Function: Syntax, Examples & Tips

The INDIRECT function allows you to create dynamic cell references, enabling flexible data manipulation in your Excel spreadsheets.
Excel
=INDIRECT(ref_text, [a1])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

Need more than a single INDIRECT formula? Try our free AI for Excel — it reads your entire spreadsheet, answers questions in plain English, and builds charts and analysis in the same chat.

On this page
  1. Parameters
  2. What is an INDIRECT Formula in Excel?
  3. A Practical Example
  4. INDIRECT Formula
  5. Result of the Formula
  6. Why Use INDIRECT?
  7. Key Takeaways:
  8. Example use case

Parameters

ref_text:
A reference to a cell or range of cells as a text string. This can be a direct cell reference (e.g., "A1") or a named range.

a1:
A logical value (TRUE or FALSE) that specifies the reference style. If TRUE or omitted, ref_text is interpreted as an A1-style reference; if FALSE, it is interpreted as an R1C1-style reference.

What is an INDIRECT Formula in Excel?

The INDIRECT function in Excel is a versatile tool that allows you to reference cells or ranges indirectly using text strings. This means you can create dynamic references that change based on the values in other cells, making your formulas more flexible and powerful.

In simpler terms, the INDIRECT function helps you create references that can adapt to changes in your data, allowing for more complex calculations and data manipulation.

A Practical Example

Imagine you are managing a quarterly sales report for a small business, and you have the following data in an Excel spreadsheet:

Sales Data Table:

QuarterSales Amount
Q15000
Q27000
Q36000
Q48000

You want to find the total sales for a specific quarter, but you want to be able to change the quarter easily without modifying the formula.

INDIRECT Formula

To calculate the total sales for a specific quarter, you would use the INDIRECT formula as follows:

Excel
=INDIRECT("B" & MATCH("Q2", A2:A5, 0))

Breakdown of the Formula:

  • "B": This is the column where the sales amounts are located.
  • MATCH("Q2", A2:A5, 0): This part finds the row number for "Q2" in the range A2:A5.
  • INDIRECT: Combines the column letter and the row number to create a reference to the sales amount for Q2.

Result of the Formula

When you apply the formula, it retrieves the sales amount for Q2, which is 7000. The output would be:

Total Sales for Q2
7000

Here, the total sales amount is directly referenced from the sales data table using the INDIRECT function.

Why Use INDIRECT?

The INDIRECT function is particularly useful when you need to create dynamic references that can change based on user input or other cell values. It allows you to build more complex formulas and makes your spreadsheets more interactive and user-friendly.

Key Takeaways:

  • INDIRECT: Creates dynamic references to cells or ranges using text strings.
  • Flexible Data Manipulation: Allows for adaptable formulas that respond to changes in data.
  • Common Use Cases: Ideal for dashboards, reports, and any scenario where references need to change based on user input.

Understanding how to use the INDIRECT function can significantly enhance your data manipulation capabilities in Excel, enabling you to create more dynamic and responsive spreadsheets.

Happy referencing!

Example use case

You have a workbook with multiple sheets, each named after a different month (e.g., January, February, March) containing sales data for each month. You want to reference a specific cell in the January sheet to pull the total sales figure into a summary sheet. By using the INDIRECT function, you can dynamically create a reference to the January sheet and the specific cell (e.g., A1) where the total sales figure is located. This allows you to easily update the summary sheet by changing the month in a single cell, without having to manually adjust the references for each month, streamlining your reporting process.

Beyond the INDIRECT function: Better Analyst is a full Excel AI that goes well past individual formulas. Upload any spreadsheet and ask questions in plain English — you'll get formulas, data analysis, and charts back in seconds. It's a free AI Excel assistant that works with any .xlsx, .xls, or .csv file — no plugins, no Microsoft 365 required.

Don't have a spreadsheet yet? Use our free AI spreadsheet generator to turn a text prompt into a downloadable Excel file — a full AI Excel sheet maker that builds headers, columns, and formulas from your description.

Need more help with Excel formulas?

Create a free account for formula help, explanations, and spreadsheet analysis. Usage limits depend on your plan.

Explore all Excel formulas

Browse our complete library of Excel formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.