In Excel: select the range, type a name like SalesData in the Name Box (left of the formula bar) and press Enter, then use =SUM(SalesData) in place of =SUM(B2:B100).
Select the cell or range you want to name.
Use Formulas ▸ Define Name, or type the name in the Name Box (left of the formula bar) and press Enter.
Or select a range with header labels and use Formulas ▸ Create from Selection to name it from the headers.
Use the name in formulas, e.g. =SUM(SalesData).
Open Name Manager (Ctrl+F3) to edit or delete names.
What this does
A named range is a human-readable label for a cell or range. Once defined, you can use the name in any formula instead of cell references, so =SUM(SalesData) reads more clearly than =SUM(B2:B100) and survives when rows move. Names are workbook-scoped by default. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “what is the name box in excel”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a text operation that turns messy entries into clean, usable data, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
Select B2:B100, click the Name Box at the left of the formula bar, type SalesData and press Enter. Now =SUM(SalesData) totals the column and reads as plain English instead of =SUM(B2:B100). Named ranges make formulas readable and self-documenting, so a sheet someone else built is easy to follow and safe to edit. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. The short version of “what is the name box in excel”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
Common mistakes
- Using spaces in a name (not allowed — use SalesData or Sales_Data).
- Starting a name with a number (names must start with a letter or underscore).
- Choosing a name that looks like a cell reference such as
A1orQ3. - Forgetting that a workbook-scoped name must be unique across the whole workbook.
Frequently asked questions
How do I create a named range?
Select the range, then use Formulas ▸ Define Name or type a name in the Name Box and press Enter.
Where is the Name Box?
It is the small box at the left end of the formula bar that shows the current cell address.
How do I edit or delete a named range?
Open Name Manager with Ctrl+F3, then edit or delete any name there.
Can I do this in Google Sheets?
Yes. Use Data ▸ Named ranges to define and manage names.
Other ways people ask this
On the way here you may have searched this as “what is the sheet name code in excel” and “what is a name box in excel” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “what is the sheet name code in excel”, “what is a name box in excel” all point at the one operation explained on this page, which is why they all lead here.