Garbage in, garbage out — the best time to fix bad data is to prevent it. Data Validation restricts what can be typed into a cell, and named ranges give meaningful names to cells so your formulas read like English.
Why validate?
When other people (or future-you) fill in a sheet, validation stops typos and inconsistent entries — "Data" vs "data" vs "Data Analytics" — that would otherwise break every lookup and summary downstream.
Dropdown lists
The most useful validation: a dropdown that forces users to pick from an allowed list. Data → Data Validation → List, then point it at a range or type the options:
Data Validation → Allow: List → Source: =Programmes[Name](or a typed list: Data, Full Stack, DevOps )Now that cell only accepts one of those values, via a dropdown.
Validation rules
| Allow | Restricts to |
|---|---|
| Whole number | Integers in a range (e.g. 16–99) |
| Decimal | Numbers in a range |
| List | A fixed set of values (dropdown) |
| Date | Dates in a range |
| Text length | A max/min number of characters |
| Custom | Any formula that returns TRUE |
Named ranges
A named range gives a cell or range a memorable name. Formulas then reference the name instead of an address — clearer and easier to maintain:
Name cell E1 "TaxRate" (Formulas → Define Name, or the Name Box).Instead of: =B2 * $E$1Write: =B2 * TaxRate (self-documenting, no $ needed)
Practice
Add a dropdown for "Programme" pointing at a list, a whole-number validation (16–99) for an age cell with an input message, and a custom rule. Name a tax-rate cell TaxRate and rewrite a formula to use the name.
Key takeaways
- 01Data Validation prevents bad input — the cheapest place to fix data is before it's entered.
- 02List validation creates a dropdown that forces users to pick allowed values.
- 03Rules cover whole number, decimal, date, text length, list and custom formulas.
- 04Add Input Messages and clear Error Alerts to guide users.
- 05Named ranges give cells memorable names so formulas read like English (=B2*TaxRate).
