Fix Excel Data Validation Error Message Showing Wrong Date Range
Question details
The user needs to correct the date range displayed in an Excel Data Validation error pop-up because it shows outdated information despite the validation rule working properly.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Maintaining a spreadsheet that uses Data Validation to restrict date entries to a specific time frame.
- Observed behavior
- Excel successfully restricts invalid dates according to the rule, but the error alert pop-up displays an old, incorrect date range because the message text does not automatically update.
Ensure that your Data Validation date range criteria in the 'Settings' tab is properly updated before modifying the error message. Note down the exact start and end dates you want the alert to display to your users.
Manually Update the Data Validation Error Alert Message
Since Excel's validation error messages are static text, you must manually edit the error alert tab whenever you change the allowed date range.
Data Validation error alerts do not automatically sync with the rule's criteria. This means if you change the acceptable dates, the error prompt will continue showing the old text until you manually overwrite it.
Highlight all the cells in your worksheet that contain the outdated Data Validation rule.
Go to the 'Data' tab on the Excel Ribbon and click on the 'Data Validation' button.
In the Data Validation dialog box, click on the 'Error Alert' tab at the top.
In the 'Error message' text box, delete the outdated dates, type in your new date range, and click 'OK' to save the changes.

Automate Dynamic Error Messages Using VBA
Use a VBA macro to automatically update the validation error message whenever the source dates change.
Easily Manage Data Validation Rules and Alerts in WPS Spreadsheet
WPS Office Spreadsheet provides an intuitive interface to set up data validation rules and customize error alerts. You can quickly update static error messages to guide your users accurately when they enter invalid dates, fully compatible with your existing Excel files.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your date rules, then select the target cells.
- 2. Access the Validation tool: Navigate to the 'Data' tab on the top menu and click on the 'Validation' icon.
- 3. Update the Error Alert: Switch to the 'Error Alert' tab in the pop-up window.
- 4. Save changes: Modify the text to show the correct date limits and click 'OK' to apply.

Frequently Asked Questions
Why doesn't the error message update automatically when I change the allowed date cells?
Excel's Data Validation error message is a static text field. It does not contain dynamic cell references. Modifying the allowed dates in the 'Settings' tab changes the rule, but it does not alter the plain text you typed in the 'Error Alert' tab.
Can I use a formula or cell reference inside the Data Validation Error Alert box?
No, Excel does not evaluate formulas or cell references entered in the Error message box. It treats whatever you type as plain text. You must use VBA if you need the text to generate dynamically based on other cells.
How do I find all cells that have this outdated validation rule?
Select one cell with the outdated rule, go to the Home tab, click 'Find & Select', and choose 'Go To Special'. Select 'Data Validation', choose the 'Same' radio button, and click 'OK'. Excel will highlight all cells sharing that exact rule.
Will turning off the Error Alert affect my date validation rule?
If you uncheck the 'Show error alert after invalid data is entered' box, users will not see a warning message and will be able to enter invalid dates, effectively bypassing your restrictions.




