Skills / Excel and Google Sheets / Cells, rows and clean tables

Excel and Google Sheets, lesson 1 of 9

Cells, rows and clean tables

Most spreadsheet problems start with how the data was laid out, not with the formulas. Set up a clean table and sorting, filtering, formulas and charts all just work.

The rules of a clean table:

  • One row per record: one sale, one customer, one task
  • One column per fact: Date, Customer, Product, Quantity, Price
  • One header row at the top with short, clear names, and nothing above it but a title if you must
  • No blank rows or columns inside the data; blanks break sorting and filtering
  • One kind of value per column: dates only in the Date column, numbers only in Quantity
  • No merged cells inside the table; they look tidy but break sorting, filtering and copying

Store values, not decoration. Write 12 in the Quantity column, not "12 boxes". Put the unit in the header instead: "Quantity (boxes)". Text mixed with numbers cannot be added up.

Dates must be real dates, entered in a format the spreadsheet recognises, so it can sort them and do date maths. If dates line up on the left of the cell by default, they are probably being treated as text.

Turn it into a table. In Excel, select the data and press Ctrl+T (Insert > Table). You get filter buttons, banded rows, and formulas that extend automatically as rows are added. In Google Sheets, use Format > Convert to table, or at least freeze the header row (View > Freeze).

Keep raw data separate from reports and calculations: one sheet for the data, others for summaries.

Try it: Take any small list (your expenses, books you have read, a team's tasks) and build it as a clean table following every rule above, then convert it to a table and sort it by date.

Check yourself

1. How many records should one row hold?

2. Why avoid writing "12 boxes" in a Quantity cell?

3. What is the problem with merged cells inside a data table?