Every defined name has a scope: the whole workbook, where every sheet can use it, or one worksheet, where only that sheet recognises it. An AI-written formula that uses a name defined on another sheet returns #NAME? on the current sheet, even though the name exists. Open the Name Manager and read the Scope column before trusting the formula.
What you need
- The AI-written formula and the name it uses
- The Name Manager listing for the workbook
- The sheet the formula sits on
Step 1: Open the Name Manager and find the name
Open Formulas, Name Manager, and find the name the formula uses. Read its Scope column: Workbook means every sheet can use it, while a sheet name means only that sheet can.
Step 2: Test the name from the formula’s sheet
On the sheet where the formula sits, type the name in a spare cell. If it returns #NAME?, the name is scoped to a different sheet.
Step 3: Fix the scope or qualify the name
Either redefine the name with Workbook scope, or qualify it in the formula with the sheet name, such as Sheet1!Budget_FY08. Re-test the formula from every sheet that uses it.
Worked example: synthetic budget name scoped to one sheet
The table below is a synthetic example. It shows the expected result of checking an AI-written named range; no formula was run.
| Check | Value | Result |
|---|---|---|
| Name used | Budget_FY08 | Defined on Sheet1 |
| Scope shown | Sheet1 | Local, not workbook |
| Formula on Sheet2 | #NAME? | Name not recognised |
| Qualified formula | Sheet1!Budget_FY08 | Returns the value |
Expected result (UNTESTED). Budget_FY08 scoped to Sheet1 returns #NAME? in a formula on Sheet2; qualifying it as Sheet1!Budget_FY08 returns the value, and redefining it with Workbook scope fixes every sheet at once. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A name must be unique within its scope, but the same name can exist in different scopes, which is how a local name can hide a workbook name.
- When a local and a workbook name collide, the local name wins on its own sheet.
- The Name Box on the formula bar creates workbook-level names only; a local name needs the New Name dialog.
- Deleting a name breaks every formula that uses it, so check the Name Manager before deleting.
