What is Name Range in Excel?
Name range in excel are the ranges which have been given a name for the future reference, to make a range as named range first select the range of data and then insert a table to the range, then we put a name to the range from the name box in the left-hand side of the window, after this we can refer to the range by its name in any formula.
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. If there is any change in that range, no problem, you need to update the range from the Name Manager in ExcelName 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.. You don’t need to update every formula manually. Similarly, you can create a name for a formula. If you want to use that formula in another formula or another location, refer to it by name.
- The significance of named ranges is that you can put any names in your formulas without thinking about cell references/addresses. 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.
- By using the name range in excel, you can make your formulas much simpler to comprehend better. You can assign a name for a range in an excel sheet for a function, for a constant, or a table data. Once you start using the names in your excel sheet, you can easily understand these names.
Define Names For a Selected Range
- Select the data range you want to assign a name, then Select Formulas and Create from Selection.
- Click on “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 Enter.
Update named ranges in the Name Manager (Control + F3)
You can update the Name form Name manager. Press Control 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 understand the working on conditional formatting by simple excel examples.
Example #1 Create a name by using the Define Name option
Below are the steps to create a name byusing define name option –
- Select the cell(s).
- On the Formulas tab, in the Define Names group, click the Define Name.
- In the New Name dialog box, specify three things:
- 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; 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 Defined Names group, and click the Name Manager Or, just press Ctrl + F3 (my 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:
‘Adding a Name
Names.Add Name:=”myData”, RefersTo:=”=Sheet1!$A$1:$A$10″
‘You can use Name property of a Range.
Sheet1.Range(“$A$1:$A$10”).Name = “myData”
Things to Remember
You must follow the below instruction while using the name range.
- Names can start with a letter, backslash (), or an underscore (_).
- The name should be under 255 characters long.
- Names must be continuous and can’t contain spaces and most punctuation characters.
- There must be no conflict with cell references in names using in excelCell 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..
- You can use single letters as names, but the letters “r” and “c” are reserved in excel.
- Names are not case-sensitive – “Tanuj”, “TANUJ”, and “TaNuJ” are all the same to Excel.
This has been a guide to Name Range in Excel. Here we discuss how to use Names in Excel along with practical examples and downloadable excel templates. You may also look at these useful functions in excel –