How to delete a defined name in excel
Tutor 5 (273 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To delete a defined name in Excel, open Name Manager, select the name, click Delete, then close Name Manager.
-
On Windows (Excel desktop):
-
Click the Formulas tab on the ribbon.
-
Click Name Manager (or press Ctrl+F3).
-
In the Name Manager window, click the defined name you want to remove.
-
Click Delete.
-
Confirm the deletion when prompted.
-
Click Close to finish.
-
-
On Mac (Excel desktop):
-
Click the Formulas tab on the ribbon.
-
Click Name Manager.
-
In the Name Manager window, select the defined name.
-
Click Delete.
-
Confirm the deletion when prompted.
-
Click Close to finish.
-
-
To delete a defined name directly from a worksheet (quick method):
-
Click the Name Box (the box left of the formula bar showing the active cell address).
-
Choose the defined name from the drop-down list.
-
Press Delete on your keyboard.
-
Open Name Manager to confirm the name was removed.
-
-
To delete many names at once:
-
Open Name Manager.
-
Hold Ctrl and click each name you want to remove.
-
Click Delete.
-
Confirm the deletion.
-
How to delete hidden or workbook-level names
To delete a hidden or workbook-level name, open Name Manager and look at the Scope column; names with scope Workbook apply everywhere and may be hidden. Select hidden or workbook-level names in Name Manager and click Delete.
-
Use the Filter button inside Name Manager to show hidden names when needed.
-
Delete as with visible names.
Can I delete all defined names at once?
Yes.
-
Open Name Manager.
-
Click the first name in the list.
-
Press Ctrl+A on Windows to select all names (on Mac use the menu or click first then Shift+click last).
-
Click Delete and confirm.
Can I delete a defined name with VBA?
Yes. Use VBA when you need to remove names programmatically or remove names with unusual scopes.
-
To delete a single name by exact name:
Sub DeleteName()
On Error Resume Next
ThisWorkbook.Names("MyName").Delete
On Error GoTo 0
End Sub
- To delete all workbook-level names:Sub DeleteAllNames()Dim nm As NameFor Each nm In ThisWorkbook.Namesnm.DeleteNext nmEnd Sub
- To delete worksheet-level names on a specific sheet:Sub DeleteSheetNames()Dim nm As NameFor Each nm In Worksheets("Sheet1").Namesnm.DeleteNext nmEnd Sub
What happens after I delete a defined name?
A deleted defined name stops existing in the workbook, and any formulas that referenced it will show errors or break where the name was required.
-
Excel does not automatically replace the name with its previous cell reference.
-
Use Undo immediately to restore a deleted name, unless other actions prevent undo.
How to find where a defined name is used before deleting it
-
Open Name Manager.
-
Select the name.
-
Click Refers To and copy the reference into the worksheet to inspect it.
-
Search the workbook for the name text by pressing Ctrl+F and entering the name to locate formulas that reference it.
Troubleshooting common issues
-
Name not listed: The name might be local to a worksheet. Change the scope filter in Name Manager to show worksheet-level names.
-
Cannot delete: Worksheet protection or workbook protection may prevent deletion; remove protection first, then delete the name.
-
Names with errors: Names that refer to invalid ranges still appear in Name Manager; select and delete them using the normal Delete button.
Best practices before deleting names
-
Back up the workbook before mass-deleting names.
-
Search for usage to avoid breaking important formulas.
-
Document reasons for deletion when working on shared files.
Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to sort by highlighted cells in excel
Answers · 1
How to sort excel by column and keep rows together
Answers · 1
How to sort by time in excel
Answers · 1
How to sort alphabetically in excel by last name
Answers · 1