Reject Invalid Dates in Excel
In this tutorial, you learn how to design a cell that will reject invalid date entries in a cell.
1. Select cell C3.
![select a cell](https://overallmoney.com/wp-content/uploads/2022/03/date-validation-1.png)
2. From the Data tab, click “Data Validation”.
![click data validation](https://overallmoney.com/wp-content/uploads/2022/03/validation-2.png)
3. From the Settings tab of the Data Validation dialog box, select the Date and between, and then type in a Start date of 1/1/2010 and End date of =TODAY().
![data validation criteria](https://overallmoney.com/wp-content/uploads/2022/03/date-validation-2.png)
4. Click the Input Message tab. Type in the title as “County Level Meeting” and input message as “Please enter a date between 1/1/2010 and today’s date”.
5. Click the Error Alert tab. . Type in the title as “Invalid Entry” and Error message as “Please type in a date within the date range”.
6. Click OK.
7. Select cell C3. Try to enter a date that is outside the date. For instance, we enter 1/2/2009 in cell C3.
8. Press Enter.
![invalid entry message](https://overallmoney.com/wp-content/uploads/2022/03/date-validation-3.png)
Result: Excel shows the warning message for the user as you have set.
Note: To remove all the data validation rules, select the cell and then click Data tab -> Data Validation -> Clear All -> OK.
2 of 8 finished! Recommending more on Data Validation: Next Example >> |
<< Previous Example | Skip to Next Chapter 09: Using Templates |