Sub topic 1
What a table adds to a plain range
Prerequisites
This chapter assumes you can do the following:
- Select cells and enter data and formulas.
- Find commands on the Ribbon and use common keyboard shortcuts.
- Read A1-style references such as
D2:D100.
The working model
A plain range is a block of cells. Excel treats it as cells and nothing more. It has no name, no fixed edges and no idea which row holds headings.
An Excel table is a range that Excel tracks as one object. Its technical name is a ListObject. Excel stores the table's boundaries, its column names and its formatting rules. It then updates them as you work.
A table is not a different place to store data. The cells are the same, and the table is a layer of behavior on top of them.
What the layer adds
| Feature | Plain range | Table |
|---|---|---|
| Name | Optional, set manually | Every table has one, such as `Table1`, and you can rename it |
| Growth | Formulas keep their old addresses | The table extends when you type below it |
| Formulas | Cell addresses like `D2:D100` | Column names like `SalesTable[Amount]` |
| Column formulas | Fill down by hand | One formula fills the whole column |
| Filter and sort | You add AutoFilter yourself | Buttons appear on the header row |
| Totals | Typed into a cell | A switchable total row |
| Formatting | Manual | Banded rows and a style that follow the data |
Seeing the difference
Suppose a sales list sits in A1:D100, with amounts in column D. To total it from a range, you write a formula that points at fixed addresses.
=SUM(D2:D100)If you add a row 101, this formula can miss it. Excel sometimes extends the reference, but you can't rely on that.
Once the data is a table named SalesTable, the same total reads like this:
=SUM(SalesTable[Amount])The reference names a column, not cells. When the table grows, the column grows with it, and the formula still covers every row.
Common errors at this stage
- Expecting a table to change your data. Creating a table does not move or alter values. If a result looks wrong, check the source cells.
- Treating a range with a blank row as one block. Excel decides the data's edges from the contiguous cells around the active cell. A blank row or column can split your data. The next chapter covers cleaning this up.
- Assuming a table is always the best choice. Tables suit lists with one heading row and one record per row. A free-form layout, a report with merged cells or a sheet with several blocks of data fits a plain range better.
- Confusing a table with a PivotTable. A table organizes and extends your source data. A PivotTable summarizes it. They work well together, but they are separate features.
What comes next
The following chapters build on this model in order. You prepare the source range, create the table, name and style it, and then use structured references, calculated columns, filtering, the total row and slicers. Later you convert a table back to a range and create one with VBA.
Exercise
A sheet holds a sales list in A1:D100, and a cell contains =SUM(D2:D100). A colleague types a new record in row 101. Why might the total miss it, and how would a table named SalesTable avoid the problem?
Show answer
The formula points at fixed cell addresses, so it covers only D2:D100 unless Excel happens to extend it. In a table, the new row extends the table, and a formula such as =SUM(SalesTable[Amount]) refers to the whole Amount column. It then includes row 101 automatically.