This behavior occurs when any one of the following conditions is true:
- You select a range of cells in which one of the cells has data validation restrictions. You then type an invalid data value, and press CTRL+ENTER. Excel inserts the invalid value that you typed into all the selected cells.
- You programmatically insert an invalid value into a cell in which you have applied data validation restrictions.
- You copy an invalid value from a cell and paste it into a cell in which you have applied data validation restrictions.
- You drag an invalid value from a cell to a cell in which you have applied data validation restrictions.
- You use the AutoFill feature to fill an invalid value into a cell in which you have applied data validation restrictions.
- You are using a Data Form.
NOTE: When you apply data validation restrictions on a cell, Excel only validates the data when you manually type the value in the cell. If you autofill, copy, or drag a cell without data validation restrictions, the formatting from the source cell will replace the destination cell's formatting. Therefore, the validation restrictions will be removed from the destination cell.