Lesson 13
28 min
Structure your data and create analysis reports in just a few clicks.
Definition
An Excel Table is a range of data converted into a structured object, with a name, column headers and automatic features (filters, expansion, copied-down formulas). APivotTable is an interactive report thatsummarizes a large amount of data by grouping rows and columns according to the criteria of your choice, and by calculating totals, averages or counts, without writing any formula.
An Excel Table (with a capital T) is a feature that turns a simple range of cells into a structured object, with many automatic benefits: formatting, filters, automatic expansion of formulas, and column names that can be used in formulas.
Don't confuse this "Table" with a simple table of cells: an ordinary range is just a set of cells with no link between them, whereas an Excel Table knows where it starts, where it ends, what its columns are called and how to react when data is added to it. It is the foundation of a well-organized workbook.
Select your data, then:
Insert > Table (or shortcut Ctrl + T)A dialog box asks you to confirm the range and to specify whether your table has headers: always check this box if your first row contains the column titles. A new "Table Design" tab then appears in the ribbon whenever you click inside the table.

If the table is called "Sales" with an "Amount" column:
=SUM(Sales[Amount])
instead of:
=SUM(D2:D157)
→ much more readable, and the reference adjusts automatically if the table growsThe table name can be changed in the Table Design tab, at the left of the ribbon. Choose a short and explicit name, without spaces (for example Salesor Customers), because it will be used in all your formulas. Inside the table, you can also refer to the cell of the column that is on the same row as your formula with the@ symbol.
In a "Total" column of a table containing the "Price" and "Quantity" columns:
=[@Price]*[@Quantity]
→ multiplies the price and the quantity of the same row
→ the formula is automatically copied down to all the rows of the tableA PivotTable automatically summarizes large amounts of data along the axes of your choice, without writing any formula. It is Excel's most powerful analysis tool for turning hundreds of raw rows into a clear report in a few clicks.
Let's take a table of 500 sales with the columns region, product, month and amount. To find out how much each region sold, you would have to write one formula per region. With a PivotTable, you simply drag the "Region" field to one side and the "Amount" field to the other, and Excel instantly calculates all the totals. If you then want to see the results by month rather than by region, you just have to move a field: the report is rebuilt in a second.

A PivotTable is only reliable if the starting data is clean. Before creating one, check a few essential points.
1. Click anywhere in your data table
2. Insert > PivotTable
3. Choose "New Worksheet"
4. In the pane that appears, drag your fields:
- Rows: what you want to group (e.g. "Region")
- Columns: a second grouping axis (e.g. "Month")
- Values: what you want to calculate (e.g. Sum of "Amount")
- Filters: a criterion to display only part of the dataThe "PivotTable Fields" pane lists all the columns of your data. You can also simply check a field: Excel places it automatically, text fields in the rows and numeric fields in the values. The four areas can be changed at any time by drag and drop, without ever touching your original data.

By default, a numeric field placed in "Values" uses the sum. Right-clicking the field, then "Value Field Settings", lets you choose another summary function.
If an amount field displays "Count of Amount" instead of "Sum of Amount", it is almost always a sign that some cells in the column contain text or are empty: Excel then chooses counting. Fix the source data, then refresh the PivotTable.
A PivotTable can be filtered and sorted like an ordinary table: the arrows next to the row and column labels let you hide certain items or rank the results from largest to smallest. The "Filters" area of the pane offers a global filter, placed above the report, for example to display only a single year.
For more visual filtering, the "Insert Slicer" button on the PivotTable Analyze tab adds small clickable buttons: a click on "North" or on "2026" instantly filters the whole report. Slicers also work on an Excel Table.
Unlike a classic formula, a PivotTable does not update automaticallywhen the source data changes. You have to click "Refresh" (right-click the PivotTable, or the PivotTable Analyze tab) after any change to the raw data.
The Alt + F5 shortcut refreshes the selected PivotTable, and Ctrl + Alt + F5refreshes all those in the workbook. Remember to do it before presenting a report: an unrefreshed PivotTable can display outdated figures without any warning.
Best practice
Always build your PivotTable from an Excel Table (covered above) rather than a simple range: if you add rows later, the PivotTable's source expands automatically, without having to redefine the range manually.
You will then only need to refresh the PivotTable for it to take the new rows into account. Without a Table, a fixed range forgets the data added after the report was created, which silently skews the totals.
Exercise
Going further