Microsoft KB Archive/256045

= Data validation only applies to manual cell in Excel =

Article ID: 256045

Article Last Modified on 4/13/2006

-

APPLIES TO


 * Microsoft Excel 2000 Standard Edition
 * Microsoft Excel 98 for Macintosh
 * Microsoft Excel 97 Standard Edition

-



This article was previously published under Q256045



SYMPTOMS
When you apply data validation to either an individual cell or to a range of cells in your Microsoft Excel 2000, Microsoft Excel 98 Macintosh Edition, or Microsoft Excel 97 worksheet, Excel may accept invalid values despite your having applied data validation restrictions.



CAUSE
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.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.



MORE INFORMATION
With data validation, you can specify what data is valid for either an individual cell or a range of cells in the following ways:
 * Create a list of 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.

