Microsoft Excel · Module 1 · Lesson 81 min read

Data validation: controlling what can be typed

Data Validation restricts what someone can type into a cell — useful for forms, shared spreadsheets, or preventing typos.

Creating a dropdown list

  1. Select the cell(s) where you want a dropdown
  2. Go to Data → Data Validation
  3. Under "Allow," choose List
  4. In "Source," type your options separated by commas (e.g. Yes,No,Maybe) or select a range of cells containing the options
  5. Click OK — now that cell shows a small dropdown arrow with only those choices selectable

Restricting to numbers within a range

  1. Data → Data Validation
  2. Under "Allow," choose Whole number or Decimal
  3. Set a minimum and maximum (e.g. between 0 and 100 for a percentage score)

Now, typing 150 into that cell (when the max is 100) shows a warning and blocks the entry.

Adding an input message and error alert

  • Input Message tab — shows a helpful tooltip when the cell is selected (e.g. "Enter a score between 0 and 100")
  • Error Alert tab — customize the warning message shown when someone enters an invalid value

Why this matters

Data validation is what turns a spreadsheet from "a grid anyone can type anything into" into something closer to a proper form — reducing mistakes when multiple people fill it in.