WeCodeAcademy

Excel Tables

Turn a block of data into an Excel Table (Insert > Table, or Ctrl+T) and Excel adds filter buttons, banded rows, and formulas that grow automatically when you add a row. The rules for a clean table:

  1. One header row with a unique name for each column.
  2. One record per row, one fact per column.
  3. No blank rows or columns inside the data.
  4. No totals mixed into the data; put them below or beside.

Tidy data like this works with sorting, filtering, PivotTables and every function in this course. The example is tidy; the second block breaks the rules and is awkward to summarise.

In Excel: click a cell in your data and press Ctrl+T. Check that the range is right and that "My table has headers" is ticked, then press OK.

The Create Table dialog showing the range A1 to E11

The data gets banded rows and filter buttons, and a Table Design tab appears with the table options.

The data after it has been turned into a table

The Table Design tab of the Ribbon

Exampleexcel
Open in editor »
Quick check

Which belongs in a tidy table?

Your turn: write the code

Add a Value column: E2 to E4 should be Units times Price. Then E6 the total.

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.