A data validation error in Excel means an entry does not meet a rule set for that cell, such as a permitted number range, date, or list of choices. To fix it, select the cell and check Data > Data Validation: either enter an allowed value or revise the rule to match what the worksheet should accept.
What a Data Validation Error Means
Data validation is a set of rules attached to cells. It can limit what people enter, help standardize records, and reduce mistakes in shared forms or workbooks. For example, a quantity field might accept whole numbers from 1 through 100, while a department field might offer a dropdown list of approved names.
When an entry conflicts with a rule, Excel may show an alert. The wording depends on the rule and the workbook: it might say the value does not match the restrictions, or display a message written by the workbook’s author. The alert is not necessarily evidence that Excel is broken. It usually means the cell is behaving as configured, although the configuration may be outdated or too restrictive.
Data validation is different from a formula error such as #VALUE! or #N/A. A validation alert concerns whether a cell accepts an entry; a formula error concerns a calculation or reference. Also, validation generally does not inspect and repair values already in a worksheet. A workbook can contain old, invalid entries even if a rule is now in place.
How Excel Data Validation Works
In Excel for Microsoft 365 on Windows, select a cell or range and open Data > Data Validation. On the Settings tab, choose an Allow type, then define the permitted value or condition. Depending on the type, Excel can validate whole numbers, decimals, dates, times, text length, list entries, or a custom formula. The Input Message tab can show guidance when someone selects a cell.
The Error Alert tab controls what happens after an invalid entry is attempted. Stop blocks the entry and asks the user to correct it. Warning asks whether the user wants to continue despite the rule. Information displays a notice but allows the entry to be kept. An alert title and message can be customized, so two workbooks may show different wording for similar rules.
For a list rule, the Source can be a range, a named range, or a list of entries typed directly into the dialog. Selecting In-cell dropdown displays a choice arrow in the validated cell. A dropdown is a convenience, not proof that every value in a workbook was chosen from the list: existing values and some ways of inserting data can evade the alert.
Common Reasons an Entry Is Rejected
The most useful first question is whether the entered value truly violates the intended rule or whether the rule no longer fits the task. Common examples include:
- A number is outside the allowed range. A rule permitting 1 to 100 rejects 0, 101, and negative numbers. A decimal rule may also reject a value that a whole-number rule would accept.
- A date or time is outside the permitted interval. A date may be earlier than the start date or later than the deadline. Date interpretation can also be affected by regional settings and the way a value was entered.
- A list entry does not match an allowed item. The source list may have changed, may not include a new department, or may contain a different spelling than the entered value. Extra spaces can also make text appear different.
- The cell has an unexpected rule. A copied cell can bring its validation settings with it, or a rule may have been applied to a larger range than intended.
- The entry is the wrong data type or length. A code stored as text may not behave like a number, and a text-length limit can reject a longer note even when the words look reasonable.
- A custom formula evaluates as FALSE. A formula-based rule may use a relative reference or assumption that does not suit the cell being edited.
How to Diagnose the Rule
Start with the exact cell that produced the alert. Select it, then choose Data > Data Validation. Read the Settings tab rather than guessing from the error message: note the Allow option, comparison operator, minimum and maximum values, and any list Source. If the command is unavailable or the settings cannot be changed, the worksheet may be protected; the workbook owner may need to unlock it or provide the password.
For a list rule, inspect the source range and confirm that the intended option appears there. If the source refers to a named range, look for that name in Formulas > Name Manager. Check whether the source includes blank cells, excludes newly added rows, or points to the wrong sheet or range. A dropdown that looks empty can be caused by an empty or incorrect source, not simply by a display problem.
To locate entries that already conflict with a rule, use the Data Validation menu on the Data tab and choose Circle Invalid Data, if that command is available in the current ribbon layout. Excel marks cells it identifies as invalid; use Clear Validation Circles from the same menu to remove the markings. This is useful when auditing imported or older data, but review the cells manually before changing them because an entry may be valid under the real business requirements even if the current rule is wrong.
Ways to Fix the Error
Choose a fix based on the intended policy, not simply on how to make the message disappear. If the current rule is correct, change the entry to a valid value. If the allowed choices or limits have changed, edit the validation settings. For example, add a newly approved category to the list source rather than asking users to enter it inconsistently.
- Select the affected cell or the full range that should share the rule.
- Open Data > Data Validation and review the Settings tab.
- Correct the source, range, or rule. For a list, confirm the source includes every approved item; for a numeric limit, verify the operator and both boundary values.
- Review the Error Alert tab. Choose the appropriate alert style and update its message so it explains what the user should enter.
- Select OK, then try a valid example and an invalid example to confirm the behavior.
If the validation rule is no longer needed, select the relevant cells, open Data > Data Validation, and choose Clear All in the dialog. This removes validation settings from the selected cells; it does not automatically remove the cell contents. Be cautious when selecting a range, because clearing the wrong cells can remove useful controls. In Excel for Mac, Data > Data Validation opens the corresponding settings, though the ribbon layout can differ from Windows.
Custom Formula Rules and Their Risks
A custom validation rule is useful when built-in options cannot express the condition. It must evaluate to TRUE for an entry to be accepted. When applying a rule to a range, write references as if the formula applies to the range’s upper-left cell; relative references then adjust for the other cells. An incorrect reference can make an otherwise sensible rule reject unexpected entries.
For a rule applied to A2:A100, where each cell should contain a whole-number value from 1 through 100, use this validation formula:
=AND(A2>=1,A2<=100)
For A2, the value 42 makes both comparisons TRUE, so AND returns TRUE and the entry passes. The value 120 makes the second comparison FALSE, so the rule rejects it. If the range begins in another row or column, update the reference to the range’s upper-left cell. Test representative boundary values, not just a typical value, before sharing the workbook.
Why Pasting May Not Trigger an Alert
A common misconception is that data validation makes a cell impossible to fill with an invalid value. It is a helpful input control, but it is not a complete security or auditing system. Copying and pasting, filling cells, formulas, or programmatic changes can introduce values without showing the same interactive alert that appears during ordinary typing. A formula can also calculate a result that conflicts with the cell’s validation rule.
That is why a clean-looking dropdown or a Stop alert is not a guarantee that every value in a large workbook is valid. For important datasets, check the contents after imports or bulk edits. You can use Circle Invalid Data where appropriate, compare values against a trusted source list, or build a separate review process. Protecting a worksheet can reduce accidental changes to rules, but protection is not a substitute for checking data quality.
How to Prevent Repeat Errors
Good validation starts with clear rules. Decide what values are genuinely acceptable, whether blank cells are allowed, and what should happen when a person enters something else. Keep list sources in a clearly maintained range rather than scattering different versions of a list across a workbook. If categories change regularly, assign responsibility for updating that source and test the dropdown after changes.
Make alerts useful: say what the cell expects and, where possible, give an example. A message such as Enter a whole number from 1 to 100 is more actionable than a generic warning. Apply one rule to the intended range, then test the first and last cells because copied formulas and relative references can behave differently across a range. Before distributing a revised workbook, test valid entries, invalid entries, blanks, and pasted data.
Frequently Asked Questions
Can I ignore a data validation error?
It depends on the alert style and the workbook’s purpose. A Warning or Information alert may allow you to continue, while Stop blocks ordinary entry through that prompt. Do not override a rule unless you know the value is acceptable or the rule is being updated appropriately.
Why does Excel reject a value that looks valid?
The cell may have a different rule than expected, or the value may be stored in a different form, such as text instead of a number. Check the Settings tab, the exact list source, spaces in text, date interpretation, and any custom formula references.
Does data validation find existing invalid values?
Not automatically. A rule primarily controls new entries made through ordinary editing; older values can remain after rules are added or changed. Use Circle Invalid Data when available and inspect imported or pasted data separately.
How do I remove a validation error rule?
Select the affected cells, choose Data > Data Validation, and select Clear All in the dialog. Confirm the selection first: this removes the validation settings from those cells but leaves their contents in place.
Why is the dropdown arrow missing?
Check that the cell has an Allow: List rule and that In-cell dropdown is selected. Then check that the source contains valid items. The arrow may not appear when the cell is not selected, and an empty or incorrect source can make the list appear unusable.
Related
- Multi-Level Dropdown List in Excel: How to Create One
- Excel Insert Page Breaks: Steps, Options, and Fixes
- Excel Box and Whisker Plot: How to Create One
Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.
More in Errors & fixes
- Excel Not Working Correctly? Causes and Reliable FixesIf Excel is not working correctly, first save a copy of the workbook, note exactly what is failing,…
- Average Formula Not Working in Excel? Fix ItIf the values are in B2:B5, enter =AVERAGE(B2:B5); with 10, 20, 30, and 40 in those cells, the…
- Excel SUMIF Quotation Marks Not Working? Fix the CriteriaIf Excel SUMIF quotation marks are not working, first check that text criteria use straight double quotation marks…
- Fit All Columns on One Page in Excel Not Working?If Fit All Columns on One Page is not working in Excel, check the active sheet’s scaling, print…
- Excel XLOOKUP Spill Error: Causes, Fixes, and ExamplesAn Excel XLOOKUP spill error usually means the formula is returning multiple results but Excel cannot place them…
- XLOOKUP Excel Not Working? Fix Common Errors and CausesIf XLOOKUP is not working, first check that your Excel version supports it, then confirm the lookup and…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.