Data Validation in Excel
Master Excel data validation for error-free spreadsheets
Data validation ensures cell data meets your defined restrictions, like requiring numbers less than 10, with custom error messages when rules are violated.
Core Data Validation Components
Settings Tab
Define the validation rules and criteria that cells must meet. Choose from whole numbers, decimals, lists, dates, and custom formulas.
Input Message Tab
Create helpful messages that appear when users click validated cells. Guide users on what data to enter.
Error Alert Tab
Customize error messages shown when invalid data is entered. Control whether to stop, warn, or inform users.
Data Validation Types Available
Whole Number vs Decimal Validation
| Feature | Whole Number | Decimal |
|---|---|---|
| Accepts integers | Yes | Yes |
| Accepts decimals | No | Yes |
| Example valid entries | 2, 8, 100 | 2.5, 7.123456, 100.0 |
| Use case | Counts, IDs, Ages | Prices, Measurements, Rates |
Creating List Validation
Select Cells
Choose the cells where you want to apply list validation
Choose List Type
Select List from the validation dropdown in the Settings tab
Define Source
Enter comma-separated values, cell references, or range names in the Source field
Test Dropdown
Click the validated cell to see the dropdown list appear
List Source Options
Comma-Separated Values
Type values directly like 'Red,Blue,Green'. Quick setup but harder to modify later when embedded in the rule.
Cell References
Reference a range like A1:A5. Easy to update by changing the source cells without modifying validation rules.
Named Ranges
Use defined names like 'Months' or 'States'. Most flexible approach for complex or reusable validation lists.
Date validation offers the same comparison operators as Whole Number validation: between, greater than, less than, etc. Use this to restrict date ranges for deadlines or historical data.
The solution presented here is making sure the 9 numbers, when put together (without the dashes) and multiplied by 1 is not an error.
Real-World Validation Scenarios
Prevent numeric data in name or description fields
Each entry must be larger than the previous cell value
Maintain unique values across a specified range
Second dropdown options depend on first dropdown selection
Entries must begin with specific characters
INDIRECT treats cell contents as references. If A2 contains 'Fruit', INDIRECT(A2) references the named range 'Fruit', enabling dynamic cascading dropdowns.
Error Alert Types
| Feature | Stop | Warning | Information |
|---|---|---|---|
| Prevents invalid entry | Yes | No | No |
| Shows custom message | Yes | Yes | Yes |
| User can override | No | Yes | Yes |
| Best for | Critical rules | Soft guidelines | Helpful hints |
The 'Apply these changes to all other cells with the same settings' checkbox lets you modify validation rules across multiple cells simultaneously, saving time on bulk updates.
Key Takeaways






























