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.
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
| A | B | |
|---|---|---|
| 1 | VAT rate | 0.24 |
| 2 | ||
| 3 | Invoice | Net |
| 4 | INV-2041 | 1250 |
| 5 | INV-2042 | 380 |
| 6 | INV-2043 | 2915 |
| 7 | INV-2044 | 640 |
A VAT rate in B1 and invoice amounts in B4:B7.
- Click
B1, the cell holding the VAT rate. - Click inside the Name Box (left of the formula bar), where it currently says
B1. - Type
VAT_Rateand press Enter. Pressing Enter is essential; clicking away cancels the name. - Select
B4:B7, click the Name Box again, typeNetand press Enter. - In any empty cell type
=SUM(Net)*VAT_Rate. The result is 1,244.40.
| A | B | C | D | |
|---|---|---|---|---|
| 3 | Invoice | Net | VAT | Gross |
| 4 | INV-2041 | 1250 | 300 | 1550 |
| 5 | INV-2042 | 380 | 91.20 | 471.2 |
| 6 | INV-2043 | 2915 | 699.6 | 3614.6 |
| 7 | INV-2044 | 640 | 153.6 | 793.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.
| A | B | C | |
|---|---|---|---|
| 1 | Month | Revenue | Costs |
| 2 | Jan | 48200 | 31500 |
| 3 | Feb | 51900 | 33800 |
| 4 | Mar | 55100 | 34100 |
- Select the whole block including headings,
A1:C4. - Choose Formulas › Defined Names › Create from Selection (
Ctrl+Shift+F3). - Tick Top row only and click OK.
- Excel creates the names
Month(A2:A4),Revenue(B2:B4) andCosts(C2:C4). - 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.
- Open Formulas › Name Manager and click New.
- Name:
Target. Scope:Workbook. Comment:Monthly sales target. - Refers to:
=60000. A name does not need a cell; this is a named constant. - Click OK and Close. Now
=B2>=Targetworks on every sheet.
Naming rules
- Start with a letter, an underscore or a backslash. Then letters, numbers, periods and underscores.
- No spaces. Use
Sales_2026orSales.2026orSalesTotal. - Not the same as a cell address.
Q1andTAX2026look like cell references (column TAX exists), so Excel refuses them. UseQ1_SalesorTax_2026. - Up to 255 characters, but keep names short.
- Names are not case-sensitive:
vat_rateandVAT_Rateare 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
- Start typing a formula, for example
=SUM(. - 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. - 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:
- Convert the data to an Excel table and use its structured references, such as
Sales[Revenue]. Tables grow automatically; this is the recommended approach, see Excel tables and structured references. - In Microsoft 365, refer to a spilled range with the
#operator, as in=Months#. See Dynamic arrays: spill, FILTER, SORT, UNIQUE, SEQUENCE and #. - In older versions, define the name with a formula like
=OFFSET($B$2,0,0,COUNTA($B:$B)-1,1). OFFSET is volatile and recalculates often, so prefer a table when you can.
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.
#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.Check yourself
1. You type Price in the Name Box and then click on another cell. What happens?
The Name Box needs Enter to confirm the new name.
2. Which of these is a valid name?
Q1 is a cell address, spaces are not allowed and a name cannot start with a digit.
3. Why does =B2*VAT_Rate need no $ signs when copied down?
A name points to fixed cells, so it behaves like an absolute reference.
4. You want a separate name Total on each monthly sheet. What must you set?
Worksheet scope lets the same name exist once per sheet.
5. Which shortcut opens the Name Manager on Windows?
Ctrl+F3 opens Name Manager; Ctrl+Shift+F3 is Create from Selection; F3 is Paste Name.