Set up data validation
last updated at: Jun 8, 2026
Data validation lets you control what goes into a cell. You can add a dropdown list so people pick from a fixed set of options, or write a rule that rejects a value if it falls outside a range, does not match a pattern, or fails another condition.
Open the data verification dialog
- Select the cell or cells you want to validate.
- Open the Data menu and click Data verification.
The dialog shows the current selection in the Cell range field. You can type a different range there, or click the grid icon next to it to select a range with the mouse.
Add a dropdown list
- Under Verification condition, choose drop-down list from the menu.
- In the field below, type the options separated by commas, for example
Yes,No,Maybe. To use values from existing cells instead, click the grid icon next to the field and select the range. - Tick Allow multiple selection if you want people to be able to pick more than one option from the list.
- Click OK.
When someone clicks a cell with a dropdown, a small arrow button appears at the right edge. Clicking it opens the list of options.
Add a checkbox
- Under Verification condition, choose Checkbox.
- Optionally, enter the values that represent the Selected (checked) and Not selected (unchecked) states.
- Click OK.
The cell displays a checkbox that toggles between the two values when clicked.
Add a number rule
- Under Verification condition, choose Number, Number-integer, or Number-decimal, depending on what you need.
- Choose a condition from the second menu: Between, Not between, Equal, Not equal to, More than the, Less than, Greater or equal to, or Less than or equal to.
- Enter the value or values the rule compares against.
- Click OK.
Text-length follows the same steps and conditions, but checks the number of characters in the cell rather than a numeric value.
Add a text rule
- Under Verification condition, choose Text-content.
- Choose a condition: Include, Exclude, or Equal.
- Type the text the rule checks against.
- Click OK.
Add a date rule
- Under Verification condition, choose Date.
- Choose a condition: Between, Not between, Equal, Not equal to, Earlier than, No earlier than, Later than, or No later than.
- Enter the date or dates the rule compares against.
- Click OK.
Options that apply to all rules
Two checkboxes at the bottom of the dialog apply to every validation type:
- Prohibit input when input data is invalid: blocks the entry and shows a failure notice if someone types a value that fails the rule.
- Show prompt when the cell is selected: displays a hint message when the cell receives focus. When this is ticked, a text field appears where you can write the hint.
Remove a rule
- Select the cells whose rule you want to remove.
- Open Data → Data verification.
- Click Delete verification.
The rule is removed from those cells.
Validation rules travel with the cell when you copy and paste it.