Named ranges in Excel: define and use names

A name stands for a cell or a range. Instead of =B2*Settings!$B$1 you write =B2*TaxRate, and anyone reading the formula knows what it does. This lesson shows how to create names, manage them and use them in formulas such as VLOOKUP.

In short: select the cells, click the Name Box at the left end of the formula bar, type a name such as TaxRate and press Enter. From then on =B2*TaxRate works. You see and edit every name under Formulas > Name Manager.

Try it now

This workbook already has two names: a price list on the Prices sheet and the tax rate on the Settings sheet. Use the tabs below the grid to look at the sheets.

Task This workbook has two defined names: PriceList (Prices!A2:B7) and TaxRate (Settings!B1, here 20%, for example UK VAT; your local sales tax rate would go in the same cell). In C2, calculate the gross amount for the row: quantity times the net price from the price list, plus tax. Use the two names instead of cell references. The formula is filled down to C6.

ABC
1 Item no. Qty Gross
2 A-118 4
3 A-104 10
4 A-131 2
5 A-109 25
6 A-125 6

Three ways to create a name

MethodHowBest for
Name BoxSelect the cells, click the Name Box left of the formula bar, type the name, press Enterone quick name
Define NameFormulas > Defined Names > Define Name opens the New Name dialognames with a set scope, constants
Create from SelectionSelect a range including its labels, Formulas > Create from Selection, tick e.g. Top rownaming many columns at once

The New Name dialog has three boxes that matter. Name is the name itself. Scope sets where the name works: the whole Workbook or just one sheet. Refers to holds the reference, such as =Sales!$B$2:$B$13. Instead of a reference it can also hold a constant, for example =0.2. The value then lives in the name only, not in any cell.

Task On the Report sheet and on other sheets, formulas like =AVERAGE(Sales_2026) should work. In the New Name dialog (Formulas > Define Name), create the name Sales_2026. It should cover exactly the twelve monthly figures on the Sales sheet: no heading and no total below, or the average would be wrong.

AB
1 Month Sales
2 January 41200
3 February 38950
4 March 44310
5 April 46020
6 May 43870
7 June 47150
8 July 39400
9 August 36800
10 September 45230
11 October 48610
12 November 50120
13 December 53390
14 Total 535050

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

Rules for valid names

Excel rejects names that break these rules, which come from Microsoft's help page on names in formulas:

  • The first character must be a letter, an underscore or a backslash. After that, letters, numbers, periods and underscores are allowed.
  • No spaces. Separate words with an underscore or a period: Sales_Tax, First.Quarter.
  • A name cannot look like a cell reference. QTR2026 fails because QTR is a column; Q1 fails too.
  • The single letters C, c, R and r cannot be used as names.
  • Up to 255 characters.
  • Case does not matter: Sales and SALES are the same name.

Names in VLOOKUP and other functions

Names pay off most for ranges that many formulas use. =VLOOKUP(A2,PriceList,2,FALSE) reads better than =VLOOKUP(A2,Prices!$A$2:$B$200,2,FALSE), and you can no longer get the dollar signs wrong: a name behaves like an absolute reference and does not shift when you fill a formula down. The function itself is covered in VLOOKUP.

Names work in every function: =SUM(Sales_2026), =AVERAGE(Sales_2026), =COUNTIF(Department,"Sales"). A name also makes a tidy source for a drop-down list: in Data Validation, enter =Departments as the source. While you type a formula, Excel suggests matching names, and Formulas > Use in Formula gives you a list to click.

A range on another sheet gets much easier to read through a name, because the sheet name disappears from the formula. How references to other sheets look without names is shown in reference another sheet.

The Name Manager

Formulas > Name Manager lists every name in the workbook with its value, reference and scope. Create new names there, change the reference when a list grows, and delete names nobody uses. A name whose cells were deleted shows #REF! there and should be fixed or removed.

If a list grows all the time, an Excel table is often the better choice. The table name and its column names grow with the data, so you never have to adjust the reference in the Name Manager.

Common mistakes with names

#NAME? in the formula

Excel does not know the name. Usually it is misspelled, or it is scoped to a different sheet. Check the Scope column in the Name Manager. A name meant for the whole file needs Workbook there.

Total or heading inside the name

If the name accidentally includes the total row, every formula using it is off: AVERAGE counts the yearly total as one more month. The name should cover the data cells only, without heading and total.

A name that looks like a reference

Short names with digits such as WK12 or TAX1 are cell references, because Excel's columns run up to XFD. Add an underscore or spell the word out: WK_12 works, and so does Taxes1, because TAXES has more than three letters.

Names in German Excel

EnglishGerman
Name BoxNamenfeld
Name ManagerNamens-Manager
Define Name, New NameNamen definieren, Neuer Name
Scope, Refers toBereich, Bezieht sich auf
WorkbookArbeitsmappe
Create from SelectionAus Auswahl erstellen

Excel does not translate the names themselves. A workbook with the name TaxRate works the same in German Excel, where the formula becomes =SVERWEIS(A2;PriceList;2;FALSCH) with semicolons.

Which Excel versions support names?

Names, the Name Box and the Name Manager are part of every current version of Excel for Windows and Mac, from Excel 2016 to Microsoft 365. Excel for the web has the Name Manager as well.

FAQ

How do I name a range in Excel?

Select the range, click the Name Box left of the formula bar, type the name and press Enter. For more settings, use Formulas > Define Name.

How do I edit or delete a named range?

Open the Name Manager on the Formulas tab, select the name, then change the reference in the Refers to box or delete it. Formulas that use a deleted name show #NAME? afterwards.

What is the scope of a name?

It is where the name is recognized without extra qualification: the whole workbook or a single sheet. The same name can exist more than once if each one is scoped to a different sheet.

Can a name hold a fixed value?

Yes. In the New Name dialog, type a constant such as =0.2 in Refers to. The name then works like a cell that nobody can overwrite by accident, and you change the value in the Name Manager.

Up next: the order processing project

To finish Level 4 you price an order across four sheets: price, discount tiers, customer and tax by lookup, with missing items caught by IFERROR.

Start the project

Write to us

Choose language

Select your preferred language