How do you fix the value doesnt match the Data Validation restrictions defined for this cell?

Do you like to use error checking in Excel, so that problem cells are flagged, or do you turn that feature off? There are options for data validation error messages too – do you use those?

Data Validation Error Messages

If you add a drop down list on a worksheet, or any other type of data validation, you can choose which type of Error Alert messages should be shown – Stop, Warning or Information.

The default setting is Stop, and that prevents you from entering invalid data. An error message appears, with buttons for Retry, Cancel and Help.

“This value doesn’t match the data validation restrictions defined for this cell.”

How do you fix the value doesnt match the Data Validation restrictions defined for this cell?

Respond to the Error Message

If you see that error message, what happens if you click one of the buttons?

  • Help – Takes you to a data validation page on the Microsoft website, where there are instructions for setting up a data validation cell. It won’t give you any specific details on why the value entered wasn’t valid.
  • Cancel – Clears the cell, so you can type a new value, or select from the drop down list, if there is one.
  • Retry – Highlights the value that you typed in the cell, so you can type a new value. You will have to clear the cell if you want to use the drop down arrow.

Customized Error Messages

Instead of leaving the default settings for data validation errors, you can go to the Error Alert tab in the data validation dialog box, and customize them.

Choose one of the Styles, and enter a Title and Error message that will give people details on what went wrong.

How do you fix the value doesnt match the Data Validation restrictions defined for this cell?

In this example, I selected Warning style, and entered a customized message. When I enter an item that isn’t in the list, the customized message appears, with a Warning icon, and different buttons.

How do you fix the value doesnt match the Data Validation restrictions defined for this cell?

Turn Off Error Messages

In some cases, you might want to turn off the data validation error alerts completely, like I do when allowing multiple selections from a drop down list.

On the Error Alert tab, remove the check mark from “Show error alert after invalid data is entered”

How do you fix the value doesnt match the Data Validation restrictions defined for this cell?

Data Validation Error Messages in Tables

If you’re using data validation in a named Excel table, invalid data might be flagged by Excel’s Error Checking Rules, even if you turned off error alerts, or set the Style to Warning or Information.

In the screen shot below, there is a warning on cell C2, because two items are in the cell.

How do you fix the value doesnt match the Data Validation restrictions defined for this cell?

If you copied cell C2 to a different part of the worksheet, outside of a table, the error warning would disappear – it only affects tables.

Turn Off Table Data Setting

If you know that there isn’t really a problem with the cell’s data, you can simply ignore the error warnings. Or, if there are just a few messages, you can set the error warning in each cell manually, to Ignore Error.

If you want to turn off all of the data validation warnings in tables, you can follow the steps below, to change one of the Excel options.

  • Click the arrow on the Error alert, and click Error Checking Options
  • In the Options window, in the Formulas category, scroll down to the Error Checking Rules section.
  • Remove the check mark for “Data entered in a table is invalid”.
  • Click OK.

Keep in mind though, that Excel will stop flagging ALL data errors in your tables, in ALL workbooks that you open. You can read the details on my website.

How do you fix the value doesnt match the Data Validation restrictions defined for this cell?

Video: Data Validation Messages

To see the steps for creating a data validation input message or error message, watch this short video tutorial.

_______________

  1. 02-24-2022, 03:50 PM #1

    How do you fix the value doesnt match the Data Validation restrictions defined for this cell?

    Forum Contributor

    How do you fix the value doesnt match the Data Validation restrictions defined for this cell?


    IF OR Formula, Value doesn't match the data validation restriction defined for this cell

    Hello,

    I am attempting to use the following formula but I am getting the error "Value doesn't match the data validation restriction defined for this cell"
    =IF(OR(C3="",H3="Yes"),0,F3*G3)

    Does anyone know the cause?

    Thanks for any assistance.

    Nick


  2. 02-24-2022, 03:53 PM #2

    Re: IF OR Formula, Value doesn't match the data validation restriction defined for this ce

    What value are you trying to enter into the cell? What cell is it in? What is in C3, H3, F3, and G3?

    Jeff
    | | |�| |�| |�| |�| | |:| | |�| |�|
    Read the rules
    Use code tags to [code]enclose your code![/code]


  3. 02-24-2022, 03:56 PM #3

    Re: IF OR Formula, Value doesn't match the data validation restriction defined for this ce

    Hi Nick,

    It sounds as though the cell you're trying to amend contains data validation restrictions. Select the cell(s) in question and go to Data -> Data Validation and see what restrictions are in place.

    Regards,

    Snook


  4. 02-24-2022, 03:57 PM #4

    Re: IF OR Formula, Value doesn't match the data validation restriction defined for this ce

    Well, I guess that would depend on what you are trying to get past the DV.

    Fast answers need visual help. Please read the yellow banner at the top of this page on how to attach a file.


  5. 02-24-2022, 04:02 PM #5

    How do you fix the value doesnt match the Data Validation restrictions defined for this cell?

    Forum Contributor

    How do you fix the value doesnt match the Data Validation restrictions defined for this cell?


    Re: IF OR Formula, Value doesn't match the data validation restriction defined for this ce

    Thank you The_Snook, a Data Validation copied over from an adjacent cell that I didn't notice.

    That fixed it.


  6. 02-24-2022, 04:08 PM #6

    Re: IF OR Formula, Value doesn't match the data validation restriction defined for this ce

    You're welcome mate, glad you've got it sorted.

    Snook


How do you match the Data Validation restrictions defined for this cell?

If you have data restrictions in place and a user enters invalid data into a cell, you can display a message that explains the error. Select the cells where you want to display your error message. On the Data tab, click Data Validation > Data Validation.

How do I fix Data Validation in Excel?

Fix: Turn Error Alert On Select the cell that contains a data validation list. Choose Data|Validation. On the Error Alert tab, add a check mark to the Show error alert after invalid data is entered box. Click OK.

How do I override Data Validation restrictions in Excel?

Select the cells with the drop-down list. Click Data >Data Validation. On the Settings tab, click Clear All. Click OK.