Function Problems

Use INDIRECT to Reference Dynamically Created Excel Sheets

Emma BrownEmma Brown Dec 2, 2026 868 views

Question details

Use a worksheet name stored in a cell to build a reference to a dynamically created worksheet.

Use INDIRECT to Reference Dynamically Created Excel Sheets
Product
Microsoft Excel
Device & OS
not provided
Scenario
Worksheets are created from a template, and a Summary sheet needs to retrieve the same cell from each worksheet without repetitive update macros.
Observed behavior
A Summary formula should retrieve the value from the worksheet named in a cell without requiring a separate Update button.
Before you start

Make sure the source worksheet exists and identify the Summary cell that will hold its exact name. Confirm that the value you want to retrieve is in the same cell, such as I18, on each template-based worksheet.

Solution 1Recommended

Use INDIRECT to reference a worksheet named in a cell

Use this formula when each worksheet has the value in the same cell and its name is listed on the Summary sheet.

1
Enter the worksheet name

On the Summary sheet, enter the exact source worksheet name in cell A1.

2
Enter the INDIRECT formula

Select a result cell and enter =INDIRECT("'"&A1&"'!I18"). Press Enter to retrieve cell I18 from the worksheet named in A1.

3
Add new worksheet names

When you create another worksheet from the template, enter its name in the appropriate Summary cell and copy or adjust the formula to reference that cell.

Use INDIRECT to reference a worksheet named in a cell
Check worksheet names: INDIRECT returns a #REF! error if the worksheet does not exist or the name is incorrect. If a worksheet name contains an apostrophe, use =INDIRECT("'"&SUBSTITUTE(A1,"'","''")&"'!I18") to escape it.
Work with dynamic references in WPS

Reference template-based sheets in WPS Spreadsheets

Use INDIRECT in WPS Spreadsheets to retrieve a value from a worksheet named on your Summary sheet, without a separate update macro.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. List the worksheet name: On the Summary sheet, enter the exact source worksheet name in cell A1.
  3. 3. Add the formula: Select a result cell, enter =INDIRECT("'"&A1&"'!I18"), and press Enter.
  4. 4. Add future sheets: After creating a new worksheet from the template, enter its name on the Summary sheet and copy or adjust the formula to reference the new name.
Build dynamic references to template-based worksheetsOpen and edit Microsoft Excel XLSX filesUse familiar spreadsheet formulas and worksheet tabsWork with a free, easy-to-use office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does my INDIRECT formula return #REF!?

Check that the worksheet exists and that the name in A1 matches its tab exactly. If the name contains an apostrophe, escape it with SUBSTITUTE: =INDIRECT("'"&SUBSTITUTE(A1,"'","''")&"'!I18").

Does INDIRECT automatically add new worksheet names to the Summary sheet?

No. Enter each new worksheet name in a Summary cell, then copy or adjust the formula to reference that cell.

What happens if I rename a referenced worksheet?

The text stored in the Summary cell does not automatically change with the worksheet tab. Update the name in that cell to match the renamed sheet.

How can I change the source cell from I18?

Replace I18 in the INDIRECT formula with the desired cell address. Alternatively, use ADDRESS with the desired row and column numbers to construct the address.