Microsoft KB Archive/159403

= XL97: Data Validation Is Only Accurate with Manual Entry =

Article ID: 159403

Article Last Modified on 10/22/2000

-

APPLIES TO


 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q159403





SYMPTOMS
In Microsoft Excel 97, cells to which you apply data validation restrictions (using the Validation command on the Data menu) may accept invalid values.



CAUSE
This behavior occurs when any 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. -or-


 * You programmatically insert an invalid value into a cell in which you have applied data validation restrictions. -or-


 * You copy an invalid value from a cell and paste it into a cell in which you have applied data validation restrictions. -or-


 * You drag an invalid value from a cell to a cell in which you have applied data validation restrictions. -or-


 * You use the AutoFill feature to fill an invalid value into a cell in which you have applied data validation restrictions. -or-


 * 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 an invalid value to a cell with data validation restrictions, the data validation restrictions are removed from the cell.



STATUS
Microsoft has confirmed that this is a problem in Microsoft Excel 97.



MORE INFORMATION
The ability to specify what data is valid for either an individual cell or a range of cells is a new feature in Microsoft Excel 97. This feature allows you to do the following:
 * Create a list of the entries that restrict the valid data values.
 * Create a prompt that explains the type of data that is valid for a given cell.
 * Display a message when incorrect data is typed.
 * Check for incorrect entries using the Auditing toolbar.
 * Set a range of numeric values that can be entered into a cell.
 * Determine if an entry is valid based on a calculation in another cell.

