What a named range is
A named range is a label for a cell or a group of cells. Say you name F1 Tax_Rate. Then =Tax_Rate*B2 does the same job as =$F$1*B2, but it reads more clearly. The name stays the same when you copy the formula.
Create a name with the Name Box
- Select the cell or range you want to name.
- Click the Name Box, the small box at the left end of the formula bar. It normally shows the address of the active cell.
- Type the name and press Enter.
Create a name with Define Name
- Select the cell or range.
- Go to Formulas > Define Name.
- Enter the name, check the scope and the Refers to box, and select OK.
The scope decides where the name works. Workbook scope makes the name available on every sheet. Sheet scope limits it to the sheet where you define it.
Create names from labels
If your data already has labels, such as a header in the top row, select the labels together with the data. Then choose Formulas > Create from Selection, or press Ctrl+Shift+F3. Excel names each column or row from its label, depending on which options you tick.
Naming rules
- The first character must be a letter, an underscore or a backslash.
- Use no spaces. Separate words with underscores or periods, such as
Sales_Tax. - A name can’t look like a cell address.
TAX2024is not allowed, because it is the cell in column TAX, row 2024. - The single letters R and C are reserved and can’t be used as names.
- Names aren’t case sensitive.
Tax_Rateandtax_rateare the same name.
Use a name in a formula
Type the name as you would any function. Excel suggests matching names as you type. You can also go to Formulas > Use in Formula and pick the name from the list.
Names are absolute by default. They don’t shift when you copy a formula, so you don’t need dollar signs.
Manage names
Open Name Manager from Formulas > Name Manager, or press Ctrl+F3. It lists every name, the cells it refers to, and its scope. You can edit a name’s Refers to box or delete a name you no longer need. Every formula that uses a name updates when its Refers to box changes.
Where names help
- Pivot table source. A named range can serve as the source for a pivot table. How the source is set and changed is covered in change data source of pivot table excel.
- Drop-down lists. A named range can supply the list for a data validation drop-down.
- Values inside one formula. The LET function gives a temporary name to a value inside a single formula. That is a separate idea from workbook names. The steps are in let function in excel example.
Excel Tables as another option
Press Ctrl+T to turn a range into an Excel Table. Table columns can then be referenced by name, such as Sales[Amount], and the reference grows as you add rows.
Common errors
#NAME? appears when Excel does not recognize a name. The usual causes are a typo, a name that was deleted, or a name that was defined in a different workbook. The error is explained in why does excel show #name error.