What a name range does and why you'd use one
A name range is a label you assign to one or more cells in Excel so you can refer to them by name instead of by their cell address. Instead of writing a formula that says =SUM(B2:B47), you can name that range "MonthlyExpenses" and write =SUM(MonthlyExpenses) instead. The formula works exactly the same way, but it's easier to read and remember what the numbers mean.
Name ranges make your spreadsheets clearer, especially if you're building something complicated or sharing it with someone else. They also reduce mistakes — if you accidentally type the wrong cell address into a formula, you'll catch it faster when you're looking at a meaningful name. Once you create a name range, you can use it in any formula anywhere in that workbook.
Key Takeaways
- You create a name range by selecting the cells you want to name, then typing a name into the Name Box (the field to the left of the formula bar).
- Name ranges must start with a letter and can contain letters, numbers, and underscores, but not spaces or special characters.
- You can create a name range from multiple non-adjacent cells by holding Ctrl while clicking each group, then naming them all at once.
- Once created, a name range appears in the Name Box dropdown menu, and you can use it in any formula in that workbook.
- You can delete or edit a name range using the Name Manager, which you open by pressing Ctrl+F3 or going to the Formulas tab.
The fastest way: using the Name Box
The Name Box is the quickest method for creating a single name range. It's the field on the left side of the formula bar that normally shows the cell address (like "A1" or "C5:C10").
Step 1: Select the cell or range of cells you want to name. Click on the first cell, then hold Shift and click on the last cell to select a continuous range. If your cells are not next to each other, hold Ctrl and click each cell or range individually.
Step 2: Click in the Name Box (the field showing the cell address on the left side of the formula bar).
Step 3: Type the name you want to use. Use a name that describes what the cells contain — "AnnualRevenue", "Q3Sales", "EmployeeCount". Do not use spaces. You can use underscores or capital letters to separate words.
Step 4: Press Enter. Excel saves the name range and you're done. The Name Box now shows your new name instead of the cell address.
Creating a name range from the Formulas tab
If you prefer using the ribbon menu, you can create a name range through the Formulas tab. This method gives you more options and lets you add a description of what the range contains.
Step 1: Select the cells you want to name.
Step 2: Go to the Formulas tab at the top of the ribbon.
Step 3: Click "Define Name" (in some versions of Excel, this button is called "New Name"). A dialog box opens.
Step 4: In the "Name:" field, type the name for your range. In the "Refers to:" field, you'll see the cell address or range already filled in — you can leave this as is or change it.
Step 5: If you want, type a description in the "Comment:" field to remind yourself what this range contains. This is optional but helpful if you're sharing the spreadsheet.
Step 6: Click OK. The name range is now created.
Rules for naming a range
Excel has specific rules about what characters you can use in a name. Breaking these rules will cause Excel to reject your name and ask you to try again.
A name must start with a letter or an underscore. It can contain letters, numbers, and underscores after that. You cannot use spaces, hyphens, or special characters like @, #, or $. If you want to separate words, use an underscore (like "Monthly_Expenses") or capitalize each word (like "MonthlyExpenses").
Names are not case-sensitive — "MonthlyExpenses" and "monthlyexpenses" are treated as the same name. Do not use a name that looks like a cell address (like "A1" or "Z99"), because Excel will get confused. Also avoid names that are already Excel functions, like "SUM" or "COUNT".
Using your name range in a formula
Once you've created a name range, you can use it anywhere in your workbook. Open any cell and start typing a formula. When you get to the point where you would normally type a cell address, type your name range instead.
For example, if you created a name range called "SalesTotal" that refers to cells B2:B50, you can write =SalesTotal*1.1 to calculate a 10 percent increase. Or you can write =AVERAGE(SalesTotal) to find the average of all the sales figures. The formula works exactly as it would if you had typed the cell addresses.
When you're typing a formula and you start to type a name range, Excel will show you a dropdown list of matching names. You can click on the name you want, or keep typing and press Tab to insert it.
Editing or deleting a name range
If you need to change what cells a name range refers to, or if you want to delete a name range entirely, use the Name Manager. Press Ctrl+F3 on your keyboard, or go to the Formulas tab and click "Name Manager".
The Name Manager window shows all the name ranges in your workbook. Click on the name you want to change, then click "Edit". Change the cells in the "Refers to:" field and click OK. To delete a name range, click on it and then click "Delete".
Be careful when deleting a name range — if you have formulas in your spreadsheet that use that name, those formulas will break and show an error. Excel will not warn you before this happens, so double-check that you're not using the name anywhere before you delete it.
Name ranges with multiple non-adjacent cells
You can create a single name range that refers to cells that are not next to each other. This is useful when you want to perform the same calculation on separate groups of data.
Step 1: Click on the first cell or range you want to include.
Step 2: Hold Ctrl and click on each additional cell or range you want to add to the name range. Excel will highlight all of them.
Step 3: Click in the Name Box and type your name, then press Enter. Excel creates a single name range that refers to all the cells you selected, even though they're not adjacent.
When you use this name range in a formula, Excel treats all the cells as one group. For example, if you create a name range called "RegionalSales" that includes B2:B10 and D2:D10, then =SUM(RegionalSales) will add up all the cells in both ranges.
Frequently Asked Questions
Can I create a name range that includes entire columns or rows?
Yes. Select the entire column by clicking the column letter at the top, or select the entire row by clicking the row number on the left. Then create the name range the same way you would for any other selection. Be aware that if you add data to that column or row later, the name range will include the new data automatically.
What happens if I create two name ranges with the same name?
Excel will not let you. If you try to create a name range using a name that already exists, Excel will show an error and ask you to choose a different name. You can use the Name Manager to see all existing names in your workbook.
Can I use a name range in a formula in a different worksheet?
Yes, but you need to include the worksheet name in the formula. If your name range is called "SalesTotal" and it's on a sheet called "Data", you would write =SalesTotal if you're on the same sheet, or =Data.SalesTotal if you're on a different sheet. Some versions of Excel use an exclamation point instead: =Data!SalesTotal.
How do I see all the name ranges I've created?
Open the Name Manager by pressing Ctrl+F3 or going to Formulas > Name Manager. This window lists every name range in your workbook, shows what cells each one refers to, and lets you edit or delete them. You can also click the Name Box dropdown (the arrow next to the Name Box) to see a quick list of all your names.
Can I rename a name range without deleting it?
Yes. Open the Name Manager (Ctrl+F3), click on the name you want to change, click "Edit", and change the name in the "Name:" field. Click OK. The name range will now use the new name, and any formulas using the old name will break, so make sure you update those formulas too.