Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 Excel 2010 Excel 2007 Excel for Mac 2011 More…Less
Each time you create a table, Excel assigns a default name to the table according to this naming convention: Table1, Table2, Table3, and so on. To make it easier to refer to a table, for example, in a workbook that contains many tables, you can name each table.
Note: The screen shots in this article were taken in Excel 2016. Your view may differ slightly if you have a different version of Excel, but the functionality is the same (unless otherwise noted).
To rename a table:
-
Click on the table.
-
Go to Table Tools > Design > Properties > Table Name.
On a Mac, go to the Table tab > Table Name.
-
Highlight the table name and enter a new name.
Tips:
-
All of your tables will be shown in the Address bar, which appears to the left of the Formula bar. When you select any table from the list, Excel will automatically jump to that table—even if it’s on another worksheet.
-
Important notes for names
-
Use valid characters — Always begin a name with a letter, an underscore character (_), or a backslash (). Use letters, numbers, periods, and underscore characters for the rest of the name.
Exceptions: You can’t use «C», «c», «R», or «r» for the name, because they’re already designated as a shortcut for selecting the column or row for the active cell when you enter them in the Name or Go To box.
-
Don’t use cell references — Names can’t be the same as a cell reference, such as Z$100 or R1C1.
-
Don’t use a space to separate words — Spaces cannot be used in the name. Consider how you can write the name using no spaces. Or, use an underscore character (_) or a period (.) as word separators. Examples: DeptSales, Sales_Tax or First.Quarter.
-
Maximum 255 characters — A table name can have up to 255 characters.
-
Use unique table names — Duplicate names aren’t allowed. Excel doesn’t distinguish between upper and lowercase characters in names, so if you enter “Sales” but already have another name called “SALES» in the same workbook, you’ll be prompted to choose a unique name.
Rename a table in Excel for the web
Note: This is one of several beta features, and currently only available to a portion of Office Insiders at this time. We’ll continue to optimize these features over the next several months. When they’re ready, we’ll release them to all Office Insiders, and Microsoft 365 subscribers.
-
Click on the table.
-
On the Table Design tab, double-click the Table Name, and then enter a new name.
Need more help?
You can always ask an expert in the Excel Tech Community or get support in the Answers community.
See Also
Overview of Excel tables
Video: Create an Excel table
Total the data in an Excel table
Resize a table by adding or removing rows and columns
Excel table compatibility issues
Export an Excel table to SharePoint
Convert an Excel table to a range
Filter data in a range or table
Need more help?
Want more options?
Explore subscription benefits, browse training courses, learn how to secure your device, and more.
Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.
Do you want to name or rename your table? This post is going to show you how to name a table in Excel.
When you create a table, Excel will give it a generic name such as Table1, Table2, etc. But this isn’t usually a very good descriptive name for your table.
You will need to reference your table name in formulas and other locations, so giving it a descriptive name is the best practice.
Get your copy of the example workbook to follow along with the post and find out how to give your table a new name!
Rules for Naming Tables in Excel
Not all names are allowed for tables. There are a few rules you will need to follow when naming a table.
- Allowed characters: You can only use letters, numbers, underscore, or backslash characters in a table name. No spaces or other special characters are allowed.
- First Character: A table name must begin with either a letter or an underscore, it can not begin with a number.
- Maximum Length: A table name can have a maximum of 255 characters.
- Reserved Names: Certain reserved names are not allowed such as R, and C.
- Cell References: Names such as ABC123 are not allowed because the name is already used as a cell reference.
- Case Insensitive: Names are not case-sensitive so MyTable is the same name as MYTABLE.
- Unique Names: Each table must have a unique name within a workbook.
These rules do allow a wide variety of names, so most of the time you won’t notice they exist.
If you do try to create a name that violates one of these rules, a pop-up warning will tell you the syntax of this name isn’t correct.
💡 Tip: Name all tables in your workbook with a common prefix such as tbl. This way all the tables are listed together in places like the name box, formula IntelliSense, or name manager!
Name a Table from the Table Design Tab
The process to name a table is simple and can be done from the Table Design tab.
This is a contextual tab that will only appear in the ribbon when your table is selected.
Follow these steps to name your table from the Table Design tab.
- Select a cell inside your table. This will cause the Table Design tab to show up in the ribbon.
- Go to the Table Design tab.
- Click into the Table Name field and type a new name.
- Press the Enter key to confirm the name.
Now your table has a new name!
Name a Table from the Navigation Pane
The navigation pane is an easy way to see all the objects in your workbook and navigate to them with a click.
The navigation pane includes a list of all the tables in your workbook and you can even name them directly in the pane.
Follow these steps to name a table with the Navigation pane.
- Go to the View tab.
- Click on the Navigation command.
This will open the Navigation pane on the right side of the workbook. You’ll see all the sheets in your file listed and you can expand each sheet to see all the objects that it contains.
- Expand the sheet that contains the table to name.
- Right-click on the table.
- Select Rename from the menu.
This opens the Rename menu inside the Navigation pane.
- Give the table a name in the Rename to field.
- Press the OK button.
This will give your table a new name! The Navigation pane is a great option for naming multiple tables as you can see them all listed in one window.
Name a Table from the Name Manager
Another place that will list all your tables is the Name Manager. As the name suggests, it allows you to manage named objects such as named ranges and tables.
You’ll be able to name your tables in the Name Manager too!
Follow these steps to use the name manager to name your tables.
- Go to the Formulas tab.
- Click on the Name Manager command.
This will open up the Name Manager which shows you all your named objects.
- Select the table to name.
- Click on the Edit button.
💡 Tip: You can show only the tables in the Name Manager if you have a long list of named objects. Click on the Filter button and select Table Names from the options.
When you click on the Edit button, Excel will open the Edit Name menu.
- Change the name in the Name input.
- Press the OK button.
This will name the table and you can press the Close button to close the Name Manager.
Name a Table from the Accessibility Tab
Giving your table a meaningful name can help people with vision problems understand what the table contains. A screen reader will read the table name to the user along with any alt text.
This is why you’ll also find the table naming command in the Accessibility tab.
Follow these steps to name a table from the Accessibility tab.
- Select a cell inside the table to name.
- Go to the Review tab.
- Click on the top part of the Check Accessibility command.
This will open the Accessibility pane on the right of the workbook as well as reveal an Accessibility tab in the ribbon.
- Go to the Accessibility tab.
- Type the table name into the Table Name input box in the Name section.
- Press the Enter key to accept the name change.
Your table name has now been updated!
Name a Table from the Quick Access Toolbar
Naming a table is such a common task in Excel that you should consider adding the Table Name input to the Quick Access Toolbar.
This way you’ll be able to quickly name your tables without the need to navigate to any ribbon.
When in the Table Design tab, right-click on the Table Name heading and choose the Add to Quick Access Toolbar option from the menu.
Now wherever you are in the Excel ribbons, you can quickly name your tables!
Name a Table with VBA
Suppose you have a workbook with loads of tables all suffixed with the year.
When you reuse the file for next year, you’ll need to update all the table names to the new year. This could be a tedious task!
This is something that could be easily done with a VBA script.
Go to the Developer tab and click on the Visual Basic command, or press the Alt + F11 keyboard shortcut to open the visual basic editor.
Go to the Insert tab of the visual basic editor and select the Module option.
Sub RenameTables()
Dim wsObj As Worksheet
Dim tableObj As ListObject
For Each wsObj In ActiveWorkbook.Worksheets
For Each tableObj In wsObj.ListObjects
tableObj.Name = Replace(tableObj.Name, "2022", "2023")
MsgBox tableObj.Name
Next tableObj
Next wsObj
End Sub
You can then paste in the above VBA code.
This code will loop through each worksheet and then loop through each table in the worksheet. It uses the Replace vba function to find and replace instances of a given text in the table name.
tableObj.Name = Replace(tableObj.Name, "2022", "2023")
The above code will find 2022 in the table name and replace it with 2023, but you can change this to suit your needs. Just change the above line of code accordingly.
Name a Table with Office Scripts
If you are using Excel online, then you won’t be able to use VBA! But you can still automate the table naming process with Office Scripts.
Go to the Automate tab and click on the New Script option.
This will open the Office Scripts code editor on the right side of the workbook.
function main(workbook: ExcelScript.Workbook) {
//get all tables in the workbook
let tbls = workbook.getTables();
//loop through each table in tbls and replace text
for (let i = 0; i < tbls.length; i++) {
tbls[i].setName(tbls[i].getName().replace('2022', '2023'));
};
};
Copy and paste the above code into the Code Editor and press the Save script button. Press the Run button to execute the code.
The code will loop through all the tables and replace the text from 2022 to 2023 in the table names. You can edit this part of the code replace('2022', '2023')
to change this to suit your own situation.
Conclusions
Tables are the best tool for keeping your tabular data organized and they come with many beneficial features!
Naming your table is just as important to help organize all your tables. This is an easy process and can be done from either the Table Design or Accessibility tabs.
The Name Manager or the Navigation pane can also be used to see a list of all your tables and then give them names.
If you need to automate the table naming process, this can also be done with either VBA or Office Scripts.
Do you take the time to name your tables? Do you know any other table naming tips? Let me know in the comments section below!
About the Author
John is a Microsoft MVP and qualified actuary with over 15 years of experience. He has worked in a variety of industries, including insurance, ad tech, and most recently Power Platform consulting. He is a keen problem solver and has a passion for using technology to make businesses more efficient.
By default, Microsoft Excel names your tables “Table1”, “Table2”, and so on. If you’d prefer custom names, you can rename your tables in Excel. It’s easy, and it works similarly to assigning names to cell ranges.
RELATED: How to Assign a Name to a Range of Cells in Excel
Supported Table Names in Microsoft Excel
Excel has certain rules for naming tables, and you must adhere to these while giving names to your tables:
- Starting Character: Your table’s name must start with a character, an underscore (_), or a backslash (). Also, you can’t use “C”, “c”, “R”, or “R” as your table name as these characters are designated for other purposes in Excel.
- Cell Reference: You can’t use a cell reference as your table name.
- Name Separator: You can’t separate multiple words in your table name with a space. To do that, use either an underscore or a dot.
- Character Limit: Your table name must fit the 255 maximum character limit.
- No Same Names: You can’t have two tables with the same name in your workbook. Also, Excel considers uppercase and lowercase table names the same, so you can’t use “MYTABLE” if you have used “mytable” in your workbook already.
When you rename your table and you miss one of the above points, Excel will alert you with an error message so you can fix the issue.
RELATED: How to Highlight Blanks or Errors in Microsoft Excel
To give a name to your table, first, open your spreadsheet with Microsoft Excel.
In your spreadsheet, click any cell of the table you want to rename.
While your cell is selected, in Excel’s ribbon at the top, click the “Table Design” tab. If you are on a Mac, click “Table” instead.
On the “Table Design” tab, in the “Properties” section, click the “Table Name” field. Then type a new name for your table and press Enter.
Your table now uses your specified name, and this is the name you will use to refer to it from other cells in your spreadsheet.
And you’re all set.
Need to add or remove rows or columns from your Excel table? It’s equally easy to do that.
RELATED: How to Add or Delete Columns and Rows in a Table in Microsoft Excel
READ NEXT
- › How to Apply Color to Alternate Rows in Microsoft Excel
- › How to Use the Navigation Pane in Microsoft Excel
- › Google Chrome Is Getting Faster
- › This New Google TV Streaming Device Costs Just $20
- › The New NVIDIA GeForce RTX 4070 Is Like an RTX 3080 for $599
- › HoloLens Now Has Windows 11 and Incredible 3D Ink Features
- › How to Adjust and Change Discord Fonts
- › BLUETTI Slashed Hundreds off Its Best Power Stations for Easter Sale
How-To Geek is where you turn when you want experts to explain technology. Since we launched in 2006, our articles have been read billions of times. Want to know more?
I’m using Excel Online and, having inserted a table into a spreadsheet, I would like to name the table. Is this possible in the free online edition and, if so, how?
(I’ve done various searches, and my current thinking is that this behaviour is only available in Office 365)
asked Apr 6, 2018 at 13:42
No, you can’t. The Microsoft Office Support have a topic refering just that:
You may see default table names like Table1 and Table2 in your formulas and wonder how to change them to something more meaningful. Unfortunately, you can’t do this in Excel Online because the Table Tools aren’t available.
answered Apr 6, 2018 at 13:55
CaldeiraGCaldeiraG
2,5267 gold badges18 silver badges33 bronze badges
1