Wednesday, November 14, 2018

Turn Excel table headers on or off

Turn Excel table headers on or off

When you create an Excel table, a table Header Row is automatically added as the first row of the table, but you have to option to turn it off or on.

Example of data formatted as an Excel table

When you first create a table, you have the option of using your own first row of data as a header row by checking the My table has headers option:

Example of using the Format as Table option on the Home tab to auto-select a data range

If you choose not to use your own headers, Excel will add default header names, like Column1, Column2 and so on, but you can change those at any time. Be aware that if you have a header row in your data, but choose not to use it, Excel will treat that row as data. In the following example, you would need to delete row 2 and rename the default headers, otherwise Excel will mistakenly see it as part of your data.

Excel table with header data, but not selected with the My table has headers option, so Excel added default header names like Column1, Column2.

Show or hide the Header Row

  1. Click anywhere in the table.

  2. Go to Table Tools > Design on the Ribbon.

    On a Mac go to the Table tab on the Ribbon.

  3. In the Table Style Options group, select the Header Row check box to hide or display the table headers.

    Image of the Table Tools option on the Ribbon when a table cell is selected

  4. If you rename the header rows and then turn off the header row, the original values you input will be retained if you turn the header row back on.

Notes: 

  • The screen shots in this article were taken in Excel 2016. If you have a different version your view might be slightly different, but unless otherwise noted, the functionality is the same.

  • The table header row should not be confused with worksheet column headings or the headers for printed pages. For more information, see Print rows with column headers on top of every page.

  • When you turn the header row off, AutoFilter is turned off and any applied filters are removed from the table.

  • When you add a new column when table headers are not displayed, the name of the new table header cannot be determined by a series fill that is based on the value of the table header that is directly adjacent to the left of the new column. This only works when table headers are displayed. Instead, a default table header is added that you can change when you display table headers.

  • Although it is possible to refer to table headers that are turned off in formulas, you cannot refer to them by selecting them. References in tables to a hidden table header return zero (0) values, but they remain unchanged and return the table header values when the table header is displayed again. All other worksheet references (such as A1 or RC style references) to the table header are adjusted when the table header is turned off and may cause formulas to return unexpected results.

Need more help?

You can always ask an expert in the Excel Tech Community, get support in the Answers community, or suggest a new feature or improvement on Excel User Voice.

See Also

Overview of Excel tables

Video: Create an Excel table

Create or delete an Excel table

Format an Excel table

Resize a table by adding or removing rows and columns

Filter data in a range or table

Using structured references with Excel tables

Convert a table to a range

No comments:

Post a Comment