Sub topic 4
Choose Between Rejecting Input and Showing a Warning
This chapter assumes that you can select cells and ranges in Google Sheets, enter values and basic formulas, and use references such as A2 and $A$2. You should also know how to refer to a range on another sheet.
Data validation is a rule that checks whether a cell contains an allowed value. For example, a status rule might allow only Not started, In progress, or Done. When a user enters another value, Google Sheets can either block it or allow it with a warning.
Open the invalid-input setting
- Select the cells that have, or should have, a validation rule.
- Open Data > Data validation.
- Select an existing rule, or create one.
- Expand Advanced options.
- Find If the data is invalid.
- Choose Reject input or Show warning.
- Select Done.
The setting belongs to the validation rule. If different ranges need different behavior, give each range its own rule.
Reject input: protect the data shape
Reject input prevents a value that does not meet the rule from being entered through normal editing. For a drop-down list, the user must choose one of the listed items. For a date rule, the date must satisfy the specified condition.
Use rejection when every value in the range must be usable by formulas, filters, or reports. Typical examples include:
- A status column used to group work.
- A date column used in date calculations.
- A category column used in summaries.
- An identifier column that must follow a format.
When Sheets rejects an entry, it displays an error message and leaves the invalid value out of the cell. The user can correct the value or cancel the edit.
Rejection improves consistency, but it can interrupt a workflow. Users may need to enter a temporary value while collecting incomplete information. In that case, include an allowed value such as Unknown or Pending, rather than weakening the rule without a plan.
Show warning: allow exceptions
Show warning accepts a value that fails the rule but marks the cell as invalid. The cell displays a warning indicator, and users can inspect the rule or warning message.
Use warnings when the rule is guidance rather than an absolute boundary. Examples include:
- A planning sheet where a date may occasionally fall outside the preferred period.
- A review queue where a category is usually selected from a list, but a new category may appear before the list is updated.
- Imported or manually entered data that needs review before reporting.
Warnings preserve the entered value, so formulas can still read it. However, the value may not match the assumptions used by other formulas. A report that expects only three status names might put an unexpected fourth status in a separate group or omit it from a condition.
A warning is therefore a review signal, not a correction. Decide who will find and fix warning-marked cells.
| Setting | Invalid value | Best use |
|---|---|---|
| Reject input | Blocked | Required, consistent data |
| Show warning | Kept and marked | Flexible data that needs review |
Choose deliberately
Consider these questions before selecting the setting:
- Will a formula produce a wrong result if the value is outside the allowed set?
- Is there a legitimate exception that the rule cannot describe?
- Who will review warning-marked cells?
- Should the rule include an explicit option such as
OtherorNot provided? - Will users paste or import data from another source?
For operational records, rejection is usually safer. For exploratory or intake sheets, warnings can reduce friction. You can also use rejection on a final reporting sheet and warnings on an earlier collection sheet.
Changing the setting affects future edits. It does not automatically repair values that were already present. Review existing cells when you tighten a rule, especially if the range contains pasted or imported data.
Exercise
A project tracker has a status drop-down used by a summary formula. Users must not enter any other status. Which invalid-input setting should you choose, and why?
Show answer
Choose Reject input. It blocks values outside the allowed statuses, so the summary formula can rely on the status column having a consistent set of values.