How To Create And Use Named Ranges In Excel (2026)
A formula like =SUM(B2:B40) tells you nothing about what it adds up, and it breaks the moment someone moves the data.
A named range gives that block of cells a readable name such as Sales_Tax, so the formula can say what it means.
Here is how to create a name, use it in a formula, change it and delete it, plus the naming rules Microsoft lists.
Quick answer: name a range
| Step | What to do |
|---|---|
| 1 | Select the cells you want to name |
| 2 | Click the Name Box at the left end of the formula bar |
| 3 | Type a name with no spaces, such as Sales_Tax |
| 4 | Press Enter |
| 5 | Use it in a formula by typing = and the name |
You cannot use the Name Box while you are editing a cell’s contents.
Naming rules
Excel rejects names that break its rules, so check this list before you type.
| Rule | Detail |
|---|---|
| First character | A letter, an underscore or a backslash |
| Other characters | Letters, numbers, periods or underscores |
| Spaces | Not allowed, so use Sales_Tax or First.Quarter |
| Cell references | A name cannot look like one, such as Z$100 or R1C1 |
| Single letters | C, c, R and r cannot be used alone |
| Length | Up to 255 characters |
| Case | Not case-sensitive, so Sales and SALES clash |
Create a name with the Name Box
- Select the cell or range.
- Click the Name Box at the left end of the formula bar.
- Type the name.
- Press Enter.
Excel keeps the name for the whole workbook unless you define it differently.
Create a name with Define Name
The Define Name dialog gives you control over scope and the comment.
- On the Formulas tab, select Define Name.
- Type the name and choose its scope.
- Add a comment if you want one.
- In the Refers to box, select cells, type a constant, or type a formula that starts with an equal sign.
- Select OK.
Microsoft notes that a reference you type, such as B1, is relative, while cells you select with the mouse become absolute, so check which one you got.
Create names from row or column labels
- Select the range including its row or column labels.
- On the Formulas tab, select Create from Selection, or press Ctrl+Shift+F3.
- Check Top row, Left column, Bottom row or Right column, depending on where your labels are.
- Select OK.
Each name refers only to the value cells, not to the labels themselves, and the names have workbook-level scope.
Use a name in a formula
You have three ways to put a name into a formula.
| Method | How |
|---|---|
| Type it | Type the name directly after the equal sign |
| AutoComplete | Start typing and pick the name from the list |
| Use in Formula | Formulas tab > Use in Formula, then choose the name |
Names also work with dynamic array formulas, which can spill results across cells.
Workbook scope and sheet scope
A name is either workbook-level, which any sheet can use, or sheet-level, which works only on the sheet where you defined it.
To use a sheet-level name from another sheet, put the sheet name in front, such as Sheet1!Budget_FY08.
The same name can exist at both scopes, and by default the sheet-level name wins on its own sheet.
To use the workbook-level name instead, put the workbook file name in front of it.
Open the Name Manager
Go to Formulas > Defined Names group > Name Manager to see every name in the workbook.
| Column | What it shows |
|---|---|
| Name | Defined names and table names |
| Value | The current result, such as a constant, range, error or array |
| Refers To | The cell, range, formula or constant the name points to |
| Scope | One worksheet, or the whole workbook by default |
| Comment | An optional note of up to 255 characters |
Edit a name or what it refers to
- Open the Name Manager.
- Double-click the name, or select it and click Edit.
- Change the name, the reference or both.
- Select OK.
Changes apply everywhere the name is used in the workbook, so one edit updates every formula that uses it.
You can also change the reference directly in the Refers to box at the bottom of the Name Manager.
Delete names
In the Name Manager, select one name, several adjacent names with Shift, or several nonadjacent names with Ctrl.
Click Delete and confirm with OK.
Check where the name is used first, because Microsoft lists an undefined name as a cause of the #NAME? error.
Filter and sort a long list of names
The Filter dropdown in the Name Manager can show names scoped to a worksheet or the workbook, names with or without errors, defined names, or table names only.
Click a column header to sort, and double-click the right edge of a header to fit the column.
The Name Manager does not show names defined by VBA or hidden names, and you cannot open it while editing a cell.
Paste a list of all your names
Choose an area with two empty columns and select the upper-left cell.
On the Formulas tab, choose Use in Formula, then Paste, then Paste List.
Excel fills the area with every name and what it refers to.
Fix a #NAME? error
If a formula that uses a name shows #NAME?, Microsoft lists these causes.
| Cause | Fix |
|---|---|
| The name is not defined | Define it in Name Manager, then add it with Use in Formula |
| The name is misspelled | Correct the spelling, or insert the name with Use in Formula |
| A range is missing its colon | Write ranges like B2:B12 |
Microsoft says not to wrap the formula in IFERROR to hide the error, because that covers up the real cause.
Related Excel guides
Named ranges pair well with XLOOKUP and VLOOKUP when your lookup table has a name.
If a formula still shows an error, see our guide to fixing #N/A, #VALUE! and #REF! errors.
You can also protect formulas that use names with locked cells and a protected sheet.
Sources
The rules, scope and Name Manager details come from Microsoft’s Names in formulas and Use the Name Manager in Excel pages.
The #NAME? causes come from Microsoft’s page on how to correct a #NAME? error.