Excel course · Lesson 6 of 34

Named ranges: give cells meaningful names

Create named ranges with the Name Box, Create from Selection and Name Manager, use them in formulas, and learn scope, naming rules and named constants.

Beginner 14 min read

Compare these two formulas: =B4*$H$1 and =Sales*VAT_Rate. Both can calculate the same thing, but only the second one explains itself. A name is a label you attach to a cell, a range, a constant or even a formula, so you can refer to it by meaning instead of by address. Names make workbooks easier to read, easier to audit and harder to break.

Why use names

  • Readability: =SUM(Q1_Sales) tells a reader what is being added.
  • Automatic absolute references: a name always points to the same cells, so you never forget the $ signs.
  • Navigation: pick a name from the Name Box drop-down and Excel jumps straight to it, even on another sheet.
  • Reusable inputs: drop-down lists in Data validation: drop-down lists and dependent lists and many dynamic formulas are cleaner with names.

Method 1: the Name Box

AB
1VAT rate0.24
2
3InvoiceNet
4INV-20411250
5INV-2042380
6INV-20432915
7INV-2044640

A VAT rate in B1 and invoice amounts in B4:B7.

  1. Click B1, the cell holding the VAT rate.
  2. Click inside the Name Box (left of the formula bar), where it currently says B1.
  3. Type VAT_Rate and press Enter. Pressing Enter is essential; clicking away cancels the name.
  4. Select B4:B7, click the Name Box again, type Net and press Enter.
  5. In any empty cell type =SUM(Net)*VAT_Rate. The result is 1,244.40.
C5fx=B5*VAT_Rate
ABCD
3InvoiceNetVATGross
4INV-204112503001550
5INV-204238091.20471.2
6INV-20432915699.63614.6
7INV-2044640153.6793.6

C4 contains =B4*VAT_Rate, filled down. No $ signs are needed: the name always points to B1.

Result: 91.20

Method 2: Create from Selection

When your data already has headings, Excel can create one name per column (or row) in a single step.

ABC
1MonthRevenueCosts
2Jan4820031500
3Feb5190033800
4Mar5510034100
  1. Select the whole block including headings, A1:C4.
  2. Choose Formulas › Defined Names › Create from Selection (Ctrl+Shift+F3).
  3. Tick Top row only and click OK.
  4. Excel creates the names Month (A2:A4), Revenue (B2:B4) and Costs (C2:C4).
  5. Type =SUM(Revenue)-SUM(Costs) and you get 55,800.

Headings that are not valid names are adjusted: Unit Price becomes Unit_Price, and a heading like 2026 becomes _2026.

Method 3: the Name Manager

Formulas › Defined Names › Name Manager (Ctrl+F3, Mac: use Formulas › Name Manager) lists every name in the workbook with its value, what it refers to, and its scope. From here you can create, edit and delete names, and filter for names with errors.

  1. Open Formulas › Name Manager and click New.
  2. Name: Target. Scope: Workbook. Comment: Monthly sales target.
  3. Refers to: =60000. A name does not need a cell; this is a named constant.
  4. Click OK and Close. Now =B2>=Target works on every sheet.
Tip. Named constants are perfect for values that rarely change and should not be edited by accident, such as a conversion factor. For rates that users should be able to see and update, a visible input cell with a name is friendlier.

Naming rules

  • Start with a letter, an underscore or a backslash. Then letters, numbers, periods and underscores.
  • No spaces. Use Sales_2026 or Sales.2026 or SalesTotal.
  • Not the same as a cell address. Q1 and TAX2026 look like cell references (column TAX exists), so Excel refuses them. Use Q1_Sales or Tax_2026.
  • Up to 255 characters, but keep names short.
  • Names are not case-sensitive: vat_rate and VAT_Rate are the same name.

Scope: workbook or sheet

Each name has a scope. A Workbook scope name can be used on every sheet and must be unique in the file. A Worksheet scope name belongs to one sheet, so you can have a name Total on the Jan sheet and another Total on the Feb sheet. From another sheet you refer to it as =Jan!Total. Scope can only be chosen when you create the name in the New Name dialog; to change it later you have to delete and re-create the name.

Using names in formulas

  1. Start typing a formula, for example =SUM(.
  2. Press F3 (Windows) to open Paste Name and pick a name, or start typing the name and choose it from AutoComplete, where names have a label icon.
  3. Alternatively choose Formulas › Defined Names › Use in Formula.

If you created names after writing formulas, choose Formulas › Define Name › Apply Names (Windows) to replace matching cell references in existing formulas with the new names.

Dynamic names

A name that points to B2:B4 does not grow when you add April in row 5. There are three ways to keep it current:

Names that hold formulas

A name can refer to any formula. In Microsoft 365 you can even store a custom function as a name with LAMBDA, for example a name GrossUp that refers to =LAMBDA(net, net*(1+VAT_Rate)), and then write =GrossUp(B4) in any cell. This is covered in LET and LAMBDA: variables and your own functions.

Watch out. Deleting the cells a name refers to turns the name into #REF!, and every formula using it breaks. Open Name Manager now and then and use Filter › Names with Errors to clean up. Names copied in from other workbooks also pile up unnoticed.
Note. On Excel for Mac, Name Manager is under Formulas › Name Manager and Define Name under Formulas › Define Name; the Paste Name shortcut F3 is not available, so use AutoComplete instead. Excel for the web supports creating and using names, and Name Manager is available there in current versions.

Check yourself

1. You type Price in the Name Box and then click on another cell. What happens?

2. Which of these is a valid name?

3. Why does =B2*VAT_Rate need no $ signs when copied down?

4. You want a separate name Total on each monthly sheet. What must you set?

5. Which shortcut opens the Name Manager on Windows?

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 12 KB