A typical Excel spreadsheet may contain formulas that are made of different cell ranges. It can be difficult to remember these cell ranges and re-use them. Naming a group of cells in Excel could make formulas more readable, easy to understand, and maintainable. Although naming cells is one of the most useful features in Excel, it is not commonly used. In this article, we will show you how to name a group of cells in Excel through 3 easy methods (with one bonus) and use these named cells with an example at the end.
We are going to name two groups of cells of this dataset through 3 easy methods. After that, we’ll use those named cells in a formula to see how it makes our formula easy to read, understand, and maintain.
The dataset represents 7 soccer players with their career goals and the number of matches played to score these goals until July 2020. From this, we’ll be able to calculate the number of matches required for each player to score a goal.
Note: Naming cells should follow the naming convention defined by Microsoft Excel.
1. Using the Name Box to Name a Group of Cells in Excel Â
This method shows, how we can name a group of cells in Excel by typing a name in the Name Box. Let’s begin:
- At first, we selected a range of cells by dragging the mouse (here C5:C11). We see in the NameBox(on the top-left corner of the worksheet), it only shows the column reference C5.
- Then, type a name in NameBox (Goals, in this example) and hit Enter.
- Here, if we select the cell group again, the NameBox shows the given name(Goals).
Read More: How to Display Named Range Contents in Excel
Similar Readings
- Excel VBA to Create Named Range from Selection
- How to Set Value to a Named Range with Excel VBA
- Delete All Named Ranges in Excel
- How to Use Dynamic Named Range in an Excel Chart
2. Applying the Excel Define Name Option to Name a Group of Cells Â
By using the Define Name option in the Formula tab, we can name a range of cells in MS Excel. Let’s follow along:
- Firstly, we selected the Formulas tab and then, click the Defined Names option.
- The previous step would open up a dialog box, where you put your desired name. We put Goals in the input box here. Finally, press OK to finish the process.
- Now, we can see the named group of cells.
3. Naming a Group of Cells in Excel with Excel Name ManagerÂ
Another way to get a named group of cells is to use the Name Manager in the Formulas tab in Excel. Here is the complete guide:
- In the first step, we selected a range of cells(C5:C11), the Formulas tab and then, the Name Manager option.
- Then, from the Name Manager window, click the New button.
- Hence, a new window popped up where we entered our desired name(Goals) and clicked OK to save.
- Finally, we could give a name to a group of cells(C5:C11) as Matches.
Let’s Check:
The above 3 methods enabled us to name C5:C11 cells as Goals.
- Similarly, we named D5:D11 as Matches following any of the three methods.
- Then, let’s divide the Goals column by the Matches Played column to get Goals per Match for each player. In the cell E5, we type the following formula
- After that, hit Enter. Then, apply the same formula in E6:E11 by dragging the Autofill Handler.
That’s how we can make our complex formulas more edible.
How to Apply Create From Selection Option to Give Name to Grouped Cells in Excel
If your data is organized in a tabular form, this bonus method will enable you to give a name to each cell of a column corresponding to another column’s cells. Let’s follow the example to make it clear to understand:
- Here, we selected two columns B5:B11 and C5:C11, and then from the Formulas tab got the Create from Selection option.
- After that, we selected Left Column from the Create Names from Selection tab. And don’t forget to click OK.
- Finally, if we select any of the cells in the Goals column, the NameBox shows the corresponding name of the player from the Player Name column. The Player column is left to the Goals column, that’s why we selected the left column option in the previous step.
Download Practice Workbook
Conclusion
In this article, we tried to illustrate how the practice of naming a group of cells in Excel could make formulas easy to read, understand, and maintain. Now you know three easy methods how to name a group of cells in Excel. If you have any further queries or suggestions, don’t forget to comment below.
Related Articles
- How to Edit Named Range in Excel
- How to Find a Named Range in Excel
- Use Named Range in Excel VBA
- Paste Range Names in Excel
- How to Name a Column in Excel
- How to Change Scope of Named Range in Excel
- How to Use Named Range in Excel VLOOKUP Function
- How to Check If Named Range Exists with Excel VBA
- How to Navigate to a Named Range in Excel
- How to Create Dynamic Named Range in Excel
- Create Dynamic Named Range with VBA in Excel
- Excel INDIRECT Function with Named Range
- Excel Reference Named Range in Another Sheet
- How to Ignore Blank Cells in Named Range in Excel
- Excel VBA to Loop Through Named Range
- Define Names with the Create from Selection Tool in Excel
- Excel VBA to Delete Named Range
- How to Delete Named Range Excel