Creating and Using Named Ranges
Give a range a meaningful name and use it inside formulas.
Creating and Using Named Ranges is a free Excel Formulas Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
What Is a Named Range?
A named range lets you give a friendly label to a cell or block of cells. Instead of remembering that your sales figures live in B2:B13, you can simply call that area Sales.
Once a range has a name, you can use that name anywhere you would normally type the address. Your formulas read like plain English, and they stop breaking when you move the data around.
=SUM(B2:B13)becomes=SUM(Sales)- Names work in both Excel and Google Sheets
=SUM(Sales)Why Bother Naming Ranges?
Named ranges solve three everyday problems:
- Readability —
=Revenue-Costsis instantly clearer than=C2-C3. - Reliability — the name follows the data, so inserting rows above will not point the formula at the wrong cells.
- Reuse — type one name in many formulas instead of re-typing a long address.
For a tax rate stored in one cell, a name like TaxRate makes every formula self-documenting.
Naming a Range in Excel
The fastest way in Excel uses the Name Box — the little box to the left of the formula bar that normally shows the active cell address.
- Select the cells you want to name, for example
B2:B13. - Click inside the Name Box.
- Type a name like
Salesand press Enter.
That is it. The range is now named and ready to use in any formula across the workbook.
Naming a Range in Google Sheets
Google Sheets uses a menu instead of the Name Box.
- Select your cells, such as
B2:B13. - Open the Data menu and choose Named ranges.
- Type a name in the side panel and click Done.
The panel also lists every name you have created, so you can edit or delete them later. The result is identical to Excel: you can now write =SUM(Sales).
=SUM(Sales)Rules for Naming
Both Excel and Sheets enforce a few naming rules. Keep these in mind to avoid errors:
- Start with a letter or underscore, never a number.
- No spaces — use
Unit_PriceorUnitPriceinstead ofUnit Price. - A name cannot look like a cell address, so
Q1is rejected butQuarter1works. - Names are not case sensitive:
salesandSalespoint to the same range.
A Worked Example
Imagine a sheet where column B holds monthly sales and you have named B2:B13 as Sales.
Now totals and averages become effortless and easy to read:
- Total sales:
=SUM(Sales) - Average month:
=AVERAGE(Sales) - Best month:
=MAX(Sales)
Anyone opening the file understands these formulas at a glance, even without seeing the underlying addresses.
=AVERAGE(Sales)Names Across Sheets
A named range usually has workbook scope, meaning it works from any tab. If your data sits on a sheet called Data, you can write a formula on a Summary tab without typing the sheet name.
Compare the two approaches:
- Without a name:
=SUM(Data!B2:B13) - With a name:
=SUM(Sales)
The name hides the sheet reference, so your summary formulas stay short and clean.
=SUM(Data!B2:B13)Using Names in Bigger Formulas
Named ranges shine when formulas grow longer. Suppose Revenue and Costs each point to a range of values. A profit margin formula reads like a sentence:
=(SUM(Revenue)-SUM(Costs))/SUM(Revenue)
You could also pair names with conditional functions, such as totaling sales for a region:
=SUMIF(Region,"East",Sales)
Here Region and Sales are both named ranges of equal length.
=SUMIF(Region,"East",Sales)Editing and Deleting Names
Names are not permanent. In Excel, open the Name Manager from the Formulas tab to rename a range, change which cells it covers, or delete it entirely.
In Google Sheets, the same controls live in the Named ranges side panel under the Data menu.
- Changing the cells updates every formula that uses the name.
- Deleting a name turns its formulas into
#NAME?errors, so update them first.
The NAME Error
If you see #NAME? in a cell, the spreadsheet does not recognize a name you typed. Common causes include:
- A typo — you wrote
Salebut the range isSales. - The name was deleted or never created.
- A space crept in, like
=SUM( Sales )spelled wrong.
Open the Name Manager to check the exact spelling, then fix the formula. The error clears as soon as the name resolves.
Best Practices
A few habits keep named ranges helpful instead of confusing:
- Use descriptive names like
QuarterlySales, notRange1. - Keep a naming style consistent, such as PascalCase everywhere.
- Name ranges you reuse often, not every single cell.
- Document your names in the Name Manager so teammates understand them.
Well-chosen names turn a cryptic workbook into one that almost explains itself.
Quick Check
You named the range B2:B13 as Sales. Which formula correctly totals it?
Recap
You learned that a named range gives a label to one or more cells so formulas read clearly and survive layout changes.
- Create names with the Name Box (Excel) or Data > Named ranges (Sheets).
- Follow the rules: start with a letter, no spaces, not a cell-like name.
- Use names anywhere you would type an address, even across sheets.
- Manage names in the Name Manager; watch for
#NAME?typos.
Next you will name fixed values and reusable formulas.
=SUM(Sales)Frequently asked questions
Is the “Creating and Using Named Ranges” lesson free?
Yes — the full text of “Creating and Using Named Ranges” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.
What will I learn in “Creating and Using Named Ranges”?
Give a range a meaningful name and use it inside formulas. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Excel Formulas Academy?
No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Creating and Using Named Ranges” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Excel Formulas Academy lesson?
Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Creating and Using Named Ranges
- Naming Constants and Formulas
- Restricting Input With Data Validation
- Building Dropdown Lists