Menu

Understanding Spreadsheet Structure

Lesson 1: Understanding Spreadsheet Structure

What is a clean table?

A clean (or "tidy") table follows three rules:

  1. One header row – each column has a single, clear name
  2. One record per row – each row is one order, customer, or event
  3. One variable per column – each column holds one type of information

Avoid:

  • Merged cells
  • Blank separator rows or columns
  • Totals or subtotals inserted in the middle of raw data
  • Multiple header rows

These make sorting, filtering, and analysis harder or impossible.

Example

OrderID

Date

Region

Product

Quantity

UnitPrice

Revenue

10012026-07-01SouthNotebook3120360
10022026-07-01NorthPen1020200
10032026-07-02SouthBackpack11,5001,500

Each row represents one order line, not a mix of headings, subtotals, and records.

Messy layout

Clean layout

Region shown once as a merged heading above its ordersRegion repeated on every row
"Total" row after every regionTotals calculated separately (pivot table or summary sheet)
Columns named "Jan", "Feb", "Mar"One "Month" column and one "Value" column

How it works

  • Separate layers: keep raw data, calculations, and presentation on different sheets.
  • Consistent formats: use one date format (e.g., YYYY-MM-DD) and consistent category names.
  • Unique identifiers: give each record an ID where appropriate.
  • Formal tables: convert ranges into tables (in Excel: Insert → Table or Ctrl + T). Tables expand automatically and allow structured references like =SUM(Sales[Revenue]).

Common mistakes

Mistake

Problem it causes

Multiple values in one cell ("Red, Blue")Can't filter or count accurately
Colour as the only indicator of meaningFormulas can't read colour; meaning gets lost
Mixed units in one column (kg and g)Calculations become wrong
Numbers stored as textSUM and AVERAGE ignore them
Extra spaces in text ("South ")Treated as a different category

Key takeaways

  • A consistent layout makes filtering, formulas, pivot tables, and later migration into a database much easier.
  • Clean structure first, analysis second.

Try it: Create a table of ten imaginary orders with one row per order and clear column headings.


Data Analytics Tutorial



Learn via Video Course

Data Analysis and Processing with Python using Pandas - Data Science Course Logo

Data Analysis and Processing with Python using Pandas - Data Science Course

5 hrs



Get in Touch For Details