Table design: styles, total rows and back to a range: practice exercises
Format as Table, table styles, Total Row, Table Style Options, rename, resize, Convert to Range. 8 exercises on real-looking data, each checked as you go. This lesson is free, with no account needed.
This lesson has Excel's Format as Table gallery and Table Design tab above a practice sheet: style the table, turn on the Total Row, rename, resize and convert it as you would in Excel, and each task is checked as you go.
Open the Table design: styles, total rows and back to a range lesson
How it works
An Excel table is a block of data that Excel knows is a table: it has a name, a style, filter buttons, and it grows when you type under it. The Table Design tab changes how it looks and what it shows.
You'll make a table in a style of your choice, switch banded rows and the Total Row on and off, pick Average or Count for a total, rename and resize the table, take rows out of it, and turn it back into a normal range.
Format as Table and table styles
An order list runs from A1 to D13, with headings in row 1. Click any cell in it and choose Home, Format as Table: Excel shows a gallery of table styles (Light, Medium and Dark), then the Create Table box with the range it found, =$A$1:$D$13, and My table has headers ticked. OK makes it a table, in that style, with filter buttons.
Ctrl+T does the same in one go, in Excel's usual style, Table Style Medium 2 (blue). To change the style later, click in the table and pick another on the Table Design tab, under Table Styles. Point at a style to see its name, such as Blue, Table Style Medium 9.
Windows: Home, Format as Table; then Table Design, Table Styles.
Mac: Home, Format as Table; then the Table Design tab (just Table in some versions), Table Styles.
Table Style Options
The ticks on the Table Design tab switch parts of the style on and off:
- Header Row: the headings. Total Row: a row of totals under the table.
- Banded Rows: every other row shaded, which makes long rows easier to follow. Banded Columns does the same down the columns.
- First Column and Last Column: those columns in bold, to stand out.
- Filter Button: the ▾ on each heading.
An exam task may describe one without naming it: “format the first column differently” means First Column; “remove the row banding” means untick Banded Rows.
The Total Row
Tick Total Row and Excel adds a row under the table, with Total at the left and, under the last column, =SUBTOTAL(109,[Amount (£)]): the sum of that column. If the list is filtered, the total only counts the rows you can see.
Click any cell of the Total Row and a ▾ appears: None, Average, Count, Count Numbers, Max, Min, Sum, StdDev, Var. Average writes SUBTOTAL(101, …), Max SUBTOTAL(104, …), and so on. Alt+↓ opens the list from the keyboard.
Windows: Table Design, tick Total Row.
Mac: Table Design (or Table), tick Total Row.
Name, resize and convert
Excel calls the first table Table1. Give it a name that says what it is: click in the table and type in the Table Name box at the left of the Table Design tab, such as Orders. Formulas that use it change too: =SUM(Table1[Amount (£)]) becomes =SUM(Orders[Amount (£)]). A table name follows the same rules as a named range: no spaces.
Resize Table changes which cells the table covers, such as rows pasted under it. The headings must stay in the same row.
Convert to Range turns the table back into ordinary cells. The colours stay, the filter buttons go, and formulas like =SUM(Orders[Amount (£)]) become cell addresses such as =SUM($D$2:$D$13).
Adding and taking away rows and columns
Type in the row just under a table and that row joins it; type a heading just to the right and that column joins it.
To take a row out, click any cell in it, then Home, Delete ▾, Delete Table Rows. Only the table's own cells move up: a list beside the table stays as it is. Deleting the whole row (its number on the left) would take the list's row too.
Insert ▾ has Insert Table Rows Above and Insert Table Columns to the Left. Right-click a cell in the table for the same, under Insert and Delete.
What you'll practise
- Make this order list a table in the style Table Style Medium 9. Click in the data, then Home, Format as Table, and pick Medium 9 (point at a style to see its name). Check the range is =$A$1:$D$12 and My table has headers is ticked, then OK.
- This table has Excel's usual style, Medium 2. Change it to Table Style Light 9, then turn off Banded Rows so every row is plain. Both are on the Table Design tab, which shows when the active cell is in the table.
- Excel called this table Table1, which says nothing about it. Rename it Orders: click in the table, type in the Table Name box on the Table Design tab, and press Enter. Watch the formula in F2 change to use the new name.
- Turn on the table's Total Row (Table Design tab). Excel adds a Sum under the last column. Change that total to the average amount: click the total, open its ▾ list (or press Alt+↓) and pick Average.
- Order INV-1241 (row 4) was cancelled. Take its row out of the table, without touching the managers' list in F:G: click a cell of that order, then Home, Delete ▾, Delete Table Rows.
- The last 3 orders (rows 12 to 14) were pasted in after the table was made, so they aren't part of it. Resize the table to take them in: Table Design, Resize Table, and make the range =$A$1:$D$14.
- Convert the table to a normal range. Keep its formatting.
- Apply the Table Style Light 14 style to the table. Format the first column of the table differently from the other columns.
Guide with worked examples: Excel tables: how to make one, and why it helps