Excel course · Lesson 10 of 34

Excel tables and structured references

Turn a range into an Excel table: automatic formatting, growing ranges, calculated columns, the total row and structured references like Sales[Amount].

Beginner 16 min read

An Excel table (sometimes called a ListObject) is a range that Excel knows is a single block of data with headers. Converting a list to a table costs one shortcut and gives you a lot in return: formatting that extends to new rows, filters on every header, formulas that copy themselves down, a total row, and formulas that refer to columns by name. Tables are also the best source for PivotTables, charts, Power Query and drop-down lists, because everything built on a table grows when the table grows.

Creating a table

ABCDE
1DateRegionProductQtyPrice
22026-01-08NorthLaptop3950
32026-01-09SouthMonitor5189
42026-01-12NorthMouse2012
52026-01-14EastLaptop2950
62026-01-15SouthKeyboard1225

A sales list in A1:E6, ready to become a table.

  1. Click any cell inside the list.
  2. Choose Insert › Tables › Table, or press Ctrl+T (Mac: Ctrl+T as well; Ctrl+L also works on Windows).
  3. Check that the range =$A$1:$E$6 is correct and that My table has headers is ticked. Click OK.
  4. The range gets banded rows and filter buttons, and the Table Design tab appears (called Table on Mac).
  5. In Table Design › Properties › Table Name, replace Table1 with a meaningful name: Sales. Names cannot contain spaces.
Tip. Always rename tables straight away. Sales[Price] in a formula is self-explanatory; Table3[Price] is not.

Tables grow by themselves

Type a new date in A7, directly below the table, and press Enter. The table expands to include row 7: the banding continues, the formats are copied, and any formula, chart, PivotTable or drop-down list based on the table now includes the new row. You can also drag the small resize handle at the bottom-right corner of the table, or press Tab in the last cell of the table to add a new row.

Calculated columns

  1. Click F1, type the heading Amount and press Enter. The table grows to include column F.
  2. In F2, type = and click D2, type *, click E2. Excel writes =[@Qty]*[@Price] instead of =D2*E2.
  3. Press Enter. The formula fills the whole column automatically. This is a calculated column.
  4. Add a row later and the formula appears in it automatically.
F3fx=[@Qty]*[@Price]
ABCDEF
1DateRegionProductQtyPriceAmount
22026-01-08NorthLaptop39502850
32026-01-09SouthMonitor5189945
42026-01-12NorthMouse2012240
52026-01-14EastLaptop29501900
62026-01-15SouthKeyboard1225300

The calculated column Amount. Every cell in F2:F6 holds the same formula.

Result: 945

[@Qty] means "the Qty value in this row". The @ is short for this row. The formula is identical in every row, which makes it easy to read and impossible to break by copying the wrong cell.

Watch out. If you overwrite one cell in a calculated column with a different formula or a number, Excel marks it with a green triangle as an inconsistent formula. Avoid exceptions in calculated columns; if a row needs special treatment, add a separate column with an IF.

Structured references

References to table parts use the table and column names. They are called structured references.

ReferenceRefers to
SalesAll data rows (no headers, no total row)
Sales[Amount]The Amount column, data rows only
Sales[@Amount] or [@Amount]The Amount value in the same row as the formula
Sales[#Headers]The header row
Sales[#Totals]The total row
Sales[#All]Everything: headers, data and totals
Sales[[Qty]:[Amount]]The columns Qty to Amount

Outside the table, formulas read naturally:

Formula
=SUM(Sales[Amount])
=SUMIFS(Sales[Amount], Sales[Region], "North")
=COUNTIFS(Sales[Product], "Laptop")
=AVERAGE(Sales[Price])
Formulas outside the table using structured references.
FormulaResult
=SUM(Sales[Amount])6,235
=SUMIFS(Sales[Amount], Sales[Region], "North")3,090
=COUNTIFS(Sales[Product], "Laptop")2
=AVERAGE(Sales[Price])425.2

You do not need to type these. When you drag over a whole table column while writing a formula, Excel inserts the structured reference for you. If you prefer plain addresses, you can switch this off under File › Options › Formulas › Use table names in formulas.

Copying structured references sideways

Structured references behave like relative references when dragged across with the fill handle: =SUM(Sales[Qty]) dragged one column right becomes =SUM(Sales[Price]). To lock a column, use the range form with the column repeated: Sales[[Qty]:[Qty]]. Copying with Ctrl+C and Ctrl+V keeps the reference unchanged.

The total row

  1. Click inside the table and tick Table Design › Table Style Options › Total Row (Ctrl+Shift+T on Windows).
  2. A Total row appears below the data. The last column gets a sum automatically.
  3. Click any cell in the total row to open a drop-down with Sum, Average, Count, Max, Min, StdDev and more.
  4. The total row uses SUBTOTAL, so it ignores rows hidden by a filter. Filter Region = North and the total shows 3,090.

Other table features

  • Banded rows and columns, header row on/off and first/last column emphasis: Table Design › Table Style Options.
  • Table styles: a gallery of colour schemes in Table Design › Table Styles.
  • Slicers: Table Design › Tools › Insert Slicer adds clickable buttons that filter the table, great for dashboards (PivotCharts, slicers and timelines).
  • Remove Duplicates: Table Design › Tools › Remove Duplicates (Removing duplicates and cleaning data).
  • Headers stay visible: when you scroll down a table, the column letters are replaced by the table headers, so you rarely need Freeze Panes.
  • Summarize with PivotTable: one click to build a PivotTable from the table (PivotTables: summarise thousands of rows in seconds).

Converting back to a range

Table Design › Tools › Convert to Range turns the table back into normal cells. The formatting stays, and structured references in formulas are converted to normal cell references.

Limitations to know

  • Tables cannot contain merged cells, and headers are always text: a header typed as 2026 becomes the text 2026.
  • Traditional array formulas entered with Ctrl+Shift+Enter that return several cells are not allowed inside a table, and dynamic array formulas cannot spill inside a table (you get #SPILL!). Put spilling formulas outside tables.
  • A protected sheet stops a table from expanding automatically.
  • Shared workbooks in the old legacy sharing mode do not support tables; modern co-authoring does.
Note. Tables work in all current versions: Excel 2016, 2019, 2021, Microsoft 365, Excel for Mac and Excel for the web. On Mac the contextual tab is named Table, and the shortcut is Ctrl+T, the same as on Windows (Cmd+T on a Mac switches $ references instead).

Check yourself

1. Which shortcut converts a range into a table on Windows?

2. What does [@Qty] mean in a table formula?

3. You type a new record directly below a table. What happens?

4. Which reference returns the Amount column of the Sales table, data rows only?

5. Why does the total row ignore rows hidden by a filter?

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 12 KB