Excel basics: Get started with tables


Tables are one of the fundamental tools in Excel. Putting your data in a table makes it visually appealing and much easier to read.

Tables also make it easier to work with your data, offering built-in sorting and filtering tools as well as easy-to-use calculation features to help you get useful insights from your data. In fact, some advanced Excel features, such as its new genAI-powered data analysis, require you to put your data in table format first.

In this story, we’ll get you up and running with tables in Excel, from creating and formatting them to performing calculations on their data. Below is the sample data we will be using, if you’d like to copy and paste it into a blank Excel worksheet and follow along with the tutorial:

Item Jan Feb March
Lemons $300 $220 $240
Bananas $190 $190 $170
Apples $220 $170 $120
Pears $170 $200 $190

We’ll demonstrate in Excel for Windows with a Microsoft 365 subscription. If you use a different version of Excel, most steps will work similarly, but you may not have all the features shown here.

How to make and format a table in Excel

To create a table in Excel, go to the Insert tab on Excel’s Ribbon toolbar and select Table. The Create Table pane will pop up asking you to select the data you want to include in the table. Highlight the data you want in the table. If your data includes column headers (as our example does), click the My table has headers checkbox, and then select OK.

Creating a table in Excel.

Shimon Brathwaite / IDG

Alternatively, you can start by selecting the data you want to include in the table and then selecting Insert > Table. The Create Table pane will pop up with the data range prepopulated.

After you click OK, the table will appear in place of the plain data you selected. By default, the table will typically be formatted with a dark blue header and alternating light blue and white rows, but you can choose between several different colors and designs. To do so, click on the table you created, select the Table tab in the Ribbon, and scroll through the table design options at upper right. Click on any design, and your table’s formatting will instantly change to match. For this demonstration, we’ll select the yellow coloring.

Choose a table design from the gallery on the Table tab.

Shimon Brathwaite / IDG

And that’s it. It took all of 20 seconds to create and format a table in Excel.

How to use a Total row for quick calculations

Next, you’ll add calculations to your table. This lets you summarize information easily for viewing. To do so, click on your table, navigate to the Table tab in the Ribbon, and check the Total Row option. A row marked “Total” appears at the bottom of the table. By default it shows the sum of the numbers in the final column of your table.

Adding a Total row to the bottom of the table.

Shimon Brathwaite / IDG

What if you want to show totals for the other columns in the table — or show something other than sums in the final row? Based on the name, it would seem that you can only use the Total row for totals, but that is not true. If you click in any cell in the final row, a downward pointing triangle icon appears next to it. Click the triangle and a dropdown appears. You can calculate many different values, such as average, minimum, maximum, standard deviation, and more, and you can calculate each column.

The Total row can perform many different types of calculations.

Shimon Brathwaite / IDG

If you choose to show calculations for multiple columns in a table, you’ll want to use the same calculation for each one so they’re consistent across the Total row. You’ll also want to label the row appropriately. If you’re showing averages in the Total row, for instance, change “Total” to “Average” in the first cell.

How to sort and filter data in an Excel table

In addition to making calculations, tables allow you to easily filter or sort data so that it can be presented in the way that you like.


To sort items by ascending or descending order, simply click the downward triangle next to any column header and select Ascending or Descending on the pane that appears. If you’ve chosen a column with text, the rows will be arranged from A to Z or from Z to A. If you sort on a column with numbers, they’ll be arranged from lowest to highest or from highest to lowest.

Sorting column A in ascending order.

Shimon Brathwaite / IDG

Sorting on a column brings the whole row along. In our sample data, for instance, sorting on column A in ascending order moves Apples to the top row — and the Jan, Feb, and March sales figures for Apples also move to the top row. This keeps all the relevant data together.


You can also filter out some items completely to limit what is shown. This doesn’t delete any of the table data; it simply hides it so you can zero in on a subset of your data.

To do so, click the button next to the column header and then find the list of items in the column near the bottom of the pane that appears. Uncheck items until only the desired ones are left (in our case, Apples and Bananas).

srcset=”https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?quality=50&strip=all 1362w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?resize=300%2C292&quality=50&strip=all 300w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?resize=768%2C747&quality=50&strip=all 768w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?resize=1024%2C995&quality=50&strip=all 1024w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?resize=717%2C697&quality=50&strip=all 717w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?resize=173%2C168&quality=50&strip=all 173w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?resize=86%2C84&quality=50&strip=all 86w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?resize=494%2C480&quality=50&strip=all 494w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?resize=370%2C360&quality=50&strip=all 370w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-06-filter-by-name.png?resize=257%2C250&quality=50&strip=all 257w” width=”1024″ height=”995″ sizes=”(max-width: 1024px) 100vw, 1024px”>

We’ve unchecked Lemons and Pears while leaving Apples and Bananas selected.

Shimon Brathwaite / IDG

The final product looks like this:

The filtered table shows only the Apples and Bananas data.

Shimon Brathwaite / IDG

To go back to the normal view where all of the data is visible, simply click the column header button again and select Clear Filter.

Select Clear Filter to make all table data visible again.

Shimon Brathwaite / IDG

Tip: When you’ve sorted by a column, the button next to that column header changes to show an arrow pointing up next to the downward triangle. When you’ve filtered the items in a column, the button shows a funnel next to the triangle. And when you’ve both sorted and filtered the data, the button shows both an up arrow and a funnel. This indicator lets you know at a glance when sorting or filtering has been done to a table and which column it’s been done on.

Another way to filter is based on certain criteria, such as showing only items with numbers greater than a certain value. This is called conditional filtering. To see this in action, select the down arrow triangle to the Jan header. In the center of the pane that appears, click the first Equals dropdown and change it to Greater Than or Equal To, then type in 200 in the field to the right. Click the radio button for And. Then change the second dropdown to Less Than or Equal To and type in 300 on the right.

srcset=”https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-09-conditional-filter.png?quality=50&strip=all 586w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-09-conditional-filter.png?resize=192%2C300&quality=50&strip=all 192w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-09-conditional-filter.png?resize=446%2C697&quality=50&strip=all 446w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-09-conditional-filter.png?resize=107%2C168&quality=50&strip=all 107w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-09-conditional-filter.png?resize=54%2C84&quality=50&strip=all 54w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-09-conditional-filter.png?resize=307%2C480&quality=50&strip=all 307w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-09-conditional-filter.png?resize=230%2C360&quality=50&strip=all 230w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-09-conditional-filter.png?resize=160%2C250&quality=50&strip=all 160w” width=”586″ height=”916″ sizes=”(max-width: 586px) 100vw, 586px”>

Setting two conditions for filtering a table.

Shimon Brathwaite

This sets the filter to show only items that have values from 200 to 300 in the Jan column, as shown below.

Only the items with values between 200 and 300 in the Jan column now appear.

Shimon Brathwaite

How to create a calculated column in an Excel table

The Total row we discussed earlier calculates table data in a column, but you can also calculate data across rows. To do this easily, simply click the cell to the right of the final column in the first row of your table that contains data. Then, type in =average and select AVERAGE from the dropdown that appears. Highlight the entire row, and Excel fills in the rest of the formula to calculate the average for the values in the row. Hit Enter.

Select AVERAGE and highlight the whole row, then press Enter.

Shimon Brathwaite

Once you hit Enter, not only will Excel calculate the average for that row, but for all of the rows in the table — and it will use formatting that is consistent with the rest of the table. Thus, you’ve created a whole column simply by entering one function. Microsoft calls these calculated columns.

Excel has calculated averages for all four rows in the table.

Shimon Brathwaite

Note: Excel will typically give the new column a name in line with the other headers (in this case “April”), so you might want to rename it to something more fitting, like “Average.”

Change the column header to reflect the data being shown in the calculated column.

Shimon Brathwaite

Average isn’t the only calculation available in table rows. You can also perform sum, minimum, maximum, item count, and a host of other operations. See “How to use Excel formulas and functions” for an introduction to the functions available in Excel.

How to create a chart from a table

In this final section, you will learn how to make charts based on data stored in tables — a great way to visually present that data. To begin, highlight all the data rows in your table (not the header row or the Total row). Navigate to the Insert tab, select Recommended Charts, and choose the second chart — the Clustered Column chart with no line running through it.

Creating a chart from table data.

Shimon Brathwaite

A clustered column chart will appear on your worksheet, but you’ll notice that the labels at the bottom don’t reflect your header names. Let’s change that. Right-click the chart and choose Select Data from the menu that pops up.

On the Select Data Source screen that appears, select each legend name on the left and change it to the appropriate month by typing the month name in the Name field to the right. Once you have changed all four, click OK to apply the changes to the chart.

srcset=”https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?quality=50&strip=all 1036w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?resize=278%2C300&quality=50&strip=all 278w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?resize=768%2C829&quality=50&strip=all 768w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?resize=949%2C1024&quality=50&strip=all 949w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?resize=646%2C697&quality=50&strip=all 646w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?resize=156%2C168&quality=50&strip=all 156w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?resize=78%2C84&quality=50&strip=all 78w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?resize=445%2C480&quality=50&strip=all 445w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?resize=334%2C360&quality=50&strip=all 334w, https://b2b-contenthub.com/wp-content/uploads/2024/06/excel-tables-15-change-labels.png?resize=232%2C250&quality=50&strip=all 232w” width=”949″ height=”1024″ sizes=”(max-width: 949px) 100vw, 949px”>

You can change the legend labels manually.

Shimon Brathwaite

The chart now shows the correct legend labels. As a final improvement, double-click the title of the chart and rename it to “Sales Table.”

The final chart based on our table data.

Shimon Brathwaite

Of course, you’re not limited to column charts; there are dozens of chart styles to choose from in Excel. On the Ribbon’s Insert tab to the right of Recommended Charts, you’ll find dropdowns for various styles of column charts, line charts, and pie charts, as well as an array of specialized charts such as treemap, histogram, scatter charts and more. It’s worth experimenting with different styles to see which works best to present the data or trend you want to highlight.

More Excel tutorials:

Previous Story

Meta’s privacy policy lets it use your posts to train its AI

Next Story

Anthropic Claude 3.5 Sonnet is here, and it’s free