Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fix: This Value Does Not Match the Data Validation

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You see "This value does not match the data validation" when a cell in Excel or Google Sheets is set to accept only certain entries and what you typed (or pasted) falls outside those rules. The fix is to either enter a value that fits the rule, or open the data validation settings and widen or remove the restriction. It is not an error in your spreadsheet; it is the sheet refusing input that breaks a rule someone set.

What You'll Need

  • Excel (Microsoft 365, Excel 2021, 2019, or 2016) or Google Sheets, on desktop or mobile
  • Edit access to the sheet, so you can change the validation rule
  • A clear idea of what the cell is supposed to accept (a list, a number range, a date, a text length)

Step-by-Step

  1. Identify which cell is complaining. Click the cell with the error. In Excel, a small warning triangle or a pop-up message usually appears next to it. In Google Sheets, the cell border turns red and a tooltip shows the rule. Note the exact cell reference (for example, C7) so you do not chase the wrong cell.
  2. Read the rule. Hover over the warning in Excel or click the cell in Sheets. The message tells you what is allowed, such as "Value must be a whole number between 1 and 100" or "Please select from the list." If the message is custom text like "Enter a valid department," you will need to check the rule itself in the next steps.
  3. Try a valid value first. If the rule is clear, type an entry that fits it. For a list rule, click the drop-down arrow in the cell (Excel) or the small arrow that appears when the cell is selected (Sheets) and pick an option. For a number range, enter a number inside the range. This solves most cases without changing anything.
  4. Open the data validation settings if you need to change the rule. In Excel, select the cell, go to the Data tab, and click Data Validation (in the Data Tools group). The dialog shows the current rule under the Settings tab. In Google Sheets, select the cell, then choose Data > Data validation. Labels can differ slightly by version, device, or region, but these paths are standard in current desktop versions.
  5. Check the rule type and the allowed entries. In Excel, look at the Allow drop-down (Whole number, Decimal, List, Date, Time, Text length, Custom). In Sheets, look at the Criteria section. If it is a List rule, the source box shows the allowed items, either typed in directly or pointing to a range such as $E$2:$E$10. Confirm the value you want is actually in that list or range.
  6. Widen or correct the rule. For a number rule, adjust the Minimum and Maximum boxes. For a list rule, add the missing item to the source list or the referenced range. For a text-length rule, raise the maximum. Click OK (Excel) or Save (Sheets) to apply.
  7. Clear the invalid entry if you cannot change the rule. Select the cell and press Delete to empty it, then enter a value that fits. In Excel, you can also click the warning icon next to the cell and choose an option to clear the invalid data, though the exact wording varies by version.
  8. Fix pasted data. Pasting often triggers this message because a whole block of values lands in cells with different rules. Paste as values into an unformatted area first, or paste one column at a time, then remove validation from the destination cells if the rules no longer apply.
  9. Check for hidden or merged cells. A rule on a merged cell applies to the whole merged area, and a hidden cell can carry a rule you cannot see. Unmerge or unhide to inspect, then adjust the rule on the correct cell.
  10. Remove validation entirely if it is no longer needed. In Excel, open Data Validation and click Clear All, then OK. In Sheets, open Data > Data validation and click Remove validation. This stops the message but also removes the protection against typos, so only do it when the rule is genuinely obsolete.

Common Mistakes

  • Editing the wrong cell. The rule lives on the cell, not on the value. Changing the text in another cell will not help; you must select the cell that shows the warning.
  • Assuming the list is fixed. A list rule often points to a range elsewhere in the workbook. If that range is missing an item, the drop-down will not offer it, and typing it manually will fail.
  • Pasting over validated cells. Copying from another sheet or app brings values that were never checked against the rule. Paste into plain cells first, or clear validation before pasting.
  • Forgetting that validation is per cell, not per column. Applying a rule to one cell and expecting the whole column to follow is a common source of confusion. Select the full range before setting the rule.
  • Using a custom formula rule without testing it. A custom rule that returns FALSE for valid entries will block everything. Test with a known-good value before relying on it.
  • Confusing data validation with conditional formatting. Formatting only changes colour; validation actually blocks input. If a cell turns red but still accepts the value, the rule is formatting, not validation.

Tips

  • Keep list sources in a dedicated sheet and name the range, so the rule is easy to update later.
  • Use the Input Message tab in Excel's Data Validation dialog (or the help text option in Sheets) to tell users what is allowed before they type.
  • Apply validation to a whole column range (for example, A2:A1000) rather than single cells, so new rows inherit the rule.
  • When sharing a sheet, protect the cells that hold the rule so other editors cannot accidentally remove it.
  • Test a rule with one valid and one invalid entry before rolling it out to a team.

Troubleshooting

The message appears even though the value looks correct. Check for leading or trailing spaces, a number stored as text, or a date format the rule does not recognise. In Excel, use TRIM or convert the value to the right type. In Sheets, check Format > Number to confirm the cell is not text.

The drop-down arrow is missing. The cell may not actually have a list rule, or the rule was applied to a different cell. Re-select the cell and reopen the validation settings to confirm.

You cannot find Data Validation in the menu. In Excel, it sits on the Data tab; if the ribbon is collapsed, expand it. In Sheets, it is under the Data menu on desktop. On mobile, the option may be hidden behind an overflow menu, and some validation editing is limited compared with desktop.

The rule keeps coming back after you clear it. The cell may be part of a table or a shared template that reapplies validation, or another editor is restoring it. Check with the sheet owner and confirm you are editing the current version.

Clearing the rule did not fix the entry. The value itself may still be invalid for a downstream formula or a linked sheet. Check for formulas that reference the cell and expect a specific type.

If that did not work, make a copy of the sheet, remove all validation from the copy, and test the entry there. If it works, the original rule is the cause; compare the two rule sets side by side and rebuild the rule on the original.

Frequently Asked Questions

What does "This value does not match the data validation" mean?

It means the entry you typed or pasted does not fit the rule set for that cell, such as a list, a number range, a date range, or a text length limit. The sheet is blocking the entry until it conforms.

How do I find which cell has the rule?

Click the cell showing the warning. In Excel, a warning icon appears next to it; in Google Sheets, the border turns red. The cell reference in the Name Box or formula bar confirms the location.

Can I turn off data validation for one cell only?

Yes. Select just that cell, open Data Validation, and clear the rule for that cell. Other cells keep their rules unless you select them too.

Why does the error appear when I paste data?

Pasted values were not checked against the destination rule. Paste into unvalidated cells first, or clear validation on the destination range before pasting.

Does data validation work the same in Excel and Google Sheets?

The idea is the same, but the menus and options differ. Excel uses Data > Data Validation; Sheets uses Data > Data validation. Some rule types and custom formulas are not identical between the two.

Will removing validation delete my data?

No. Removing the rule only stops the restriction. Existing values stay in place, but they are no longer checked, so typos can slip in afterwards.