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

StepWhat to do
1Select the cells you want to name
2Click the Name Box at the left end of the formula bar
3Type a name with no spaces, such as Sales_Tax
4Press Enter
5Use 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.

RuleDetail
First characterA letter, an underscore or a backslash
Other charactersLetters, numbers, periods or underscores
SpacesNot allowed, so use Sales_Tax or First.Quarter
Cell referencesA name cannot look like one, such as Z$100 or R1C1
Single lettersC, c, R and r cannot be used alone
LengthUp to 255 characters
CaseNot case-sensitive, so Sales and SALES clash

Create a name with the Name Box

  1. Select the cell or range.
  2. Click the Name Box at the left end of the formula bar.
  3. Type the name.
  4. 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.

  1. On the Formulas tab, select Define Name.
  2. Type the name and choose its scope.
  3. Add a comment if you want one.
  4. In the Refers to box, select cells, type a constant, or type a formula that starts with an equal sign.
  5. 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

  1. Select the range including its row or column labels.
  2. On the Formulas tab, select Create from Selection, or press Ctrl+Shift+F3.
  3. Check Top row, Left column, Bottom row or Right column, depending on where your labels are.
  4. 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.

MethodHow
Type itType the name directly after the equal sign
AutoCompleteStart typing and pick the name from the list
Use in FormulaFormulas 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.

ColumnWhat it shows
NameDefined names and table names
ValueThe current result, such as a constant, range, error or array
Refers ToThe cell, range, formula or constant the name points to
ScopeOne worksheet, or the whole workbook by default
CommentAn optional note of up to 255 characters

Edit a name or what it refers to

  1. Open the Name Manager.
  2. Double-click the name, or select it and click Edit.
  3. Change the name, the reference or both.
  4. 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.

CauseFix
The name is not definedDefine it in Name Manager, then add it with Use in Formula
The name is misspelledCorrect the spelling, or insert the name with Use in Formula
A range is missing its colonWrite ranges like B2:B12

Microsoft says not to wrap the formula in IFERROR to hide the error, because that covers up the real cause.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *