Tabellab

Why Names? $B$1 versus TaxRate

Lesson 1 of 20Lab

All lessons
  1. Why Names? $B$1 versus TaxRateLabFree
  2. Using Named Constants: TaxRate, ShipFee, FreeShipFrom & MemberDiscountLab Locked
  3. Naming Ranges with the Name Box: SUM, AVERAGE, COUNTIF and SUMIFLab Locked
  4. Names in Lookups: VLOOKUP and XLOOKUP on Named TablesLab Locked
  5. Assumption Blocks and Scenario Inputs with NamesLab Locked
  6. Naming Rules, Conventions, Scope and #NAME? ErrorsLab Locked
  7. Refactoring a Model from Cell References to NamesLab Locked
  8. Mid-course project: A Named-Range Dashboard and ChartLab Locked
  9. Named Criteria Cells: SUMIFS, COUNTIFS and AVERAGEIFS with a SelectorLab Locked
  10. A Named Cross-Tab: Mechanic × Job Type Hours with Mixed ReferencesLab Locked
  11. Two-Way Lookups on a Named Rate Grid: INDEX with Two MATCHesLab Locked
  12. Growing Lists: Dynamic Named Ranges with OFFSET and COUNTALab Locked
  13. Choosing a Named Range by Text: INDIRECT, Dependent Lists and a Validation RuleLab Locked
  14. Named Constants Without Cells: Labour Rate, Billing Step, Markup and Minimum ChargeLab Locked
  15. Control Checks with Names: Tie-Outs, Blanks, Duplicates and One OK FlagLab Locked
  16. Break-Even and Price Sensitivity from Named DriversLab Locked
  17. Named Dates: AsOfDate, a Season Window and Overdue Rental InvoicesLab Locked
  18. Budget vs Actual with Named Tolerances: Variance Flags, Highlighting and a Bar ChartLab Locked
  19. Moving Windows with Names: a Selected Month, a Window Size and OFFSETLab Locked
  20. Final Project: A Named Multi-Store Dashboard with Selector, KPIs and ChartLab Locked

You are not signed in — the lab works, but your progress is not saved. Sign up

Lesson 1 of 20 is free. Unlock all 20 hands-on labs, the final exam and your certificate.

Buy course — $9.90
Loading the spreadsheet…

Why $B$1 is hard to read, and what a name fixes

You open a workbook someone else built (or that you built six months ago) and find =B4*$B$1. To understand it you have to click B1, read the label next to it, and remember what it means while you look back at the formula. Now imagine the same formula written as =B4*TaxRate. You understand it at a glance, before you even look at the sheet. That is the whole idea of defined names in Excel, and it is the subject of this free first lesson.

This guide is for anyone who builds spreadsheets other people have to read or trust: shop owners pricing a product list, bookkeepers preparing invoices, analysts building a forecast, students handing in a model. If you have ever copied a formula down and watched a reference slide from B1 to B2, B3 and B4, or if you have ever been asked "where does this number come from?", names are the cheapest fix Excel offers. They cost nothing, they work in every desktop version of Excel, and they make formulas both easier to read and harder to break.

We use the same example as the lab above: Orchard Lane Cycles, a fictional bike shop that keeps its sales tax rate in one cell, B1, and adds tax to six items on its price list. The 8% rate is an illustrative number for practice, not the rate of any real country or state.

The core concept: a name is a label for a cell, a range or a value

A defined name is a word you attach to a cell (B1), a range (B4:B9), a constant (0.08) or even a formula. Once B1 is named TaxRate, you can write TaxRate anywhere you would have written $B$1. Excel stores the name in the workbook together with its Refers to address, here =Sheet1!$B$1.

Three properties make names so useful. First, a name created from a selected cell is absolute: it always points to the same cell, so you can copy a formula anywhere without dollar signs. Second, a name is self-documenting: the formula tells the reader what it uses, not only where it lives. Third, a name is one place to change: if the tax rate moves to another cell, you edit the name once in the Name Manager and every formula follows.

Names are not case-sensitive. taxrate, TAXRATE and TaxRate are the same name, and Excel always displays the spelling you used when you defined it. That is a handy check: if you type a name in lower case and Excel does not convert it to your defined spelling when you press Enter, you have probably misspelt it.

What happens when you copy the tax formula from C4 downRelative: B1=B4*B1right=B5*B2wrong=B6*B3wrongAbsolute: $B$1=B4*$B$1right=B5*$B$1right=B6*$B$1rightName: TaxRate=B4*TaxRateright=B5*TaxRateright=B6*TaxRaterightRow 4 → 5 → 6: Excel shifts every relative reference by one row when you copy down.B2 is empty and B3 is a header, so the copies return 0 and #VALUE! instead of tax.$B$1 and TaxRate both stay on B1, but only the name tells a reader what B1 means.
Copying a formula down shifts relative references. $B$1 and the name TaxRate both stay on B1, but the name also explains itself.

Worked example: tax on the Orchard Lane Cycles price list

The shop has six items with net prices in B4:B9 and the tax rate (8%, for example) in B1. We calculate the tax twice, once with an absolute reference and once with the name, and then the gross price. The results are identical; only the readability differs.

Item (A)Net price (B)Tax with $B$1 (C)Tax with name (D)Gross price (E)
City bike649.00=B4*$B$1 → 51.92=B4*TaxRate → 51.92=B4*(1+TaxRate) → 700.92
Gravel bike1,490.00119.20119.201,609.20
Kids bike289.0023.1223.12312.12
Helmet79.906.396.3986.29
Lock44.503.563.5648.06
Floor pump32.002.562.5634.56
Total2,584.40206.75206.752,791.15

The formulas are entered once in row 4 and copied down to row 9: C4: =B4*$B$1, D4: =B4*TaxRate and E4: =B4*(1+TaxRate). Notice that the gross price uses 1+TaxRate: multiplying by 1.08 adds the tax to the net price in one step. You could also write =B4+D4, which gives the same 700.92 for the city bike. The totals row is a plain =SUM(B4:B9), =SUM(C4:C9) and so on. The helmet tax is 6.392, which Excel displays as 6.39 with a currency format; the stored value keeps all decimals, so totals can differ by a cent from a sum of rounded displays. If your invoices must add up to the displayed cents, round each line with =ROUND(B4*TaxRate,2).

Now change B1 from 8% to 7.5%. Every value in columns C, D and E updates immediately, because all of them point to the same cell. The difference shows up only when someone has to read or maintain the sheet: =B7*TaxRate needs no explanation, =B7*$B$1 does.

Net price + tax (TaxRate = 8%)04509001,3501,800City bike700.92Gravel bike1,609.20Kids bike312.12Helmet86.29Lock48.06Floor pump34.56Net priceTax
Net price and tax for each item at the example rate of 8%. The tax part is small for accessories but adds 119.20 to the gravel bike.

Step by step: create and use the name TaxRate in Excel

  1. Type the label Sales tax rate in A1 and the rate 8% (or 0.08) in B1. Format B1 as a percentage with Ctrl+Shift+%.
  2. Click B1. Look at the Name box, the small field to the left of the formula bar: it shows B1.
  3. Click into the Name box, type TaxRate (no spaces) and press Enter. Pressing Enter is essential: if you click away instead, the name is not created.
  4. Click another cell and then B1 again. The Name box now shows TaxRate instead of B1. The name exists.
  5. In C4 type =B4*$B$1. Tip: type =B4*B1 and press F4 once while the cursor is on B1 to add both dollar signs. Copy down to C9 by double-clicking the fill handle (the small square at the bottom-right of the selection).
  6. In D4 type =B4*Ta. Excel's formula AutoComplete lists TaxRate with a name tag icon; press Tab to accept it, then Enter. Copy down to D9.
  7. In E4 type =B4*(1+TaxRate) and copy down to E9.
  8. Open Formulas > Name Manager (Windows shortcut Ctrl+F3). You see TaxRate, its current value (0.08) and its Refers to address =Sheet1!$B$1. This is where you edit, rename or delete names later.
  9. To jump to a named cell from anywhere in the workbook, open the Name box drop-down (the small arrow) or type the name into it and press Enter. Excel selects the cell, even on another sheet.
Renaming in the Name Manager is safe: if you rename TaxRate to SalesTaxRate, Excel rewrites every formula that uses it. Typing the new name into the Name box is different: it adds a second name for the same cell and leaves the old one in place.

How Excel resolves =B4*TaxRateFormula in D4=B4*TaxRateName ManagerTaxRate → =Sheet1!$B$1Cell B10.08 (8%)Result in D4: 649 × 0.08 = 51.92Change B1 to 0.081 and every formula that uses TaxRate updates at once.Move B1 elsewhere (cut and paste, insert rows) and the name follows the cell.
A name is a lookup: the formula asks for TaxRate, the Name Manager answers with Sheet1!$B$1, and B1 supplies the value.

Other ways to create names

The Name box is the fastest way for a single cell, but Excel offers three more methods that you will use as your models grow:

  • Formulas > Define Name opens a dialog where you type the name, choose its scope (the whole workbook or one sheet), add a comment that appears as a tooltip, and set the Refers to box. Use it when you want to document what the name means.
  • Formulas > Create from Selection (Windows Ctrl+Shift+F3) turns labels into names in bulk. Select A1:B1, choose Left column, and Excel names B1 after the text in A1. Labels with spaces become names with underscores, so Sales tax rate becomes Sales_tax_rate.
  • Named constants do not need a cell at all. In Define Name, type =0.08 into Refers to. The rate is then hidden from the grid, which is good for values that never change and bad for assumptions people should see. For a tax rate, a visible input cell is usually the better choice.
  • Excel tables (Insert > Table, Ctrl+T) give every column an automatic name such as Prices[Net price]. These structured references grow with the table and are covered later in the course together with lookups.

Naming rules you have to follow

Excel is strict about what a name may look like. The rules are short: a name must start with a letter, an underscore or a backslash; it may contain letters, numbers, periods and underscores; it may not contain spaces; it may not look like a cell reference; and it can be up to 255 characters long. The single letters R and C are reserved. The surprising one is the cell-reference rule: since Excel 2007 the grid has columns up to XFD, so a name like TAX2026 is rejected because column TAX, row 2026 is a real cell.

NameAllowed?Why
TaxRatevalidStarts with a letter, no spaces.
Tax_RatevalidUnderscores are allowed and are a common replacement for spaces.
Tax RateinvalidSpaces are not allowed.
2026RateinvalidA name must start with a letter, an underscore or a backslash.
TAX2026invalidLooks like a cell address: column TAX, row 2026 exists in modern Excel.
R or CinvalidReserved for the R1C1 reference style.

A good convention is PascalCase without units in the name (TaxRate, ShipFee, FreeShipFrom), or a short prefix for inputs such as in_TaxRate if your model has hundreds of names. Pick one style per workbook and keep it.

Excel named ranges course: a spreadsheet where the cell B1 is labelled TaxRate in the Name box
Names turn cell addresses into business words: this course takes you from one named cell to a dashboard built only from names.

Common mistakes and how to spot them

  • Forgetting Enter in the Name box. You type TaxRate, click somewhere else, and the name is gone. Spot it: click B1 again; if the Name box shows B1, the name was not created.
  • Misspelt names give #NAME?. =B4*TaxRtae returns #NAME? because Excel cannot find a name or function with that spelling. Spot it: a correctly typed name is converted to your defined capitalisation when you press Enter; a misspelt one stays exactly as typed.
  • Putting a name in quotes. =COUNTIF(B4:B9,">MinPrice") compares with the literal text MinPrice. Concatenate instead: =COUNTIF(B4:B9,">"&MinPrice).
  • Naming the wrong cell. If you click B2 by accident before typing the name, TaxRate points to an empty cell and every tax becomes 0. Spot it: in the Name Manager, the Value column shows the current content of each name.
  • Duplicate names for one cell. Typing a new name into the Name box for a cell that already has a name creates a second name rather than renaming the first. Clean up in the Name Manager.
  • Deleting the named cell. If you delete row 1, TaxRate becomes =Sheet1!#REF! and every formula using it returns #REF!. Spot it: filter the Name Manager by Names with Errors.
  • Mixing styles. A model where half the formulas use TaxRate and half still use $B$1 is harder to audit than either style alone. On Windows, Formulas > Define Name > Apply Names replaces matching references with names in the selected cells.
When you copy a sheet that contains names, or copy cells into another workbook, Excel may copy the names too and sometimes asks whether to keep or rename a conflicting name. If the Name Manager suddenly lists duplicates with a sheet scope, this is usually where they came from.

Quick reference: names, shortcuts and functions used here

Function, tool or shortcutWhat it does
=B4*TaxRateUse a defined name in a formula exactly like a cell reference.
Name box (left of the formula bar)Select a cell, type a name, press Enter to create it. Type an existing name and press Enter to jump to it.
Formulas > Define NameCreate a name with a comment and a scope (Workbook or one sheet).
Ctrl+F3 (Windows)Open the Name Manager: edit, delete or filter all names.
Ctrl+Shift+F3 (Windows)Create from Selection: turn labels next to cells into names in one step.
F3 (Windows)Paste Name: insert a name into the formula you are typing.
F4While editing, cycle a reference through B1, $B$1, B$1, $B1.
=SUM(Revenue)Names work inside any function that accepts a range.
=LET(rate,0.08,B4*rate)A name that exists only inside one formula (Microsoft 365, Excel 2021+).

Real-world uses for defined names

  • Pricing and invoicing: a shop keeps TaxRate, ShipFee and MemberDiscount in a small input block. When a rate changes, one cell is edited and every quote and invoice template follows.
  • Budgets and forecasts: a finance team names its assumptions (Inflation, GrowthRate, FXRate_EUR) so that a reviewer can read =Revenue*(1+GrowthRate) instead of hunting for cell D3 on an assumptions sheet.
  • Drop-down lists: Data Validation with Source =Categories points to a named list, so you can move or extend the list without editing every validation rule.
  • Dashboards: charts and KPI cells that read from names like TotalProfit or TargetMargin keep working when the data sheet is reorganised.
  • Handing over a workbook: a colleague, an auditor or your future self can open the Name Manager and see every important input with its value and a comment, which is far faster than reverse-engineering cell addresses.

What you will build in the rest of this course

Using Named Constants: TaxRate, ShipFee, FreeShipFrom & MemberDiscount. You price eight web-shop orders with four named inputs and not a single dollar sign. The formulas read like the shop's pricing policy, including the free-shipping threshold logic with IF, so you can check the rules by reading them.

Naming Ranges with the Name Box: SUM, AVERAGE, COUNTIF and SUMIF. Names are not only for single cells. You summarise twelve bike orders with range names, defining two yourself, and write summaries like =SUMIF(Category,"E-bike",Revenue) that explain themselves.

Names in Lookups: VLOOKUP and XLOOKUP on Named Tables. You price a dealer order against a named price list and find a volume discount in a tier table you name yourself. Lookups are where cell references break most often, and names make them robust.

Assumption Blocks and Scenario Inputs with Names. You drive a five-year e-bike revenue plan from a named scenario switch, pick the active growth and price increase with INDEX/MATCH and project units, prices and revenue. This is the structure professional forecast models use.

Naming Rules, Conventions, Scope and #NAME? Errors. You repair invalid names, fix a formula with a misspelt name and avoid the classic "name inside quotes" trap in COUNTIF, so the errors in this article never cost you an afternoon.

Refactoring a Model from Cell References to Names. You take a gravel-bike profit model full of cell addresses and rebuild it with names. The results stay the same, but every formula ends up reading like the business logic behind it.

Mid-course project: A Named-Range Dashboard and Chart. You build the shop's 2026 dashboard from names only: total profit, best month, months on target, and a chart of revenue against costs. You finish with the Tabellab certificate in readable Excel models.

Summary: try it in the lab above

A defined name is a label for a cell, range or value. Created from a selected cell, it is absolute, so =B4*TaxRate copies down safely without dollar signs, and it explains itself to anyone who reads the formula. Create names in the Name box (type and press Enter), with Define Name or with Create from Selection; manage them in the Name Manager; and follow the rules: no spaces, no leading digit, nothing that looks like a cell address.

Now scroll up to the interactive lab and do it yourself: calculate Orchard Lane Cycles' tax with $B$1 in column C and with TaxRate in column D, build the gross price, and find the cell the name points to. It takes about fifteen minutes, the Coach checks every step, and afterwards you will never look at a dollar sign in a formula the same way again.

Frequently asked questions

What is a named range in Excel?

A named range is a defined name that refers to a cell or a range of cells, for example TaxRate for B1 or Revenue for C2:C50. You can use the name in formulas instead of the address, such as =B4*TaxRate.

How do I create a named range quickly?

Select the cell or range, click into the Name box to the left of the formula bar, type the name without spaces and press Enter. You can also use Formulas > Define Name or Create from Selection.

Is a named range absolute or relative?

A name created from a selection is absolute by default (it refers to $B$1, not B1), so you can copy a formula that uses it anywhere without adding dollar signs.

Why does my formula show #NAME? when I use a name?

Excel cannot find the name, usually because of a typo, because the name was never created (Enter not pressed in the Name box) or because it has sheet scope on a different sheet. Check the spelling in the Name Manager (Ctrl+F3 on Windows).

Can a named range contain spaces?

No. Names cannot contain spaces. Use PascalCase such as TaxRate or underscores such as Tax_Rate instead.

How do I edit or delete a named range?

Open Formulas > Name Manager, select the name, then use Edit to change its name or Refers to address, or Delete to remove it. Formulas that still use a deleted name will show #NAME?.

Keep going: Excel Named Ranges & Readable Models: Constants, Names and the Name Box

This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time $9.90.

  1. Using Named Constants: TaxRate, ShipFee, FreeShipFrom & MemberDiscount
  2. Naming Ranges with the Name Box: SUM, AVERAGE, COUNTIF and SUMIF
  3. Names in Lookups: VLOOKUP and XLOOKUP on Named Tables
  4. Assumption Blocks and Scenario Inputs with Names
  5. Naming Rules, Conventions, Scope and #NAME? Errors
  6. Refactoring a Model from Cell References to Names
  7. Mid-course project: A Named-Range Dashboard and Chart
  8. Named Criteria Cells: SUMIFS, COUNTIFS and AVERAGEIFS with a Selector
  9. A Named Cross-Tab: Mechanic × Job Type Hours with Mixed References
  10. Two-Way Lookups on a Named Rate Grid: INDEX with Two MATCHes
  11. Growing Lists: Dynamic Named Ranges with OFFSET and COUNTA
  12. Choosing a Named Range by Text: INDIRECT, Dependent Lists and a Validation Rule
  13. Named Constants Without Cells: Labour Rate, Billing Step, Markup and Minimum Charge
  14. Control Checks with Names: Tie-Outs, Blanks, Duplicates and One OK Flag
  15. Break-Even and Price Sensitivity from Named Drivers
  16. Named Dates: AsOfDate, a Season Window and Overdue Rental Invoices
  17. Budget vs Actual with Named Tolerances: Variance Flags, Highlighting and a Bar Chart
  18. Moving Windows with Names: a Selected Month, a Window Size and OFFSET
  19. Final Project: A Named Multi-Store Dashboard with Selector, KPIs and Chart

Buy course — $9.90 See the full course