A name conflict in Excel appears when two or more workbooks define the same name (a named range, named formula, or table name) with different definitions, and Excel cannot decide which one to use. To close it, open the Name Manager in the workbook that shows the conflict, compare the duplicate names and their Refers To formulas, then either rename one of them or delete the redundant definition. Once only one definition of each name remains, the conflict dialog stops appearing. You will usually see this after copying sheets between workbooks, merging files from colleagues, or opening a workbook that links to another file with the same names.
What You'll Need
- Excel for Windows or Mac (the Name Manager is not available in Excel for the web; use the desktop app).
- The workbook that triggers the conflict, plus any linked workbooks it references.
- Permission to edit the workbook if it is stored on a shared drive or SharePoint/OneDrive location.
- A moment to note down which names are used in formulas before you rename or delete anything.
Step-by-Step
- Reproduce the conflict. Open the workbook and perform the action that triggers the dialog (usually opening the file, copying a sheet, or pasting cells). Read the message carefully: it names the conflicting name and often offers a choice between the two definitions. Do not click through it blindly; note the name it mentions.
- Open the Name Manager. Go to Formulas > Name Manager (keyboard shortcut Ctrl+F3 on Windows, Cmd+F3 on Mac). Labels and menu positions can differ slightly by Excel version and platform, but the Name Manager sits on the Formulas tab in every current desktop version.
- Sort and scan for duplicates. Click the Name column header to sort alphabetically. Duplicates usually appear as two rows with the same name but different Refers To values or different Scope (Workbook versus a specific sheet). Write down each duplicate's scope and formula.
- Decide which definition to keep. The one you keep should be the one your existing formulas rely on. To check, click a name and look at the Refers To box; then search the workbook (Ctrl+F) for that name in formulas to see where it is used. If the name is used widely, keep the definition that points to the correct range.
- Rename the duplicate you do not need. In the Name Manager, select the duplicate row, click Edit, and change the Name to something unique (for example, add a suffix like _v2 or a workbook abbreviation). Renaming is safer than deleting because formulas that referenced the old name will still resolve to a definition, though you should update them afterward.
- Or delete the redundant name. If you are certain nothing uses the duplicate, select it and click Delete. Excel asks you to confirm; read the warning and confirm only if you have checked usage.
- Fix broken formulas. After renaming or deleting, scan for #NAME? errors. Use Ctrl+F to find the old name and replace it with the new one, or use Find & Select > Formulas to list all formula cells and review them.
- Repeat for linked workbooks. If the conflict involves an external link, open the source workbook and run the same check in its Name Manager. Conflicts between a workbook and its links are resolved by making the names unique in one of the files.
- Save and reopen. Save the workbook, close it, and reopen it to confirm the conflict dialog no longer appears. If you work with a shared file, ask colleagues to reopen it so they pick up the corrected definitions.
Common Mistakes
- Clicking through the conflict dialog without reading it. The dialog tells you which name is duplicated and often which workbook it came from; skipping it makes the fix harder.
- Deleting a name that formulas still use. This produces #NAME? errors across the workbook. Rename instead of delete when in doubt.
- Ignoring scope. A name scoped to a single worksheet can coexist with a workbook-level name of the same spelling, but it can still cause confusion. Check the Scope column in the Name Manager.
- Fixing only one workbook. If two linked files share a name, correcting only one side leaves the conflict in place.
- Assuming the conflict is an error. It is a warning, not corruption; the workbook still opens and works, but formulas may resolve to the wrong range.
Tips
- Use a naming convention that includes the source, such as Sales_Q1_2024 or Budget_DeptA, to avoid future collisions.
- Before merging workbooks, open each one's Name Manager and list its names so you can spot overlaps in advance.
- Keep names descriptive and avoid single letters or generic words like Data or Total, which are the most common duplicates.
- If you copy a sheet into another workbook, check the Name Manager immediately afterward; that is when most conflicts appear.
- Document names in a small reference sheet if several people edit the same file.
Troubleshooting
The dialog keeps returning after you fix it. A linked workbook probably still contains the duplicate. Open the source file named in the link and check its Name Manager.
Formulas show #NAME? after the fix. The old name was renamed or deleted. Use Ctrl+F to locate the old name in formulas and replace it with the new one.
You cannot edit a name. The workbook may be protected or read-only. Remove protection (Review > Unprotect Sheet or Unprotect Workbook, if you know the password) or save a copy you can edit.
The Name Manager is greyed out. You are likely in Excel for the web, which does not include the full Name Manager. Open the file in the desktop app.
The conflict involves a table name, not a range. Table names also must be unique. Select the table, go to Table Design, and change its name in the Table Name box.
Frequently Asked Questions
What exactly is a name conflict in Excel?
It is Excel's warning that the same name is defined differently in two places, usually two workbooks or a workbook and a linked file. Excel asks you to choose which definition to use.
Will closing the conflict delete my data?
No. Names are labels that point to cells; deleting or renaming a name does not delete the cells it referred to. It can, however, break formulas that used the name.
Can I avoid name conflicts entirely?
You can reduce them by using unique, descriptive names and checking the Name Manager before merging workbooks, but Excel cannot prevent two files from using the same name.
Does the Name Manager exist in Excel for the web?
No, the full Name Manager is a desktop feature. Use Excel for Windows or Mac to rename or delete names.
What is the difference between a name and a table name?
Both must be unique, but they are managed in different places: names in the Name Manager, table names in Table Design. A conflict can involve either.
Is it safe to click Cancel on the conflict dialog?
Yes. Cancelling leaves the workbook as it was, but the conflict will reappear the next time you open or copy into the file until you resolve it.