Sub topic 8
Apply, copy, edit and remove rules
Assume you can select ranges, open Google Sheets menus, and recognize relative and absolute references such as A2 and $A$2. This chapter uses the data-validation sidebar and assumes you already know what a drop-down or validation criterion does.
A validation rule belongs to a cell or range. The rule defines the allowed input, the response to invalid input, and optional help text or display settings. You can apply several rules to different ranges in one sheet.
Apply a rule to a range
- Select the cells that need the rule. For example, select
C2:C100. - Open Data > Data validation.
- Select Add rule.
- Confirm or change the range in the Apply to range field.
- Choose the criterion, such as a drop-down, number, date, or custom formula.
- Choose whether invalid input is rejected or receives a warning.
- Select Done.
The range field is important. You can type a range directly, such as C2:C100, or include a sheet name, such as Orders!C2:C100. If you select multiple non-adjacent ranges, Sheets can show them as separate range references in the same rule.
You can apply another rule by selecting a different range and choosing Add rule. A rule for C2:C100 does not automatically apply to new rows below row 100.
Copy validation without copying values
Suppose C2 has the correct status drop-down, but C3:C100 does not. Copying the whole cell can also copy its value, formula, formatting, or notes. To copy only the rule:
- Select the cell or range with the correct rule.
- Copy it with Ctrl+C on Windows or Command+C on macOS.
- Select the destination range.
- Use Edit > Paste special > Data validation only.
This preserves the destination values while copying the validation rule. Check the destination afterward. Relative references in custom formulas can adjust to the destination, just as they do when formulas are copied. An absolute reference such as $A$2 remains fixed.
You can also copy a rule from one range to another by opening the source rule, checking its settings, and recreating it for the destination range. This takes longer but makes reference changes easier to inspect.
Edit an existing rule
Open Data > Data validation while the relevant range is selected. The sidebar lists rules that apply to that range. Select a rule to change its criterion, option values, invalid-input behavior, help text, or display style.
A rule may cover a larger range than the cells you first selected. Read the Apply to range field before editing. If you want the change to affect only part of that range, replace the range with a narrower one or create a separate rule.
| Task | Safer action |
|---|---|
| Change allowed options | Edit the existing rule |
| Use the same rule elsewhere | Paste **data validation only** |
| Keep values but remove restrictions | Clear data validation |
| Remove one rule | Select its trash icon |
Remove a rule
To remove validation while keeping the cell contents, select the range, open the validation sidebar, and select the trash icon for the rule. The values and formulas remain in place.
For a complete removal from a range, select the range and choose Data > Data validation, then delete each applicable rule. Do not use Delete or Clear contents unless you also intend to remove values or formulas.
A useful maintenance pattern is to keep input columns consistent. Apply one rule to the full intended input range, copy it with data validation only when extending the area, and review the range after inserting rows or pasting data.
Exercise
You need to extend a status drop-down from C2:C100 to C2:C200 without changing any existing statuses. What should you do?
Show answer
Copy a cell or range with the correct rule, select C101:C200, and use Edit > Paste special > Data validation only. Then inspect the destination rule and test one valid and one invalid value.