Sub topic 2
Choose between rejecting input and showing a warning
This chapter assumes you can select ranges, enter values, open the Data menu, and read cell references such as $A$2. Validation rules often refer to other cells, so those skills matter here.
Reject input or show a warning
Each validation rule has an On invalid data setting. Reject input blocks the entry, keeps the cell's previous value, and shows an error. Show warning saves the entry but flags the cell. Use rejection when a wrong value would break a formula. Use a warning when an unusual value is possible but should be checked.
Add help text and set the appearance
The Help text field shows a tip when someone selects a validated cell. Write it as an instruction, such as "Pick a status from the list." For drop-downs, the Appearance setting controls whether each choice appears as a colored chip or as plain text. Chips are easier to scan on screen. Plain text suits sheets that are printed.
Validate numbers, text and dates
Set Criteria to a built-in rule:
| Data type | Example criteria | Accepts |
|---|---|---|
| Number | Between 1 and 100 | Numbers from 1 to 100 |
| Text | Is valid email | Addresses such as [email protected] |
| Date | Is after 01/01/2025 | Dates later than that day |
Number criteria also include greater than, less than, and equal to. Text criteria also include contains and is valid URL.
Use checkboxes as a validated input
Select a range and choose Insert, then Checkbox. Sheets places a checkbox in each cell and sets the validation for you. Each cell then holds TRUE or FALSE. To use other values, open Data validation and change the checked and unchecked values.
Exercise
A Status column should accept only "Done" or "Open", but a reviewer must still be able to save an unusual value. Which On invalid data setting should you choose, and why?
Show answer
Show warning. It saves the entry and flags the cell, so the reviewer can keep the value. Reject input would block the entry completely.