Name a cell
-
Select a cell.
-
In the Name Box, type a name.
-
Press Enter.
To reference this value in another table, type th equal sign (=) and the Name, then select Enter.
Define names from a selected range
-
Select the range you want to name, including the row or column labels.
-
Select Formulas > Create from Selection.
-
In the Create Names from Selection dialog box, designate the location that contains the labels by selecting the Top row, Left column, Bottom row, or Right column check box.
-
Select OK.
Excel names the cells based on the labels in the range you designated.
Use names in formulas
-
Select a cell and enter a formula.
-
Place the cursor where you want to use the name in that formula.
-
Type the first letter of the name, and select the name from the list that appears.
Or, select Formulas > Use in Formula and select the name you want to use.
-
Press Enter.
Manage names in your workbook with Name Manager
-
On the ribbon, go to Formulas > Name Manager. You can then create, edit, delete, and find all the names used in the workbook.
Name a cell
-
Select a cell.
-
In the Name Box, type a name.
-
Press Enter.
Define names from a selected range
-
Select the range you want to name, including the row or column labels.
-
Select Formulas > Create from Selection.
-
In the Create Names from Selection dialog box, designate the location that contains the labels by selecting the Top row,Left column, Bottom row, or Right column check box.
-
Select OK.
Excel names the cells based on the labels in the range you designated.
Use names in formulas
-
Select a cell and enter a formula.
-
Place the cursor where you want to use the name in that formula.
-
Type the first letter of the name, and select the name from the list that appears.
Or, select Formulas > Use in Formula and select the name you want to use.
-
Press Enter.
Manage names in your workbook with Name Manager
-
On the Ribbon, go to Formulas > Defined Names > Name Manager. You can then create, edit, delete, and find all the names used in the workbook.
In Excel for the web, you can use the named ranges you’ve defined in Excel for Windows or Mac. Select a name from the Name Box to go to the range’s location, or use the Named Range in a formula.
For now, creating a new Named Range in Excel for the web is not available.
What’s in the name?
If you are working with Excel spreadsheets, it could mean a lot of time saving and efficiency.
In this tutorial, you’ll learn how to create Named Ranges in Excel and how to use it to save time.
Named Ranges in Excel – An Introduction
If someone has to call me or refer to me, they will use my name (instead of saying a male is staying in so and so place with so and so height and weight).
Right?
Similarly, in Excel, you can give a name to a cell or a range of cells.
Now, instead of using the cell reference (such as A1 or A1:A10), you can simply use the name that you assigned to it.
For example, suppose you have a data set as shown below:
In this data set, if you have to refer to the range that has the Date, you will have to use A2:A11 in formulas. Similarly, for Sales Rep and Sales, you will have to use B2:B11 and C2:C11.
While it’s alright when you only have a couple of data points, but in case you huge complex data sets, using cell references to refer to data could be time-consuming.
Excel Named Ranges makes it easy to refer to data sets in Excel.
You can create a named range in Excel for each data category, and then use that name instead of the cell references. For example, dates can be named ‘Date’, Sales Rep data can be named ‘SalesRep’ and sales data can be named ‘Sales’.
You can also create a name for a single cell. For example, if you have the sales commission percentage in a cell, you can name that cell as ‘Commission’.
Benefits of Creating Named Ranges in Excel
Here are the benefits of using named ranges in Excel.
Use Names instead of Cell References
When you create Named Ranges in Excel, you can use these names instead of the cell references.
For example, you can use =SUM(SALES) instead of =SUM(C2:C11) for the above data set.
Have a look at ṭhe formulas listed below. Instead of using cell references, I have used the Named Ranges.
- Number of sales with value more than 500: =COUNTIF(Sales,”>500″)
- Sum of all the sales done by Tom: =SUMIF(SalesRep,”Tom”,Sales)
- Commission earned by Joe (sales by Joe multiplied by commission percentage):
=SUMIF(SalesRep,”Joe”,Sales)*Commission
You would agree that these formulas are easy to create and easy to understand (especially when you share it with someone else or revisit it yourself.
No Need to Go Back to the Dataset to Select Cells
Another significant benefit of using Named Ranges in Excel is that you don’t need to go back and select the cell ranges.
You can just type a couple of alphabets of that named range and Excel will show the matching named ranges (as shown below):
Named Ranges Make Formulas Dynamic
By using Named Ranges in Excel, you can make Excel formulas dynamic.
For example, in the case of sales commission, instead of using the value 2.5%, you can use the Named Range.
Now, if your company later decides to increase the commission to 3%, you can simply update the Named Range, and all the calculation would automatically update to reflect the new commission.
How to Create Named Ranges in Excel
Here are three ways to create Named Ranges in Excel:
Method #1 – Using Define Name
Here are the steps to create Named Ranges in Excel using Define Name:
This will create a Named Range SALESREP.
Method #2: Using the Name Box
- Select the range for which you want to create a name (do not select headers).
- Go to the Name Box on the left of Formula bar and Type the name of the with which you want to create the Named Range.
- Note that the Name created here will be available for the entire Workbook. If you wish to restrict it to a worksheet, use Method 1.
Method #3: Using Create From Selection Option
This is the recommended way when you have data in tabular form, and you want to create named range for each column/row.
For example, in the dataset below, if you want to quickly create three named ranges (Date, Sales_Rep, and Sales), then you can use the method shown below.
Here are the steps to quickly create named ranges from a dataset:
This will create three Named Ranges – Date, Sales_Rep, and Sales.
Note that it automatically picks up names from the headers. If there are any space between words, it inserts an underscore (as you can’t have spaces in named ranges).
Naming Convention for Named Ranges in Excel
There are certain naming rules you need to know while creating Named Ranges in Excel:
- The first character of a Named Range should be a letter and underscore character(_), or a backslash(). If it’s anything else, it will show an error. The remaining characters can be letters, numbers, special characters, period, or underscore.
- You can not use names that also represent cell references in Excel. For example, you can’t use AB1 as it is also a cell reference.
- You can’t use spaces while creating named ranges. For example, you can’t have Sales Rep as a named range. If you want to combine two words and create a Named Range, use an underscore, period or uppercase characters to create it. For example, you can have Sales_Rep, SalesRep, or SalesRep.
- While creating named ranges, Excel treats uppercase and lowercase the same way. For example, if you create a named range SALES, then you will not be able to create another named range such as ‘sales’ or ‘Sales’.
- A Named Range can be up to 255 characters long.
Too Many Named Ranges in Excel? Don’t Worry
Sometimes in large data sets and complex models, you may end up creating a lot of Named Ranges in Excel.
What if you don’t remember the name of the Named Range you created?
Don’t worry – here are some useful tips.
Getting the Names of All the Named Ranges
Here are the steps to get a list of all the named ranges you created:
This will give you a list of all the Named Ranges in that workbook. To use a named range (in formulas or a cell), double click on it.
Displaying the Matching Named Ranges
- If you have some idea about the Name, type a few initial characters, and Excel will show a drop down of the matching names.
How to Edit Named Ranges in Excel
If you have already created a Named Range, you can edit it using the following steps:
Useful Named Range Shortcuts (the Power of F3)
Here are some useful keyboard shortcuts that will come handy when you are working with Named Ranges in Excel:
- To get a list of all the Named Ranges and pasting it in Formula: F3
- To create new name using Name Manager Dialogue Box: Control + F3
- To create Named Ranges from Selection: Control + Shift + F3
Creating Dynamic Named Ranges in Excel
So far in this tutorial, we have created static Named Ranges.
This means that these Named Ranges would always refer to the same dataset.
For example, if A1:A10 has been named as ‘Sales’, it would always refer to A1:A10.
If you add more sales data, then you would have to manually go and update the reference in the named range.
In the world of ever-expanding data sets, this may end up taking up a lot of your time. Every time you get new data, you may have to update the Named Ranges in Excel.
To tackle this issue, we can create Dynamic Named Ranges in Excel that would automatically account for additional data and include it in the existing Named Range.
For example, For example, if I add two additional sales data points, a dynamic named range would automatically refer to A1:A12.
This kind of Dynamic Named Range can be created by using Excel INDEX function. Instead of specifying the cell references while creating the Named Range, we specify the formula. The formula automatically updated when the data is added or deleted.
Let’s see how to create Dynamic Named Ranges in Excel.
Suppose we have the sales data in cell A2:A11.
Here are the steps to create Dynamic Named Ranges in Excel:
-
- Go to the Formula tab and click on Define Name.
- In the New Name dialogue box type the following:
- Name: Sales
- Scope: Workbook
- Refers to: =$A$2:INDEX($A$2:$A$100,COUNTIF($A$2:$A$100,”<>”&””))
- Click OK.
Done!
You now have a dynamic named range with the name ‘Sales’. This would automatically update whenever you add data to it or remove data from it.
How does Dynamic Named Ranges Work?
To explain how this work, you need to know a bit more about Excel INDEX function.
Most people use INDEX to return a value from a list based on the row and column number.
But the INDEX function also has another side to it.
It can be used to return a cell reference when it is used as a part of a cell reference.
For example, here is the formula that we have used to create a dynamic named range:
=$A$2:INDEX($A$2:$A$100,COUNTIF($A$2:$A$100,"<>"&""))
INDEX($A$2:$A$100,COUNTIF($A$2:$A$100,”<>”&””) –> This part of the formula is expected to return a value (which would be the 10th value from the list, considering there are ten items).
However, when used in front of a reference (=$A$2:INDEX($A$2:$A$100,COUNTIF($A$2:$A$100,”<>”&””))) it returns the reference to the cell instead of the value.
Hence, here it returns =$A$2:$A$11
If we add two additional values to the sales column, it would then return =$A$2:$A$13
When you add new data to the list, Excel COUNTIF function returns the number of non-blank cells in the data. This number is used by the INDEX function to fetch the cell reference of the last item in the list.
Note:
- This would only work if there are no blank cells in the data.
- In the example taken above, I have assigned a large number of cells (A2:A100) for the Named Range formula. You can adjust this based on your data set.
You can also use OFFSET function to create a Dynamic Named Ranges in Excel, however, since OFFSET function is volatile, it may lead a slow Excel workbook. INDEX, on the other hand, is semi-volatile, which makes it a better choice to create Dynamic Named Ranges in Excel.
You may also like the following Excel resources:
- Free Excel Templates.
- Free Online Excel Training (7-Part Online Video Course).
- Useful Excel Macro Code Examples.
- 10 Advanced Excel VLOOKUP Examples.
- Creating a Drop Down List in Excel.
- Creating a Named Range in Google Sheets.
- How to Reference Another Sheet or Workbook in Excel
- How to Delete Named Range in Excel?
What is Name Range in Excel?
The name range in Excel is the range that has been given a name for future reference. To make a range as a named range, select the range of data and then insert a table. Then, we put a name to the range from the Name Box on the left-hand side of the window. After this, we can refer to the range by its name in any formula.
The name range in Excel makes it much cooler to keep track of things, especially when using formulas. You can assign a name to a range. No problem with any change in that range; you need to update the range from the Name Manager in ExcelThe name manager in Excel is used to create, edit, and delete named ranges. For example, we sometimes use names instead of giving cell references. By using the name manager, we can create a new reference, edit it, or delete it.read more. You do not need to update every formula manually. Similarly, you can create a name for a formula. Then, if you want to use that formula in another formula or another location, refer to it by name.
- The name ranges are significant because you can put any names in your formulas without considering cell references/addresses. Furthermore, you can assign the range with any name.
- Create a named range for any data or a named constant and use these names in your formulas in place of data references. In this way, you can make your formulas easier to comprehend better. A named range is just a human-understandable name for a range of cells in Excel.
- Using the name range in Excel, you can simplify and comprehend your formulas better. For example, you can assign a name for a range in an excel sheet for a function, a constant, or table data. Once you start using the names in your Excel sheet, you can easily understand these names.
Table of contents
- What is Name Range in Excel?
- Define Names For a Selected Range
- Excel names the cells based on the labels in the range you designated.
- Update named ranges in the Name Manager (Control + F3)
- How to Use Name Range in Excel?
- Example #1 Create a name by using the Define Name option
- Example #2 Make a named range by using Excel Name Manager
- Name Range using VBA.
- Things to Remember
- Recommended Articles
- Define Names For a Selected Range
Define Names For a Selected Range
- Select the data range you want to assign a name, then select formulas and create from the selection.
- Click on the “Create Names from Selection,” then select the “Top row,” “Left column,” “Bottom row,” or “Right column” checkbox and select “OK.”
Excel names the cells based on the labels in the range you designated.
- Use names in formulas, then select a cell and enter a formula.
- Place the cursor where you want to use the name range formula.
- Type the first letter of the name, and select the name from the list that appears.
- Or, select “Formulas,” then use in formula and select the name you want to use.
- Press the “Enter” key.
Update named ranges in the Name Manager (Control + F3)
You can update the name from the Name Manager. Press “Ctrl” and “F3” to update the name. Select the name you want to change, then change the reference range directly.
How to Use Name Range in Excel?
Let us understand the working of conditional formatting by simple Excel examples.
You can download this Using Names in Excel Template here – Using Names in Excel Template
Example #1 Create a name by using the Define Name option
Below are the steps to create a name by using the “Define Name” option:
- First, select the cell(s).
- On the “Formulas” tab, click the “Define Name” in the “Defined Names” group.
- In the “New Name” dialog box, specify three things:
- First, in the “Name” box, type the range name.
- In the “Scope” drop-down, set the name scope (Workbook by default).
- In the “Refers to” box, check the reference and correct it if needed. Finally, click “OK” to save the changes and close the dialog box.
Example #2 Make a named range by using Excel Name Manager
- Go to the “Formulas” tab, then the “Defined Names” group, and click the “Name Manager” or press “Ctrl + F3” (the preferred way).
- In the top left-hand corner of the “Name Manager” dialog window, click the “New… button:”
Name Range using VBA.
We can apply the naming in VBA; here is the example as follows:
Sub sbNameRange()
‘Adding a Name
Names.Add Name:=”myData”, RefersTo:=”=Sheet1!$A$1:$A$10″
‘OR
‘You can use Name property of a Range.
Sheet1.Range(“$A$1:$A$10”).Name = “myData”
End Sub
Things to Remember
We must follow the below instruction while using the name range.
- The names can start with a letter, backslash (), or an underscore (_).
- The name should be under 255 characters long.
- The names must be continuous and cannot contain spaces and most punctuation characters.
- There must be no conflict with cell references in names using in excelCell reference in excel is referring the other cells to a cell to use its values or properties. For instance, if we have data in cell A2 and want to use that in cell A1, use =A2 in cell A1, and this will copy the A2 value in A1.read more.
- We can use single letters as names, but the letters “r” and “c” are reserved in Excel.
- The names are not case-sensitive – “Tanuj”, “TANUJ”, and “TaNuJ” are all the same in Excel.
Recommended Articles
This article is a guide to the Name Range in Excel. We discuss using names in Excel, practical examples, and downloadable Excel templates here. You also may look at these useful functions in Excel: –
- VBA RangeRange is a property in VBA that helps specify a particular cell, a range of cells, a row, a column, or a three-dimensional range. In the context of the Excel worksheet, the VBA range object includes a single cell or multiple cells spread across various rows and columns.read more
- Data Tables ExcelA data table in excel is a type of what-if analysis tool that allows you to compare variables and see how they impact the result and overall data. It can be found under the data tab in the what-if analysis section.read more
- Data Validation using ExcelThe data validation in excel helps control the kind of input entered by a user in the worksheet.read more
- Paste SpecialPaste special in Excel allows you to paste partial aspects of the data copied. There are several ways to paste special in Excel, including right-clicking on the target cell and selecting paste special, or using a shortcut such as CTRL+ALT+V or ALT+E+S.read more
In Excel, you can name cells, cell ranges, and constants. When creating formulas, named cells and named cell ranges are easier to remember than cell addresses and range references. For example, =Revenue-Expenses is easier to remember than =B3:B6-B9:B21.
Use the Range dialog box to name cells and cell ranges. Names must follow these rules:
- Be fewer than 255 characters
- Start with a letter or a backslash
- Cannot include symbols
- Can includes a dot or an underscore as a separator
When you name a cell, range, or constant you determine its scope. A name can be recognizable to a single worksheet or to an entire workbook. For example, if you name cell A1 on Sheet1 Sales and then set the scope to Sheet1, if you are on Sheet2 and you use Sales in a formula, Excel will not recognize the name. You can, however, give a cell on Sheet2 the name Sales, give it a scope of Sheet2, and when you use Sales in a formula on Sheet2, Excel will refer to Sheet2 Sales. If you name cell A1 on Sheet1 Sales and then set the scope to Workbook, if you are on Sheet2 and you use Sales in a formula, Excel will recognize the name and will use the value in cell A1 on Sheet1.
You can also name a constant. A constant is a value. For example, if every employee is getting a 4% raise, you can name 4%, «Raise», and then multiply each employee’s salary by the name «Raise» to obtain the amount of the salary increase.
Name a cell or range of cells
- Select the cell or cell range you want to name.
- Choose the Formulas tab.
- Click Define Name. The New Name dialog box opens.
- Type the name you want to give the cell or range in the Name field.
- Click the down arrow next to the Scope field and then select the scope of the name.
- Click OK. Excel creates the named range. The range name appears in the name box.
You can have Excel name several ranges at once by using Excel’s create from selection option. When using this option, select the values you want to name and the labels that identify them. Excel will turn the labels into range names and give them a scope of workbook.
Name Several Ranges at Once
- Select the range that you want to name. Include labels.
- Choose the Formulas tab.
- Click Create from Selection in the Defined Names group. The create names from selection dialog box opens.
- Click the location of the range names.
- Click OK. Excel names the ranges. The names appear in the name box.
To edit or delete a named range, use the Name Manager on the Formulas tab.
Delete a Named Range
- Choose the Formulas tab.
- Click Name Manager in the Defined Names group. The Name Manager dialog box opens.
- Click the range you want to delete. Hold down the Ctrl key and click to select multiple ranges.
- Click Delete. Excel asks, «Are you sure you want to delete…?»
- Click OK. Excel deletes the range name.
- Click Close. Excel closes the Name Manager dialog box.
Edit a Named Range
- Choose the Formulas tab.
- Click Name Manager in the Defined Names group. The Name Manager dialog box opens.
- Click the range you want to edit.
- Click Edit. The Edit Name dialog box opens.
- Make your changes.
- Click OK. Excel returns to the Name Manager dialog box.
- Repeat steps three through six to edit additional ranges or Click Close to exit the Name Manager.
Examples of formulas that use names:
=January+February+March
=Quarter_1+Quarter_2
=January *10%
Create a Named Constant
- Choose the Formulas tab.
- Click Define Name. The New Name dialog box opens.
- Type the name you want to give the constant in the Name field.
- Click the down arrow next to the Scope field and then select the scope.
- Type the value you want to assign to the constant in the Refers To field.
- Click OK. Excel names the constant.
Tip
If you have formulas in your worksheet that reference cells or ranges that you have named, but the formulas do not include the names, you can add them. Select the formulas. Choose the Formulas tab. Click the down-arrow next to Define Name. A menu appears. Click Apply Names. The Apply Names dialog box opens. Click the names you want to apply. Click OK. Excel places the names in your formulas.
Names are one convenient identity. Imagine how we’d be addressed if we didn’t have names? Excel tries to make our lives easier by providing us with a similar convenience.
Excel’s Names feature can be surprisingly powerful for organizing data in Excel. Named Ranges let you name a group of cells and then refer to them as a unit as if they were a single cell.
Using named ranges can make formulas easier to read and understand and provides simple navigation via the Name Box. Named ranges are easy to create and can be used for a variety of purposes.
This tutorial will teach you how to use Names feature in Excel.
What are Named Ranges
In Excel, a cell or a range of cells can be named to make their usage easier. It would be simpler to use a named range directly in a formula or select said range.
You can name:
- a Range of cells,
- a Formula,
- a Constant or
- a Table
Benefits of Creating Named Ranges in Excel
- The prime advantage of named ranges is the ease they provide. You don’t have to keep glancing at certain cells or tables to pick up values or cell references and can use a named range instead.
- Using a named range will save typos that may otherwise occur while typing values or formulas since entering named ranges is a clickable option.
- They are of great help to use in formulas as the named range appears upon typing the first letter of the name.
- Named ranges make formulas movable and they can be used from sheet to sheet and workbook to workbook.
- A dynamic named range can automatically account for expanding and contracting data (when values are added or deleted from a dataset) without having to change the formula or recalculate.
- A named range can be used for data validation (creating drop-down menus) without much hassle.
- Hyperlinks can quickly be created from existing named ranges.
- Named ranges make navigation and directing very easy. You can click on a named range in the Name Box and arrive at the named range.
- For all the above benefits that named ranges deliver, they are very simple and quick to create.
Rules for naming Named Ranges
There are several pointers not to trespass while creating named ranges:
- A name should have less than 255 characters.
- A name should not have space and punctuation characters (exceptions mentioned as follows).
- A name’s first character has to be a letter, an underscore ( _ ), or a backslash ( ).
- A name may contain a question mark but never as a first character.
- A name is not case-sensitive. (sale, Sale, and SALE are treated as one name).
- A name must not resemble a cell reference (e.g., A1, A$1).
- A name may be a single letter name but must not be r, R, c, or C as «R» and «C» signify row and column selection shortcuts.
How to Create Named Ranges in Excel
There are two methods to create named ranges in excel. We will see both these methods in this section.
Let’s say we have the data as shown below and we want to create two named ranges – one for the History marks and the second one for the Geography marks.
We will create these two named ranges using two different methods to help you get a hang of both methods.
Method 1 – Creating Named Ranges from the Name Box
The how-to here is pretty simple. Select the range, enter the desired name in the «name box» and press Enter. Done! Really! We can show you how easy this is with a visual.
Here’s how it’s done:
- For naming the History marks range, we will select the History marks i.e., range C3:C7.
- Click on the name box.
- Enter the desired name («History» in this case).
- Press the Enter key.
Method 2 – Creating Named Ranges from the ‘Define Name’ Option
Names can also be created from the «Define Name» button, in the formulas tab. To use this method follow the below steps:
- Select the range which you want to name, in our case it will be D3:D7.
- Navigate to the «Formulas Tab» and click the «Define Name» button.
- Now, in the «New Name» window enter the desired name for the named range.
- After entering the desired name click the «OK» button and it is done.
How to Edit Named Ranges in Excel
Suppose you accidentally missed a cell in the range or want to change the name of your named range. This means the named range needs to be edited.
Named ranges can be managed through the «Name Manager» which can be found under the «Formulas» tab > Name Manager or can be accessed through the keyboard shortcut Ctrl + F3.
This is what you will see when you open the Name Manager:
Here, you can see the named ranges in your sheet and their details. Double click the named range you wish to edit or select the named range and click the «Edit…» button.
Clicking on the «Edit…» button will open the «Edit Name» window where you can edit the name or the cell range of the named range. When done, click «OK» and then click the «Close» button on the Name Manager.
How to Delete Named Ranges
The Name Manager can also be used to delete named ranges. Click the named range you wish to remove, press the «Delete» button.
You will get a pop-up confirmation asking whether you want to delete the named range or not. Press «OK» and that will delete your chosen named range.
Note that the Name Manager also has a «Filter» button that can be used for filtering the names and only viewing the relevant names at a given time. It can be quite handy when you have a lot of names to deal with.
Recommended Reading: How to Lock and Protect Cells in Excel
How to Create Names from Cell Text
For batch information where the data is in the columnar or row format (i.e., in either columnar form with headings at the top and its relevant data below. Or in rows with headings on the left and its data on the right) there is a quicker way of naming ranges. We can use the «Create from Selection» feature in Excel to give the heading’s name to the range. Here is how:
So, we have the dataset containing marks scored by students in various subjects. The layout is in columnar form. We can use the «Create from Selection» feature in this case as –
- Select the range and the heading. We will select columns C, D, E, and F to name each range according to its heading.
- In the «Formulas» tab, click «Create from Selection» or use the keyboard shortcut Ctrl + Shift + F3. This is what you should see:
- According to the layout of your dataset, select the row or column where the headings need to be picked from. For our case, we will select the «Top row» option as headings. «Marks in History», «Marks in Geography», «Marks in Science», and «Marks in Math» are in the top row.
- After selecting the appropriate options click «OK».
Doing this has created multiple named ranges for our data. You can see from the drop-down in the Name Box that we have 4 named ranges created according to the headings of each column.
Note that the spaces in headings are replaced with underscores while creating the names.
Named Ranges with Hyperlinks
If you thought named ranges made you bounce around with ease through worksheets, wait for their synergy with hyperlinks. Named ranges make hyperlinking a smoother process as data required for hyperlinking would already be grouped and named. Let’s show you how this will work.
For the sake of this example let’s assume that we have another named range «Student» in Sheet2 as shown.
We will hyperlink the Student column from Sheet1 to direct us to the student range in Sheet2.
- Select the Student range in Sheet2 (i.e., B3:B7).
- Right-click the selected area and click on «Link». The «Insert Hyperlink» window is what you should see.
- We will select «Student» from «Defined Names» which we have already defined in Sheet2.
- Click «OK».
We have hyperlinked the Student Names to Sheet2 using the «Student» named range. Clicking on any of the marks should take us to the «Student» range on Sheet2. Let’s check.
Affirmative!
How to Create an Excel Name for a Constant
The Name Manager can also be used to create a name for a constant value. This constant value will not be a cell reference on the sheet but it can be used by its name in formulas.
For our example, we will use a named constant to calculate the percentage of the overall marks of each of 5 students. We start by accessing the Name Manager and applying for a new name.
The percentage will be calculated by dividing the sum of the attained marks by the total (each subject is marked out of 50. Which makes 50 x 4 = 200). We will set «200» as our named constant and give it the name «total».
Using «total», we can calculate the percentages without having to refer to «200».
Here, we have substituted «200» for «total» and calculated each student’s overall percentage.
How to Make a Named Formula
Taking the above example, what if we named the whole formula and get the same results? Sounds like a good bargain for smart input. Let’s see how to do that.
We first head to good old Name Manager and «New Name» again. We will name our formula «Percentage». The reference of this name is shown as
=SUM(Sheet2!$C3:$F3)/total
The range of the SUM in the formula is «C3:F3». The columns have been locked into absolute references by the $ sign. Notice that the rows have not been locked as absolute references so that the formula can be dragged to apply to all the rows.
Now just by using «Percentage», we can use the named formula to calculate the students’ percentages.
Named Ranges for Data Validation
Named ranges make the «Data Validation» feature in Excel a breeze. You can create a drop-down menu with values from a named range.
This comes with some advantages. You can simply refer to the named range in the Data Validation window instead of having to directly enter the cell ranges. It also gives a point of relevance to see the named range in sight. Let’s see how it’s done.
Let’s assume – we have a list of products and their prices and discounts. Our objective here is to calculate the discounted price for each product after entering its relevant discount. Instead of copy-pasting each discount, we want the option to select the discount from a drop-down menu for each cell in column D.
We will create a drop-down menu with the «Discount» named range (G3:G6).
- Select the cells for which you want to create the drop-downs (D3:D9 for our case).
- Under the «Data» tab, in the «Data Tools» section, select «Data Validation» dropdown and click the next «Data Validation» option.
- Inside the «Data Validation» window, under «Allow», choose «List» and enter the required named range under «Source». We will enter the reference of our «Discount» range here.
- Click «OK». This has very conveniently created drop-down menus for all cells D3:D9, taking values from the «Discount» named range.
- Now we can select the respective discounts and arrive at our «Price after discount».
See all Names Directly on the Worksheet
There is a small hack that allows you to see all the names directly on the worksheet. You can view all your named ranges (marked with the names) on the sheet if you zoom out to anything less than 40%. We’ll follow that religiously and zoom out at 39%.
The only thing amiss about this is that the named range text is like a watermark; it’s not opaque and will not work so well for small and narrow columns. This hack is suitable for data with a wide-set column or several more rows so the name of the range can be seen. Otherwise, it would be on the brink of being unnoticeable.
Scope of a Name
If you open the Name Manager and have a look at the named ranges, you will find that each named range has a scope (e.g., Sheet1, Sheet2, Workbook, etc.) against it.
Scope refers to the location, or level, within which the name is recognized. For instance, in the above image «range4» can only be used within Sheet1 whereas all the other names can be used across the entire workbook.
Based on this there can be 2 levels of scopes:
- Local worksheet scope
- Global workbook scope
Local Worksheet Scope
Locally scoped names can only be recognized and used on the sheet it is created upon. This implies that inside a single workbook we can have the same locally scoped names (each within a separate worksheet). For instance – you can have a yearly expense workbook with a worksheet for each month and then we can have a single locally scoped name within each worksheet.
Pro Tip: Named ranges made using the Name Box have global scope by default. However, you can tie the named range down to a sheet (in other words, make it locally scoped) simply by using the sheet’s name before the range’s name (with an exclamation mark).
Sheet1!Expenses
Global Workbook scope
Globally scoped names can be recognized and used across the whole workbook. Global names must always be unique within the workbook. For instance – we can create a global name to define the value of a constant like pi (as 3.14) and use it across the whole workbook.
Creating Dynamic Named Ranges in Excel
Up until now with all the examples above, we can say that if we were to expand on the data by adding more values, the formulas already applied wouldn’t account for the new values. This means that whenever values will be added to the dataset of the named range (e.g., B2:B15) which expands the dataset to B2:B20, the named range will still not account for the additional 5 values and remain a named range for B2:B15. This means the named range is static as opposed to a dynamic named range. The additional step that would need to be taken to fix this is to edit the named range and modify the range mentioned.
A dynamic named range on the contrary will itself adjust for changes in the range. To make our named range dynamic, we will add a function to the reference of the named range. If this sounds too complicated, let us show you how it’s done.
There are a couple of ways of creating a dynamic named range. One of them is using the OFFSET function. The drawback is however that OFFSET is a volatile function; with each and every change in a worksheet, OFFSET recalculates. This is not an issue for an uncomplicated worksheet with small datasets. But with complex and large worksheets, you will find that OFFSET slows things down. In such a case, the other way to create a dynamic named range is using the INDEX function.
So if you can use OFFSET for small datasets and INDEX for large ones, why not just master the INDEX function and use that? So this use of the INDEX function for dynamic named ranges is what we’ll be tapping into right now. Let’s see an example:
Taking simple sales data, we will add a dynamic named range that we will later use to calculate the total sales:
- Open the «Name Manager» > click the «New Name» option.
- Set the desired name (we are naming our named range «Sales»).
- In «Refers to», feed the following formula, and click «OK».
=$C$3:INDEX($C$3:$C$1048576,COUNTIF($C$3:$C$1048576,"<>"&" "))
We have used the SUM function to total the named range «Sales». It has given us a total of «3186» which is also confirmed from selecting the cells with the results displayed in the status bar below.
Now let’s add some values to this dataset to see if the formula applied complies with changes in the data.
We have added new sales data and the named range has updated itself because of the formula we have put in to build the range. So how does this formula work?
Let’s see the formula again:
=$C$3:INDEX($C$3:$C$1048576,COUNTIF($C$3:$C$1048576,"<>"&" "))
Since we’re using the INDEX function in the formula, let’s get familiar with it. The INDEX function returns a value or cell reference of a particular cell in a given range. The part we need to work with right now is the return of a cell reference.
The COUNTIF function counts the number of cells within a range that meets the given condition. The range given to COUNTIF is C3:C1048576. COUNTIF needs to look through the entire C column ahead of C3 (if you press Ctrl + down key, you will find the last row given in Excel which is row number 1048576. That is why we have used C1048576 in our formula. According to how big or small your data is, you can refer to any row ahead of your last value, suppose 100 rows ahead of your last value. In this way the formula will account for all changes made up to the last-mentioned row).
The condition given to COUNTIF is counting the number of cells from C3 to C1048576 that should not be equal to (defined by «<>») blank cells (defined by » «). Take note that this will work only if the data does not consist of blank cells as the blank cells are the ones to be ignored by the function.
According to this condition, the non-blank cells that COUNTIF was able to find from the given range were C3:C9. Passing this result to the INDEX function, INDEX then returns the value of the last item of the list (which would be C9’s value i.e., 404). The formula starts with the first cell that we need to include in our named range (i.e. C3, fed as an absolute reference by «$» signs). Using this reference before the INDEX function makes INDEX return the cell reference instead of the value which will then be C9.
The result of the whole formula has worked like this:
Note: Dynamic named ranges aren’t shown in the Name Box. Use the Name Manager to see all named ranges (static and dynamic).
Named Range Shortcuts
The more matters are sitting on your fingertips, the better. To wrap things up, here are some useful keyboard shortcuts with named ranges that should move you around the sheet even faster.
- F3 – Pops up a «Paste Name» dialogue box for pasting a named range from the full list of named ranges.
- Ctrl + F3 – Opens «Name Manager»
- Ctrl + alt + F3 – Pops up «New Name» dialog box for creating a new named range.
- Ctrl + shift + F3 – Pops up «Create Names from Selection» dialog box for creating named ranges from headings/titles.
- F5 – Pops up the «Go To» dialog box for navigating to the chosen named range from the full list of named ranges.
With that, we’ve discussed the ins and outs of the Named Ranges in Excel. They are simple, but extremely useful while working with larger datasets and multiple ranges. While you solidify your expertise with some practice, we’ll have another awesome tutorial ready for you ready!
How to Name a Range in Excel: Step-by-Step (+ Name Manager)
Excel is all about storing data and doing something with it. And to make data storage and manipulation easier, Excel allows users to name their data.
You can name different ranges (or arrays) in Excel and the Excel Name Manager will store them for you. Once saved, you can refer to that range of cells simply by using its name.
So instead of referencing a range like this =SUM($A$2:$C$250), write the name you gave it, which could be something like this =SUM(Prices).
Looks much easier, right? 💡
Practicing something in real-time can make you 10x faster at it. And you can master naming ranges in Excel with our sample workbook for free. Grab it here.
How to name a range in excel
A named range can save you a lot of time and confusion. And if you haven’t used it before, take my word for it – it’s very easy to create a named range.
It literally takes less than five seconds – unless, of course, the name you assign is extremely long 😅
Let’s see a simple example of naming a range below.
We have the following data.
I want to name the range A2:A10 as ‘Tableof5’.
For that:
- Select the range.
- Click in the Name Box
- Assign a name to the cell range.
- Press Ok.
The selected range has now been named.
Excel will show you the name of the range when you select it.
Important note:
Note that the name of a range cannot contain space. If you add space in the Name Box, Excel will show an error prompt:
Similarly, the first character of the name cannot be a digit. And names cannot have any other symbol other than period, backslash, and underscore character. Also, the name must not exceed 255 characters.
How to use a named range in a formula
Named ranges make writing formulas easier and quicker. Usually, you would type a formula, select all the cell references and then press Enter.
But with named ranges, you just need to enter the name of the range in place of the arguments. And it’s done 🤓
Let’s see how to use a named range in the formula below.
We will use our previous data set for this example.
We want to calculate the AVERAGE of the values of the sample data. For that:
- Name the range you want to use in the formula.
- In a cell, type in the formula.
- Enter the named range in place of the argument.
As evident, the formula immediately picks up the named range.
Note that Excel only shows the name of the range when you select the entire range. If you simply select a single cell from that range, it will show the selected cell’s reference. And not the name of the range.
- Press Enter.
Excel returns the AVERAGE of the named range.
Pretty easy, no? 😃
How to use the name manager in excel
Using names for ranges can be really useful – especially when working with an exceptionally large worksheet.
But it can be equally confusing too.
You can’t possibly readily remember the names of 32 ranges and their exact location. And figuring it out manually will leave you with no time.
Luckily, we have the Name Manager in Excel for this purpose.
As evident from the name, the Excel Name Manager is like the index page where all named ranges and cells are stored. You can also find the location of all named ranges in your Excel worksheet.
Let’s understand the Name Manager’s work in more detail below.
To open it:
- Go to the Formulas Tab.
- Select Name Manager from the Defined Names group.
- The Name Manager dialog box appears.
The Name Manager shows our previously created named range. It also shows which cells the named range refers to.
PRO TIP!
You can open the Excel Name Manager in seconds using the shortcut ALT + M + N. Cool, no? 😎
You can find all your named ranges in one place, thanks to the Name Manager. This makes it extremely useful, especially if you have plenty of named ranges.
There’s also a Filter button at the top right corner of the dialog box. It offers a menu of options that you can choose to perform different operations.
Edit named ranges
Just like adding and deleting named ranges, you can edit them too. You can access the Edit feature from the Name Manager dialog box.
You can edit the name of the range, change its reference, and even add comments.
Say, we want to change our named range ‘Tableof5’ to ‘Multiplesof5’.
For that:
- Click Edit from the Name Manager dialog box.
- The Edit Name dialog box appears.
- Click in the Name box and enter the desired name.
- Press Ok.
You can also change the references if you want to add or delete a field from the ‘Refers to’ box. It is at the bottom of the Edit Name dialog box.
Or you could do it directly from the Name Manager dialog box to save a click or two.
And that’s all about Editing named ranges in Excel 🤓
How to delete named ranges in Excel
Deleting named ranges is as simple as creating one. To delete it:
- Open the Name Manager dialog box.
- Select the named range you want to delete.
- Press the Delete button at the top.
- Excel will show a warning prompt.
- Press Ok.
The selected named range will be deleted.
That’s it – Now what?
In this article, we learned how to create named ranges in Excel. We also saw what purpose the Name Manager serves and how to edit and delete named ranges.
The named range is a very powerful and resourceful tool of Excel, especially when you have to store tons of data and refer to it several times. It lets you specify a name for each range and this makes working so convenient.
Instead of adding cell references of a range, you can simply use the name of the range in the argument. It is not only faster but easier too.
But to use named ranges in formulas, you need to know the functions first 😅 Worry not, we’ve got a solution to that as well.
Good functions to pair with named ranges are VLOOKUP, IF, and SUMIF. You can learn them for free in my 30-minute Excel course – delivered right to your inbox.
Other resources
In addition to ranges, you can also name data tables in Excel. And although naming a group of cells is easy, people often make errors while using them.
Most importantly, if you misspell the name of the named range while entering it in a function, you’d get a #NAME error. How do you fix that? Check our tutorial!
Frequently asked questions
Yes, you can. Simply select a range of cells. Click the Name box at the left of the formula bar. Type in the name. Press Enter. And it’s done.
The name box is located to the left of the formula bar in the Excel sheet. It shows cell addresses, range names, and more.
You use a named range in a formula just like other arguments – if it requires one. Just type in the formula, and enter the range name instead of the cell references in the argument. Excel will apply the formula to that specific range.
Kasper Langmann2023-02-23T15:01:57+00:00
Page load link
Named ranges are a powerful Excel feature that allows you to assign a symbolic name for the
cell or the range of cells for later use as a convenient replacement for cell/range address in
formulas.
Before you begin, however, you should be aware of some important rules for the names of named
ranges in Excel:
- Names can’t contain any spaces. You might want to use an underscore character instead of
space (such as Annual_Total). - You can use any combination of letters and numbers, but the name of the range must begin
with a letter symbol. A name can’t begin with a number (such as 3rdQuarter) or
look like a cell reference (such as Q3). - Other symbols, except for underscores and periods, aren’t allowed.
- Names are limited to 255 characters, but it’s a good practice to keep names as short as
possible yet still be meaningful and understandable.
Excel also reserves a few names internally for its own purposes. Although you can create names
that override Excel’s internal names, you should avoid doing so. To be on the safe side, avoid
using the following names: Print_Area, Print_Titles, Consolidate_Area,
and Sheet_Title.
Create a named range in Excel
To create a named range, start by selecting the cell or range that you want to assign a name.
Then, do one of the following:
- On the Formulas tab, in the Defined Names group, click Define Name…:
- Right-click on the selection and choose Define Name… in the popup menu:
- On the Formulas tab, in the Defined Names group, click Name Manager (or press
Ctrl+F3), then in the Name Manager dialog box, click the New… button:
Excel displays the New Name dialog box:
Type a name in the Name field (Excel can display the name if you selected a data range with
a heading line). The active or selected cell or range address appears in the box labeled Refers to.
Verify that the address listed is correct and then click OK to add the name to your spreadsheet
and close the dialog box.
Note: A faster way to create a name is to use the Name box (to the left
of the formula bar):
Select the cell or range to name and then click the Name box and type the name. Press
Enter to create the name. (You must press Enter to assign the name to the
selected range; if you type a name and then click in the worksheet, Excel won’t create the
name.) If the name already exists, you can’t use the Name box to change the range to
which that name refers. Attempting to do so selects the range instead.
If your formula uses named cells or ranges, you can either type the name in place of the address or
choose the name from a list and have Excel insert the name for you automatically. The worksheet contains
two defined names: Names and Values.
Insert a named range reference into the formula
There are ways to insert a named range reference into a formula are available:
- On the Formula tab, in the Defined Names group, click Use in Formula
and choose the range name: - On the Formula bar type the first letters of the range name, Excel opens the list
of matching named ranges:
or
- Press F3 to display the Paste Name dialog box:
See also this tip in French:
Comment créer et utiliser des plages nommées.