How can I stop people entering a date outside my project’s allowed time period?
Quick answer
In Excel, select the cells where dates should be entered, then use Data Validation to restrict entries to dates between your project’s start and end dates. Add a clear error alert and choose Stop so Excel rejects dates outside that range. Check that the rule covers every intended cell, then test one date inside the period and dates before and after it. [S1]
The question, the details, the next step.
A practical checklist
Identify every cell or block intended for project date entry.
Use the project’s actual start and end dates as the permitted boundaries.
Set date validation for the selected cells with those boundary dates.
Add a clear error alert and choose Stop to reject out-of-range entries.
Test an in-range date and dates before and after the permitted period.
Check whether protection or workbook sharing makes settings unavailable.
A few more useful answers
Will the rule cover every date cell in my workbook?
Only the cells to which you apply the validation rule are covered. Check the selected range against all intended date-entry areas, especially if they are in separate blocks.
What if I cannot change the validation settings?
Excel’s guidance notes that some settings may be unavailable when a sheet is protected or a workbook is shared. Check whether either condition applies. [S1]
Is an input message the same as an error alert?
No. An input message can guide someone before entry; an error alert responds to an invalid entry. Use a Stop alert when out-of-range dates must be rejected. [S1]
Sources
References used for this guide.
- [S1] Apply data validation to cells support.microsoft.com · Checked
