In SQL, you alias a column or a subquery with AS customer_total so that the rest of the statement can refer to a meaningful name instead of an opaque expression. Excel's named ranges play the same role inside a workbook: they let you give a friendly, stable name to a cell, a range, a constant, or even a formula, and then reference that name everywhere — in formulas, data validation, conditional formatting, charts, and macros. A formula like =SUM(TaxRate * Sales[Amount]) reads instantly; =SUM($B$2*Sheet3!$D$2:$D$500) does not.
Part 1: Why Use Named Ranges?
Plain cell references work, but they have three structural weaknesses that names solve:
- Readability —
=Revenue - COGSdocuments intent in a way that=B12 - B13never can. A reviewer (or future-you) understands the formula without hunting for the cells. - Stability — A name resolves to whatever range it currently points at. If you insert rows or move the source, the name still resolves correctly. Formulas elsewhere in the workbook keep working without edits.
- Scope control — A name can be visible everywhere in the workbook (workbook scope) or only on a single sheet (sheet scope). This lets you reuse the same short name (
SalesTotal) on multiple sheets, each pointing at that sheet's own data. - Reusability — Names are exposed in dropdowns inside Data Validation, Conditional Formatting, the Name Box, and
F3Paste Name dialog — anywhere Excel asks for a range, you can type a name.
Part 2: Three Ways to Create a Named Range
Method 1: The Name Box (Fastest)
The Name Box is the small box at the far left of the formula bar, directly above column A.
- Select the range (e.g.,
B2:B100). - Click inside the Name Box.
- Type the new name (e.g.,
Sales). - Press
Enter— the press is what commits the name. Clicking elsewhere first will discard it.
Name Box → Sales (commits with Enter, scope = Workbook)
Method 2: Formulas → Define Name (Full Control)
The Define Name dialog gives you control over every property of the name.
- Select the range.
- Formulas tab > Defined Names group > Define Name.
- Fill out the dialog:
- Name: the new name (e.g.,
TaxRate). - Scope: Workbook (visible everywhere) or a specific sheet name (visible only on that sheet). - Comment: optional documentation that shows up in the Name Manager. - Refers to: the range or formula expression. Defaults to the current selection but can be edited; it can hold a formula like=Sheet1!$A$2:INDEX(Sheet1!$A:$A,COUNTA(Sheet1!$A:$A))for a dynamic range. - Click OK.
Method 3: Formulas → Create from Selection (Bulk)
When you have a labelled block — column headers in the top row, row labels in the left column — you can mass-create names from those labels in a single action.
- Select the entire labelled block (labels + data).
- Formulas tab > Defined Names group > Create from Selection (
Ctrl + Shift + F3). - In the dialog, tick the side(s) where the labels live: - Top row — column headers become names for each column's data. - Left column — row labels become names for each row's data. - Bottom row — labels at the bottom become names for each column's data above. - Right column — labels in the right-most column become names for each row's data.
- Click OK.
Labels → Names
"Q1 Sales" → Q1_Sales (spaces converted to underscores)
"Tax Rate" → Tax_Rate
Part 3: Naming Rules
Excel enforces a strict set of rules for name syntax. Names that violate these rules are rejected with an "Invalid Name" message.
| Rule | Detail |
|---|---|
| First character | Must be a letter, an underscore (_), or a backslash (\). |
| Remaining characters | Letters, digits, periods (.), underscores. No spaces allowed anywhere. |
| Length | Up to 255 characters. |
| Reserved single letters | R, r, C, c cannot be used alone — they're reserved for R1C1 reference style. |
| Cell-address lookalikes | Cannot match a real cell address (e.g., A1, XFD1048576). Excel will reject Q1 because it's a valid cell address. |
| Case | Names are not case-sensitive. SALES, Sales, and sales all refer to the same name. |
| Uniqueness | Workbook-scoped names must be unique across the workbook. Sheet-scoped names can repeat across sheets but must be unique on each sheet. |
Part 4: Scope — Workbook vs. Worksheet
Every name has a scope that controls where it can be referenced without qualification.
Workbook Scope (the default)
A workbook-scoped name is visible from any sheet, any formula, any chart, and from VBA. Use this for global constants, lookup tables, and any range you reference from multiple sheets.
=SUM(Sales) Works from any sheet
=Sales Works from any sheet
Worksheet (Sheet) Scope
A sheet-scoped name is only directly visible on the sheet where it was defined. From other sheets, you must qualify it with the sheet name:
=SUM(Sales) Works on Sheet1 (where the name was defined)
=SUM(Sheet1!Sales) Works from any other sheet
When to use each
- Workbook scope — Constants and lookup tables:
TaxRate,Customers,ExchangeRates. One canonical definition shared everywhere. - Sheet scope — Per-sheet locals: an
Q1-style monthly file with one sheet per month, each sheet has its ownSales,Expenses,Profit. Same names, different ranges, no collision.
Part 5: The Name Manager (Ctrl + F3)
The Name Manager is the central place to view, edit, filter, and delete every name in the workbook.
Opening the Name Manager
- Formulas tab > Defined Names group > Name Manager, or
- Press
Ctrl + F3.
What You See
The dialog shows a row per name with these columns:
| Column | Meaning |
|---|---|
| Name | The defined name |
| Value | A preview of the current value (or first few cells of a range) |
| Refers To | The expression behind the name (range, constant, or formula) |
| Scope | Workbook, or a specific sheet name |
| Comment | Optional documentation |
Actions
- New... — Open the same Define Name dialog as above.
- Edit... — Rename the name, change its formula, or update its comment. Scope cannot be changed after creation.
- Delete — Remove the name. Any formula that referenced it now shows
#NAME?. - Filter — Dropdown at the top-right with these filters:
- Names Scoped to Worksheet
- Names Scoped to Workbook
- Names with Errors — names whose
Refers Toevaluates to an error (e.g., the source range was deleted) - Names without Errors
- Defined Names
- Table Names — implicit names from Excel Tables
Part 6: Renaming a Range and Its Impact on Formulas
When you Edit a name in the Name Manager and change the spelling:
- Every formula in the workbook that referenced the old name is automatically rewritten to use the new name.
- Conditional formatting rules, data validation sources, chart series, and PivotTable filters that reference the name are also updated.
- VBA code that references the name by string (
Range("Sales")) is not updated — you must edit the macro manually.
Before: =SUM(Sales)
Edit: Sales → MonthlySales
After: =SUM(MonthlySales) ← rewritten automatically
Part 7: Using Names in Formulas
Once a name exists, you can use it anywhere a range or value is expected.
Typing the Name
Start typing the name in a formula and Excel's IntelliSense dropdown shows it alongside function names, with a small flag icon to distinguish it.
=SUM(Sales)
=AVERAGE(MonthlyRevenue)
=VLOOKUP(B2, CustomerTable, 3, FALSE)
=IF(Score > PassingMark, "Pass", "Fail")
The F3 Paste Name Dialog
When you're partway through writing a formula and want to insert a name without remembering its exact spelling:
- Begin a formula with
=. - Press
F3. - The Paste Name dialog opens, listing every name in scope.
- Pick the name and click OK — Excel inserts it at the cursor.
=SUM( ← cursor here
Press F3 → pick "Sales" → OK
=SUM(Sales)
The Paste Name dialog also has a Paste List button that writes a two-column reference table (Name | Refers To) into the worksheet starting at the active cell — a quick way to document the workbook's named ranges.
Part 8: Names in Data Validation, Conditional Formatting, and Dropdowns
Named ranges shine in features that ask for a range as input.
Data Validation Lists
In Data > Data Validation > List > Source, you can type =ProductCodes instead of selecting a range. The dropdown stays accurate even if you later move the source — only the named range needs updating.
Conditional Formatting
Use names inside formula-based rules:
=$E2 = TerminatedStatus Highlight rows where status equals the named cell value
Cascading (Dependent) Dropdowns with INDIRECT()
Combine Create from Selection + INDIRECT for two-level dropdowns. Cross-reference lesson 2.5 for the full pattern.
B2 dropdown source: =INDIRECT(A2)
When A2 contains France, INDIRECT resolves to the named range called France, producing a list of French cities.
Chart Series
In a chart, edit a series and replace the literal range with a named range to make the chart automatically follow a dynamic range expression.
Part 9: Names That Hold Constants or Formulas
A name doesn't have to point at cells. The Refers to field can hold:
- A literal constant —
=0.0825for a sales tax rate. Reference as=Price * TaxRateeverywhere. - A formula —
=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)for a self-resizing range. - A LAMBDA — Microsoft 365 lets you store reusable formulas as names. LAMBDA is beyond the MO-211 spec, so this course only references it briefly in the
3.5 Dynamic Arrays"Beyond the exam" callout.
Part 10: Cross-References
- Lesson 2.5 Data Validation — using named ranges as the source of List validation, including the cascading dropdown pattern with
INDIRECT(). - Lesson 2.12 Excel Tables and Structured References — Tables auto-create implicit names; structured references (
Sales[Amount]) are the modern alternative to defining explicit names for tabular data. - Lesson 3.x Logical Operations and
LET—LETdefines names that exist only inside a single formula, complementing workbook-level named ranges.