What to Know
Show
This article explains how to define and edit names for ranges in Excel for Microsoft 365, Excel 2019, 2016, 2013, and 2010. Defining and Managing Names with the Name BoxOne way, and possibly the easiest way, of defining names is using the Name Box, located above column A in the worksheet. You can use this method to create unique names that are recognized by every sheet in a workbook. To create a name using the Name Box as shown in the image above:
The name is also displayed in the Name box whenever the same range of cells is highlighted in the worksheet. It is also displayed in the Name Manager. Naming Rules and RestrictionsSyntax rules to remember when creating or editing names for ranges are as follows:
What Is a Named Range?A named range, range name, or defined name all refer to the same object in Excel; it's a descriptive name — such as Jan_Sales or June_Precip — that is attached to a specific cell or range of cells in a worksheet or workbook. Named ranges make it easier to use and identify data when creating charts, and in formulas such as: Additionally, since a named range does not change when a formula is copied to other cells, it provides an alternative to using absolute cell references in formulas. There are three methods for defining a name in Excel: using the name box, the new name dialog box, or the name manager. Defining and Managing Names with the Name ManagerA second method for defining names is to use the New Name dialog box. This dialog box is opened using the Define Name option located in the middle of the Formulas tab of the ribbon. The New Name dialog box makes it easy to define names with a worksheet level scope. To create a name using New Name dialog box:
The Name Manager can be used to both define and manage existing names; it is located next to the Define Name option on the Formulas tab of the ribbon. When defining a name in the Name Manager it opens the New Name dialog box outlined above. The complete list of steps are as follows:
Deleting or Editing NamesWith the Name Manager open:
The scope of an existing name cannot be changed using the edit options. To change the scope, delete the name and redefine it with the correct scope. Filtering NamesThe Filter button in the Name Manager makes it easy to:
The filtered list is displayed in the list window in the Name Manager. Defined Names and Scope in ExcelAll names have a scope which refers to the locations where a specific name is recognized by Excel. A name's scope can be for either individual worksheets (local scope) or for an entire workbook (global scope). A name must be unique within its scope, but the same name can be used in different scopes. The default scope for new names is the global workbook level. Once defined, the scope of a name cannot easily be changed. To change the scope of a name, delete the name in the Name Manager and redefine it with the correct scope. Local Worksheet Level ScopeA name with a worksheet level scope is valid only for the worksheet for which it was defined. If the name Total_Sales has a scope of sheet 1 of a workbook, Excel will not recognize the name on sheet 2, sheet 3, or any other sheet in the workbook. This makes it possible to define the same name for use on multiple worksheets – as long as the scope for each name is restricted to its particular worksheet. Using the same name for different sheets might be done to ensure continuity between worksheets and ensure that formulas that use the name Total_Sales always refer to the same range of cells in multiple worksheets within a single workbook. To distinguish between identical names with different scopes in formulas, precede the name with the worksheet name, such as: Or Names created using the Name Box always have a global workbook level scope unless both sheet name and the range name are entered into the name box when the name is defined. Examples:
Global Workbook Level ScopeA name defined with a workbook level scope is recognized for all worksheets in that workbook. A workbook level name can, therefore, only be used once within a workbook, unlike the sheet level names discussed above. A workbook level scope name is not, however, recognized by any other workbook, so global level names can be repeated in different Excel files. For example, if the Jan_Sales name has a global scope, the same name could be used in different workbooks titled 2012_Revenue, 2013_Revenue, and 2014_Revenue. Scope Conflicts and Scope PrecedenceIt is possible to use the same name at both the local sheet level and workbook level because the scope for the two would be different. Such a situation, however, would create a conflict whenever the name was used. To resolve such conflicts, in Excel, names defined for the local worksheet level take precedence over the global workbook level. In such a situation, a sheet-level name of 2014_Revenue would be used instead of a workbook level name of 2014_Revenue. To override the rule of precedence, use the workbook level name in conjunction with a specific sheet-level name such as: The one exception to overriding precedence is a local worksheet level name that has a scope of sheet 1 of a workbook. Scopes linked to sheet 1 of any workbook cannot be overridden by global level names. Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe |