INDIRECT(cell_reference_as_string, [is_A1_notation])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
cell_reference_as_string:
A string that represents the cell reference or range of cells you want to refer to. This can be a single cell (e.g., "A1") or a range (e.g., "A1:B2").
is_A1_notation:
An optional boolean value that specifies whether the cell_reference_as_string is in A1 notation (TRUE) or R1C1 notation (FALSE). If omitted, it defaults to TRUE.
The INDIRECT function in Google Sheets is a powerful tool that allows you to reference a cell or range of cells indirectly. This means that instead of directly specifying the cell reference, you can use a text string to create a reference. This can be particularly useful when you want to create dynamic references that change based on other cell values.
In simpler terms, INDIRECT allows you to build references to cells or ranges in a flexible way, making your formulas more adaptable to changes in your data.
Imagine you are managing a sales report where you have monthly sales data stored in different sheets:
| ProductID | ProductName | Sales |
|---|---|---|
| 101 | Widget A | 500 |
| 102 | Widget B | 300 |
| ProductID | ProductName | Sales |
|---|---|---|
| 101 | Widget A | 600 |
| 102 | Widget B | 400 |
You want to create a summary table that dynamically pulls the sales data for each month based on the month selected in another cell.
To achieve this, you would use the INDIRECT function as follows:
=INDIRECT(A1 & "!C2")In this formula:
A1 is the cell containing the name of the month (e.g., "January" or "February")."!C2" specifies the cell reference you want to pull data from (in this case, the Sales for ProductID 101).A1 & "!C2" creates a dynamic reference to the correct cell based on the month selected.When you apply the INDIRECT formula to your summary table, the output would look like this:
| Month | ProductID | Sales |
|---|---|---|
| January | 101 | 500 |
| February | 101 | 600 |
If you change the value in cell A1 to "February", the INDIRECT function will automatically update the sales figure for ProductID 101 to reflect the February sales.
INDIRECT is beneficial because it allows for greater flexibility in your formulas. It enables you to create references that can change based on user input or other cell values, making your spreadsheets more dynamic. Additionally, it can help simplify complex formulas by breaking them down into manageable parts.
INDIRECT is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a summary sheet where you want to reference specific data from multiple monthly sheets. By using the INDIRECT formula, you can dynamically pull values based on the month selected in a dropdown, ensuring your summary updates automatically with the chosen month.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.