New Tool Radar

AI for Data & Spreadsheets

How to Check Whether an AI-Written INDIRECT Reference Still Points at the Right Sheet

Check whether an AI-written INDIRECT reference still points at the right sheet after that sheet was renamed.

Schematic with three steps: Read the text inside INDIRECT; Check the sheet name against the workbook; Update the text and test the formula.

INDIRECT builds a reference from text, such as INDIRECT(“Sales!A1”), which means the reference does not update when the sheet is renamed: Excel cannot rewrite text. An AI-written INDIRECT that names a sheet by its old name returns #REF! after a rename, while an ordinary reference would have followed the new name. Check the text inside INDIRECT against the current sheet names.

What you need

  • The AI-written INDIRECT formula
  • The current sheet names in the workbook
  • The value the formula should return

Step 1: Read the text inside INDIRECT

Click the formula cell and read the text string INDIRECT builds its reference from. Write down the sheet name and cell it names.

Step 2: Check the sheet name against the workbook

Look at the sheet tabs and check whether a sheet with that name still exists. If the sheet was renamed, the text still holds the old name.

Step 3: Update the text and test the formula

Correct the sheet name inside the quotes and check the result against the value on the renamed sheet. Consider replacing INDIRECT with a direct reference if the sheet name will not change again.

Worked example: synthetic sales sheet renamed by the reader

The table below is a synthetic example. It shows the expected result of checking an AI-written INDIRECT formula; no formula was run.

Check Value Result
Text inside INDIRECT “Sales!B2” Old sheet name
Current sheet name Sales2026 Renamed by the reader
Formula result #REF! Sheet name not found
Corrected text “Sales2026!B2” Returns 480

Expected result (UNTESTED). INDIRECT(“Sales!B2”) returns #REF! after the sheet was renamed to Sales2026, because the text still names the old sheet; correcting the text to “Sales2026!B2” returns 480. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • INDIRECT does not work with a closed workbook; the reference returns #REF! until the file is open.
  • A sheet name with a space needs single quotes inside the text, such as “‘Sales 2026’!B2”.
  • Because INDIRECT reads text, it cannot be traced with Trace Precedents, so audit it by hand.
  • INDIRECT is volatile, so it recalculates with every change and can slow a large workbook.

Sources

See all