Skip to content

Lesson 24 of 92 · Free Excel Course

Excel

How to Make a Table in Excel: Ctrl+T, Total Row and Structured References

Turn a list into an Excel table with Ctrl+T, then use banded styles, calculated columns, the Total Row, structured references, filters and slicers.

In Excel, a "table" means more than a grid with borders. An Excel table is a list that Excel recognises and manages for you: it gets a name, filter buttons and striped rows, it grows when you add data, it fills formulas down by itself, and it adds totals with one click. It takes about three seconds to make one, and it saves you work every day after. This lesson builds a table from a small sales list and tries every feature on it.

Why use a table instead of a plain range?

Here's the list as a plain range: five columns, ten orders, headings in row 1.

A1Order
ABCDE
1OrderRegionProductPriceQty
21001EastDesk$2502
31002WestChair$854
41003EastLamp$405
51004NorthDesk$2501
61005WestLamp$403
71006NorthChair$856
81007EastChair$852
91008WestDesk$2503
101009NorthLamp$408
111010EastDesk$2502
The practice data in A1:E11: a plain range, before it becomes a table.

As a range, this list doesn't know where it ends. Add an order in row 12 and your SUM formulas, charts and drop-down lists still stop at row 11. Turn it into a table and they all follow along. Tables also give you:

  • Filter buttons on every heading, ready to sort and filter.
  • Banded rows that make long lists easy to read.
  • Calculated columns: type a formula once and it fills the whole column.
  • A Total Row with Sum, Average, Count and more in a drop-down.
  • Readable formulas like =SUM(Sales[Amount]) instead of =SUM(F2:F11).

(If you came here looking for an amortization table, meaning a loan payment schedule, that's a different thing. The loan and finance formulas lesson builds one step by step with PMT, IPMT and PPMT, and our free loan calculator and mortgage calculator make one for you.)

How to make a table in Excel (Ctrl+T)

  1. Click any one cell inside your list, such as A1. Excel finds the edges itself.
  2. Press Ctrl+T, or go to Insert and click Table.
  3. The Create Table box shows the range it found, here =$A$1:$E$11. Fix it if it's wrong.
  4. Make sure My table has headers is ticked, so row 1 becomes the heading row.
  5. Click OK.

That's it. If you'd rather pick a colour first, use Home, then Format as Table, choose a style, and you get the same box. Both routes create exactly the same kind of table.

If you forget to tick My table has headers, Excel treats your headings as data and adds a new top row named Column1, Column2 and so on. Press Ctrl+Z and try again, or just delete that row.

Styles, header row and banded rows

Your new table looks like this: a coloured heading row with a filter button in each heading, and every other row lightly shaded.

ABCDE
1OrderRegionProductPriceQty
21001EastDesk$2502
31002WestChair$854
41003EastLamp$405
51004NorthDesk$2501
61005WestLamp$403
71006NorthChair$856
81007EastChair$852
91008WestDesk$2503
101009NorthLamp$408
111010EastDesk$2502
The same list as a table: blue header row with filter buttons and banded rows.

Whenever a cell in the table is selected, a Table Design tab appears on the ribbon. Open the Table Styles gallery there to try other colours; hover to preview. The Table Style Options check boxes switch parts on and off: Header Row, Total Row, Banded Rows, Banded Columns, First Column, Last Column and Filter Button. The bands stay correct when you sort or add rows, which plain shading can't do.

Name your table

Excel calls your first table Table1. Give it a name that says what it holds:

  1. Click inside the table.
  2. On Table Design, click the Table Name box at the far left.
  3. Type Sales and press Enter.

Names must start with a letter, underscore or backslash, can't contain spaces (use Sales_2026 or Sales.East instead) and can't look like a cell address, such as A1. The name now shows in formulas and in the Name Box list.

Calculated columns: one formula fills the column

Let's add an Amount column, Price times Qty.

  1. Click F1, type Amount and press Enter. The table grows to include column F.
  2. In F2, type = then click D2, type *, click E2, and press Enter.

Because you clicked cells inside a table, Excel writes =[@Price]*[@Qty] instead of =D2*E2. And when you press Enter, it fills the formula into every row of the column. No dragging needed.

F2=[@Price]*[@Qty]
ABCDEF
1OrderRegionProductPriceQtyAmount
21001EastDesk$2502$500
31002WestChair$854$340
41003EastLamp$405$200
51004NorthDesk$2501$250
61005WestLamp$403$120
71006NorthChair$856$510
81007EastChair$852$170
91008WestDesk$2503$750
101009NorthLamp$408$320
111010EastDesk$2502$500
One formula in F2, filled down the whole Amount column by the table. The ten amounts add up to $3,660.

Every cell in the column now holds the same formula, and Excel knows which row each one belongs to. A plain =D2*E2 would have needed filling down by hand. If you didn't want the auto-fill, press Ctrl+Z straight away to undo it.

Add rows: the table grows by itself

Click A12, just below the last order, and type a new one across the row: 1011, South, Lamp, 40, 5. As soon as you type in A12, the table stretches to row 12, the banding continues and the Amount cell fills in $200 on its own. The same happens if you paste rows directly under the table, or type a new heading in the column right of it.

If the table didn't grow, there's probably a blank row in the way, or the Total Row is on (see below). You can always drag the small sizing handle at the bottom-right corner of the table, or use Table Design, then Resize Table.

The Total Row

  1. Click inside the table.
  2. On Table Design, tick Total Row. A Total row appears at the bottom.
  3. Click the total cell under Amount, open its drop-down and choose Sum. Do the same under Qty.
F13=SUBTOTAL(109,[Amount])
ABCDEF
1OrderRegionProductPriceQtyAmount
21001EastDesk$2502$500
31002WestChair$854$340
41003EastLamp$405$200
51004NorthDesk$2501$250
61005WestLamp$403$120
71006NorthChair$856$510
81007EastChair$852$170
91008WestDesk$2503$750
101009NorthLamp$408$320
111010EastDesk$2502$500
121011SouthLamp$405$200
13Total41$3,860
With order 1011 added and the Total Row on: 41 items and $3,860. The total cell uses SUBTOTAL, not SUM.

The drop-down offers Average, Count, Count Numbers, Max, Min, Sum and more, or More Functions for anything else. Excel writes these as SUBTOTAL formulas. The first number picks the maths: 109 means SUM, 101 AVERAGE, 103 COUNTA, 104 MAX, 105 MIN. SUBTOTAL skips rows hidden by a filter, so the total always matches what you can see. Filter the Region column to East and the Amount total changes to $1,370 (500 + 200 + 170 + 500).

Structured references in plain English

Formulas that use table and column names are called structured references. Excel writes them when you click table cells, and they adjust by themselves as the table grows.

You writeIt meansIn this table
Sales[Amount]All data cells in the Amount columnF2:F12
[@Price]The Price cell in this same rowD5, when used in row 5
Sales[#Totals]The total rowA13:F13
Sales[#All]Everything: headings, data, totalsA1:F13

So =SUM(Sales[Amount]) in any cell on any sheet gives $3,860, and it'll include order 1012 the moment you add it. Unlike the Total Row, a plain SUM ignores filters, so it stays $3,860 even while you're looking at East only. Column names with spaces or special characters get an extra pair of brackets, like Sales[[#Totals],[Unit Price]], which is one more reason to keep headings short.

Filter buttons and slicers

The arrows in the heading row work just like the filters in Sort and filter: sort A to Z, tick the values to show, or use Number Filters. They're on from the start, so there's nothing to switch on.

A slicer is a set of big clickable buttons for one column, handy for dashboards. Click inside the table, go to Insert, then Slicer, tick Region and click OK. Click East to filter; hold Ctrl (Cmd on a Mac) to pick several; click the Clear Filter button on the slicer to show everything. Table slicers work in the Windows and Mac apps; Excel for the web can only create slicers for pivot tables.

Tables make charts, pivot tables and drop-down lists update

This is the biggest reason to use tables. Anything that points at a table follows it as it grows:

Convert a table back to a range

To keep the look but drop the table features, click inside the table, then Table Design, then Convert to Range, and confirm. (Or right-click, choose Table, then Convert to Range.) The colours stay. The filter buttons, automatic growth and Total Row drop-down go, and structured references turn into normal cell references such as $F$2:$F$12.

Mac and Excel for the web

Mac: press Cmd+T or Ctrl+T, or use Home, then Format as Table. The ribbon tab that appears is called Table, not Table Design, and holds the same Total Row, Banded Rows, Table Name and Convert to Range options. Convert to Range asks you to click Yes.

Excel for the web: Microsoft lists Ctrl+L to insert a table, or use Insert, then Table, or Home, then Format as Table. If you leave My table has headers unticked, Excel adds Column1, Column2 headings that you can double-click to rename. You can't change the default table style on the web, and slicers for tables aren't available. To convert to a range, right-click the table and choose Table, then Convert to Range.

Try it yourself

Download the practice workbook. Tables can't be pre-built in the file, so the Your task sheet walks you through it and the Answers sheet shows the finished table, with normal formulas such as =SUBTOTAL(109,F2:F12) standing in for the table ones.

  1. On Practice, click A1 and press Ctrl+T. Tick My table has headers.
  2. Name the table Sales.
  3. Type Amount in F1, then =[@Price]*[@Qty] in F2. The column fills down.
  4. Add order 1011, South, Lamp, 40, 5 in row 12. Amount shows $200 by itself.
  5. Turn on Total Row and choose Sum for Qty (41) and Amount ($3,860).
  6. Filter Region to East. The Amount total should read $1,370.

Common mistakes

  • Blank rows or columns in the list. Ctrl+T stops at the gap. Delete blank rows first, or fix the range in the Create Table box.
  • Unticking My table has headers by accident. You get Column1, Column2 above your real headings.
  • Typing below the Total Row. That row isn't part of the table. Turn Total Row off, add data, then turn it back on.
  • Overwriting one cell in a calculated column. Excel marks it as an inconsistent formula. Keep one formula per column.
  • Copy-pasting a total formula sideways. Microsoft notes the column references don't update when you copy and paste in the Total Row; drag with the fill handle or pick from the drop-down instead.
  • Spill formulas inside a table. Functions like FILTER and UNIQUE can't spill inside a table and show #SPILL!. Put them outside it.

What's next

You can now turn any list into a table that formats, grows and totals itself. Next up is Charts and graphs, where a table makes a chart that updates on its own. If you missed it, go back to Conditional formatting, or see the full Excel course.

Frequently asked questions

What's the difference between a table and a normal range in Excel?

A range is just cells. A table is a named object Excel keeps track of: it grows when you add rows, copies formulas down a whole column by itself, has filter buttons and a one-click Total Row, and lets formulas use names like Sales[Amount]. Charts, pivot tables and drop-down lists built on a table pick up new rows automatically.

What is the shortcut to make a table in Excel?

Ctrl+T on Windows (Ctrl+L also works). On a Mac, Cmd+T or Ctrl+T. In Excel for the web, Microsoft lists Ctrl+L. Click one cell inside your list first, then check My table has headers and click OK. See our Excel shortcuts cheat sheet for more.

How do I add a total row to an Excel table?

Click inside the table, go to the Table Design tab (the Table tab on a Mac) and tick Total Row. A new row appears at the bottom. Click any cell in it and pick Sum, Average, Count, Max, Min and more from the drop-down. Excel writes a SUBTOTAL formula such as =SUBTOTAL(109,[Amount]), which only counts the rows you can see when a filter is on.

How do I remove a table but keep the formatting?

Click inside the table, then Table Design > Convert to Range (Mac: Table tab > Convert to Range, then Yes). You can also right-click and choose Table > Convert to Range. The colours stay, but the filter buttons, automatic growth and structured references go, and formulas switch to normal cell references.

What does [@Price] mean in an Excel formula?

It's a structured reference: "the Price cell in this same row of the table". So =[@Price]*[@Qty] multiplies the price and quantity on each row. Excel writes it for you when you click a cell inside a table while typing a formula.

Why isn't my table expanding when I add data?

Make sure you type in the row directly below the last row (or the column directly to the right), with no blank row in between. If the Total Row is switched on, the row under it isn't part of the table: turn Total Row off, add your rows, and turn it back on, or use Table Design > Resize Table.