To name a range in Excel 365, select the cells, click the Name Box (left of the formula bar), type a name, and press Enter. That's the quickest method. You can also use Formulas > Define Name for more control. Named ranges make formulas easier to read and maintain, and they work across the workbook. Before you start, make sure your data is laid out in a contiguous block and that you have a clear, descriptive name in mind.
What You'll Need
- Excel 365 (desktop or web) – steps are similar across platforms, though the web version may have slight differences.
- A worksheet with data you want to name.
- A valid name: start with a letter, underscore, or backslash; no spaces; not a cell reference (like A1); up to 255 characters.
Step-by-Step
- Select the range. Click and drag to highlight the cells you want to name. For a single cell, just click it. If you want a dynamic range, consider using an Excel Table instead (naming a table is different).
- Click the Name Box. It's the small box on the left side of the formula bar, usually showing the active cell address (e.g., A1).
- Type a name. Enter a descriptive name, such as SalesData or TaxRate. Avoid spaces; use underscores or camel case. Names are not case-sensitive.
- Press Enter. The name is created and the range remains selected. You can now use the name in formulas, e.g.,
=SUM(SalesData). - Verify the name. Click the Name Box dropdown to see your new name listed. Selecting it will highlight the range.
- Alternative method: Formulas > Define Name. This opens a dialog where you can add a comment, set the scope (workbook or specific sheet), and confirm the range. Use this if you need more control.
- Edit or delete a name. Go to Formulas > Name Manager (or press Ctrl+F3). Select the name and click Edit or Delete. Changes apply immediately.
Common Mistakes
- Using spaces or special characters. Excel rejects names with spaces. Use underscores or no spaces.
- Starting with a number. Names must begin with a letter, underscore, or backslash.
- Using a cell reference as a name. Names like "A1" or "R1C1" are not allowed because they conflict with cell addresses.
- Forgetting scope. By default, names are workbook-level. If you create a sheet-level name, it's only available on that sheet. Check scope in Name Manager.
- Overlapping names. You can't have two names with the same name in the same scope. Excel will prompt you to choose a unique name.
Tips
- Use descriptive names. Q1_Revenue is better than Range1.
- Use names in formulas. They make formulas easier to read and audit.
- Create names from selection. Select a range with headers, then Formulas > Create from Selection (Ctrl+Shift+F3) to automatically name columns or rows.
- Dynamic ranges: If your data grows, consider converting the range to an Excel Table (Ctrl+T) and using table references instead of static named ranges.
- Name Manager is your friend. Use it to review all names, their references, and scopes.
Troubleshooting
- Name Box not visible? Go to View > Show > Name Box (or File > Options > Advanced > Display > Show Name Box).
- Name already exists? Excel will not allow duplicate names in the same scope. Choose a different name or edit the existing one.
- Name not working in formulas? Check the scope: if the name is sheet-level, it won't work on other sheets. Also, ensure the name is spelled correctly and hasn't been deleted.
- Name refers to an error? If the referenced cells are deleted, the name may show #REF!. Edit the name in Name Manager to fix the reference.
- Cannot create name from selection? Ensure the selection includes headers and that the headers are valid names (no spaces, etc.).
Frequently Asked Questions
Can I name a range that spans multiple sheets?
No, a named range must be on a single sheet. You can create a name that refers to a 3D reference (e.g., Sheet1:Sheet3!A1:A10) but that's advanced and not recommended for beginners.
How do I see all named ranges in a workbook?
Go to Formulas > Name Manager (Ctrl+F3). It lists all names, their values, and scopes.
Can I use a named range in data validation?
Yes, you can use a named range as the source for a data validation list. Just type the name in the Source box.
What happens if I rename a sheet that has a named range?
Excel automatically updates the references in named ranges to reflect the new sheet name. No action needed.
Can I name a constant value?
Yes, in Name Manager, click New and in the Refers to box, type a value like =100. Then you can use the name in formulas.
Are named ranges case-sensitive?
No, Excel treats names as case-insensitive. "Sales" and "sales" are the same name.