What a data table is and why you want one
A data table in Excel is a range of cells that Excel recognizes as a single unit with a header row. Once you format your data as a table, Excel unlocks filtering buttons, sorting options, and automatic formatting that make the data far easier to work with. You can click a dropdown arrow in any column header and instantly filter to show only certain rows, or sort A to Z without accidentally scrambling your data.
The difference between a plain spreadsheet and a formatted table is immediate. Without a table, if you sort one column, the other columns stay put — your rows get scrambled. With a table, Excel keeps all related data together. You also get automatic color alternation between rows, which makes large datasets easier to read at a glance.
Key Takeaways
- Select your data including headers, then use the Format as Table button on the Home tab to turn it into a recognized table.
- Excel automatically adds filter dropdown arrows to each column header once the table is created.
- Sorting or filtering a table keeps all rows intact — related data in different columns stays together.
- You can rename your table and choose from built-in color schemes, but the filtering and sorting features work the same regardless of style.
Selecting your data before creating the table
Start by clicking on the first cell of your data — usually the top-left corner where your headers begin. Then drag to select all the data you want in the table, or click the first cell and then Shift+Click the last cell. Your selection should include the header row (the row with column names like "Name", "Date", "Amount") and every row of data below it.
If your data has gaps — empty rows or columns in the middle — Excel may stop the selection early. Fill those gaps first, or select only the continuous block of data. You do not need to select the entire spreadsheet; just the rectangle of cells that contains your actual data.
Creating the table using the Home tab
With your data selected, go to the Home tab at the top of the ribbon. Look for the button labeled Format as Table — it usually shows a small grid icon. Click the dropdown arrow next to it to see color options, or click the button itself to use the default style.
Excel will open a dialog box asking you to confirm the range and whether your data has headers. Make sure the "My table has headers" checkbox is ticked if your first row contains column names. Then click OK. Excel will format your selection as a table and add filter dropdown arrows to each header cell.
Using the filter dropdowns to show or hide rows
Once your table is created, each column header displays a small dropdown arrow. Click any arrow to open a menu of all the unique values in that column. Uncheck the boxes next to values you want to hide, then click OK. Excel will show only the rows that match your selections.
For example, if your table has a "Status" column with values like "Pending", "Complete", and "Cancelled", you can click the dropdown and uncheck "Cancelled" to see only pending and complete items. The hidden rows are still there — they are just not displayed. Click the dropdown again and check "Cancelled" to bring them back.
Sorting your table without scrambling the data
Click any column header dropdown and select Sort A to Z to sort that column alphabetically, or Sort Z to A to reverse it. For numbers, you will see Sort Smallest to Largest or Sort Largest to Smallest. When you sort, Excel moves entire rows together — if you sort by last name, the first names, phone numbers, and all other data in each row move with it.
You can also sort by multiple columns. Click the dropdown in your primary sort column, choose your sort order, then click the dropdown in a secondary column and choose its sort order. Excel will sort first by the primary column, then by the secondary column within each group of the primary column.
Renaming your table and changing its style
When you create a table, Excel assigns it a default name like "Table1" or "Table2". To rename it, right-click anywhere in the table and select Table > Rename Table. Type a new name like "Sales_Q1" or "Customer_List". The name does not affect how the table works; it is mainly useful if you plan to reference the table in formulas later.
To change the color scheme, click anywhere in the table, then go to the Table Design tab (which appears only when a table is selected). Choose any style from the gallery. The colors change, but the filtering and sorting features remain exactly the same.
Removing table formatting if you need to
If you decide you no longer want a table and just want a regular range of cells, right-click anywhere in the table and select Table > Convert to Range. The formatting and filter arrows disappear, but your data stays in place. You can also delete the entire table by selecting it and pressing Delete, though this removes the data as well.
Converting to a range is useful if you need to manually edit cells in ways that a table structure might prevent, or if you are moving the data to a different location and do not want the table formatting to come along.
Frequently Asked Questions
Do I have to include headers when I create a table?
No, but you should. If your data does not have a header row, Excel will create one automatically with generic names like "Column1" and "Column2". It is much easier to uncheck a header called "Column1" when filtering than to remember what that column contains. Add headers before formatting as a table.
Can I add new rows to a table after it is created?
Yes. Click the last cell in the last row of your table and press Tab, or simply type data in the row directly below the table. Excel will automatically extend the table to include the new row and apply the same formatting. The filter arrows stay in place.
What if I want to sort by a column that has dates?
Click the date column header dropdown and select Sort Oldest to Newest or Sort Newest to Oldest. Excel recognizes dates and sorts them in chronological order, not alphabetical order. If dates are formatted as text instead of actual dates, they may sort incorrectly — format them as dates first.
Can I use a table for data that changes every day?
Yes. Tables are designed for data that grows or changes. Add new rows as needed, and the table expands automatically. You can also refresh filters and sorts as new data comes in. Just remember that if you delete rows, they are gone permanently — consider archiving old data to a separate sheet instead.