← Excel Course contents
📗 Excel · Basics 2Published · 7 min read

How to Make a Table in Excel — Borders vs. Format as Table (Ctrl+T), and Why Sorting and Totals Differ

A 'table' in Excel can mean two things: cells with borders drawn around them, or a real table made with Ctrl+T (Format as Table). They look alike, but they behave differently the moment you add a row, filter, sort or total. In this lesson one flower-shop order list is turned into both, and every difference below was measured in Excel for Microsoft 365 on this PC.

Two kinds of table — what's different

The practice file has 8 made-up flower-shop orders (Order date, Customer, Item, Qty, Price). Here is what happened when I turned the same list into each kind of table. This PC runs Excel with a Korean display language, so menu names below come from Microsoft's English documentation; the numbers are what Excel actually returned.

What I triedRange with bordersTable (Ctrl+T)
Type a new order in the row belowno border, SUM stays $610table grows, Amount formula fills in
Amount formulafill it down yourselftype it once, the column fills
Totalwrite a SUMturn on Total Row → SUBTOTAL(109)
Filterturn it on separatelyfilter buttons are already in the header
Sort one column onlycan move that column alone (rows get mixed)whole rows move

For a sheet you'll print and never change, borders are enough. For a list that keeps growing and that you sort, filter and total, use a real table. Let's do both.

Way 1 — draw a table with borders

  1. 1Select A1:F9 (one header row plus 8 orders). Put =D2*E2 in F2 and fill it down.
  2. 2Home tab > Font group > the arrow next to Borders > All Borders.
  3. 3Make the header row bold (Ctrl+B) and you're done.

Borders are just lines on cells — Excel doesn't know the cells form a list. I added a new order in row 10 (Oak Pharmacy, 2 orchid pots, $130): row 10 got no border, and =SUM(F2:F9) kept its range and stayed at $610. To include the new order you have to edit the formula to =SUM(F2:F10) yourself. (I entered the value by automation; when you type by hand, Excel's 'Extend data range formats and formulas' option may carry some formatting down — I didn't test that.)

Way 2 — Format as Table (Ctrl+T)

  1. 1Click any single cell inside the order list — no need to drag-select it.
  2. 2Press Ctrl+T, or go to Insert > Table (you can also pick a color first from Home > Format as Table).
  3. 3In Create Table, check that the range (=$A$1:$F$9) was picked for you and My table has headers is checked, then OK.
Home
1CustomerItemAmount
2Brightline Co.Rose bouquet70
3SophieWreath89
4DanielTulip pot54
5Brightline Co.Orchid pot65
6MiaRose bouquet35
7Sunny KidsTulip pot108
8LeoPreserved flowers84
9SophieRose bouquet105
1/5Click any cell inside the order list (one header row + 8 orders)
Follow along — the steps play by themselves (Pause / Next step buttons). Only three columns are drawn

After OK, Excel named the table (Table1 in English Excel) and applied the Medium 2 style. Every header cell got a filter button, rows were banded, and clicking inside the table shows a Table Design tab. Its Table Style Options group has the check boxes for Header Row, Total Row, Banded Rows and Filter Button.

What I triedResult (this PC)
=[@Qty]*[@Price] in F2 onlyF3:F9 filled with the same formula (calculated column)
New order typed in row 10, right belowtable range A1:F9 → A1:F10, F10 got the formula
Table Design > Total Rowa total row with =SUBTOTAL(109,[Amount]) → $740
=SUM(Table1[Amount]) outside the table$740 — the range follows the table as it grows

[@Qty] is a structured reference that means 'the Qty cell in this row'. Because it uses the header name instead of an address like D2, nothing needs fixing when rows are added. Outside the table, Table1[Amount] means the whole Amount column of that table.

Total Row and filters — adding only the visible rows

Table Design
1Customer▾Item▾Amount▾
2Brightline Co.Rose bouquet70
3SophieWreath89
4DanielTulip pot54
5Brightline Co.Orchid pot65
6MiaRose bouquet35
7Sunny KidsTulip pot108
8LeoPreserved flowers84
9SophieRose bouquet105
10Oak PharmacyOrchid pot130
11Total740
outside =SUM(Table1[Amount]) → 740
1/4Total row says 740 — and =SUM(Table1[Amount]) outside the table says 740 too
Filter the table and only the Total Row changes — SUBTOTAL vs. SUM

The 109 in the Total Row's SUBTOTAL means 'sum, ignoring hidden rows'. So with only 'Rose bouquet' showing, it added the three visible orders: $70 + $35 + $105 = $210, and the status bar showed 3 of 9 records. SUM, on the other hand, adds hidden rows too and stayed at $740. Use the Total Row when you want the total of what you're looking at, SUM when you want the grand total. Microsoft's docs note that the arrow next to the total cell lets you switch to Average, Count and other functions.

The sorting trap — rows that come apart

Data
1CustomerItemAmount
2Brightline Co.Rose bouquet70
3SophieWreath89
4DanielTulip pot54
5Brightline Co.Orchid pot65
6MiaRose bouquet35
7Sunny KidsTulip pot108
8LeoPreserved flowers84
9SophieRose bouquet105
1/5A list with borders only — select just the Item column (C)
Sort one column and the Sort Warning box decides what happens

In the bordered range, select only the Item column (C2:C9) and click Data > Sort A to Z. Excel shows a Sort Warning asking you to Expand the selection or Continue with the current selection. Choose the second, and only the Item column is sorted. When I did that, 6 of the 8 orders ended up with a different item — Sophie's wreath order became 'Preserved flowers', yet the amount stayed $89, so nothing looks broken and no error appears.

⚠️

When the Sort Warning appears, Expand the selection is almost always right. If you sorted the wrong way, press Ctrl+Z before saving. Inside a table, sorting from a header's filter button moved whole rows — all 9 orders kept their customer, item and amount together.

Where people get stuck

  • A blank row in the middle: Ctrl+T looks for the block of filled cells around the one you clicked. With row 6 empty, the range stopped at A1:F5. Delete the blank row or fix the range in Create Table
  • Blank or duplicate headers: a blank header was renamed automatically (Column1 in English Excel) and a second 'Amount' became 'Amount2'. Table headers must be unique
  • My table has headers unchecked: Excel treats your first row as data and inserts a new header row above it (Column1, Column2), so the table grew by one row (F2:G3 → F2:G4)
  • Merged cells: making a table from a list with A2:A3 merged (by automation, no prompts) unmerged them. I didn't check what message Excel shows on screen. Merging cells is lesson 5
  • Back to a normal range: Table Design > Convert to Range. The colors stayed, the filter buttons and table name went away, and =[@Qty]*[@Price] turned into a plain-address formula like =Sheet1!$D2*Sheet1!$E2

Practice

Open the practice file (order list only) and follow these steps.

  1. 1Select A2, press Ctrl+T, keep My table has headers checked.
  2. 2In F2 type =[@Qty]*[@Price] (per Microsoft's docs, clicking D2 inside the table after typing = enters [@Qty] for you). Watch the whole column fill.
  3. 3Table Design > Total Row. If F10 shows $610, you match the answer file.
  4. 4Adding an order later: with the Total Row on, a new order typed in the row below it (row 11) did not join the table — the total stayed $610. Turn Total Row off, type the order in row 10, and turn it back on, or press Tab in the last cell of the last order row as Microsoft's docs describe.

In the answer file the table is renamed 'Orders' (Table Design > Properties > Table Name), so formulas outside it read =SUM(Orders[Amount]).

FAQ

Q. What's the shortcut to make a table in Excel?

Click one cell inside your list and press Ctrl+T. It opens the same Create Table box as Insert > Table. Check the range and My table has headers, then OK.

Q. Can't I just add borders?

For a printed sheet, yes. But in my test a bordered range didn't add a new order typed below it to the SUM (it stayed $610) and the new row got no border. For a list that keeps growing, a Ctrl+T table is easier.

Q. I filtered my data but the total didn't change.

SUM adds hidden rows too. The table's Total Row (SUBTOTAL 109) adds only visible rows — filtered to Rose bouquet, the Total Row said $210 while SUM said $740.

Q. How do I turn a table back into a normal range?

Click inside it and choose Table Design > Convert to Range. In my test the filter buttons and table name went away but the colors stayed, and structured formulas became plain cell-address formulas.

Comments 0

No comments yet. Be the first.

Only members can comment.

Comments with ads, abuse, personal information or illegal content are hidden or removed. Members who post ads, spam, or hateful content are removed from the site, and everything they wrote is deleted. Comments are shown with your nickname. Privacy Policy