Cleaning & transforming data

Validation & data quality

Schema checks before import, dropdown rules in the sheet, and flagging bad cells.

A validation pass over imported rows: a text value in a numeric column and a date in the future are flagged in red before the data reaches the report.A validation pass over imported rows: a text value in a numeric column and a date in the future are flagged in red before the data reaches the report.check at the door, before the numbers spreadABC1IDQtyShip date210142026-03-023102four2026-03-04410322031-01-01validate2 errorsrow 3: Qty not a numberrow 4: date in future

Start with the full guides

The long-form treatment of validation & data quality, with the reasoning the shorter pages assume.

Step-by-step how-tos

One task each, with code you can copy, run and adapt.

When it breaks

The errors this topic produces, with the cause explained rather than just the fix.

Follow it through a track

Prefer an ordered route? These tracks cover validation & data quality along the way, in the order that builds on itself.

Related topics

Subjects that keep turning up on the same pages as this one, most overlap first.

Validation & data quality is part of Cleaning & transforming data.