Recent chats
ASKGEEZ Q&A GUIDETechnology & devices

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]

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

How do I stop people entering dates outside my project’s allowed period in Excel?

Geez

Select the cells where project dates belong, then open Excel’s data-validation settings for those cells. Set the permitted entry type to dates and define the minimum and maximum as your project’s start and end dates. Excel’s date-validation settings use the labels Start Date and End Date. Add an error alert and choose Stop if entries outside the range must be rejected. [S1]

For example, if your project period is 10 March 2026 through 30 June 2026, use those as the boundary dates. Treat them as placeholders: replace them with the dates that actually apply to your project. The rule applies to the selected cells, so check that the selection matches the places where dates should be entered.

Follow-up question

What should the rejection message say, and how do I make it understandable?

Geez

Keep the message brief and tell the person both what is wrong and what to do next. For example:

Date outside project period. Enter a date from [project start date] through [project end date].

Replace the bracketed text with your actual boundary dates. If useful, add an input message that appears before entry, such as: Enter a project date between [project start date] and [project end date]. Excel supports an input message and a custom error alert; choose Stop when invalid entries must be rejected. [S1] Avoid a vague message like “Invalid”—it leaves the person guessing which dates are allowed.

Follow-up question

How can I check the rule applies to all the right cells and works?

Geez

Compare the selected range with the places where people are meant to enter dates. Include all intended date-entry cells and avoid applying the rule to unrelated fields. If the entry area is spread across separate blocks, check each block rather than assuming one selection covers them all.

Then test in a representative cell: enter a date within the allowed period, a date before it, and a date after it. Confirm that the in-range date is accepted and that each out-of-range attempt produces the expected Stop alert. Excel’s guidance recommends testing entries inside and outside the allowed range. [S1] If a sheet is protected or the workbook is shared, some validation settings may be unavailable. [S1]

Follow-up question

Can you give me a reusable setup checklist?

Geez

Use this checklist each time you set up a project date field:

  1. Identify the exact cells where people should enter dates.
  2. Confirm the project’s actual start and end dates.
  3. Select the intended cells and set date validation with those minimum and maximum values.
  4. Add a helpful input message and an error alert; choose Stop to reject dates outside the range. [S1]
  5. Check that every intended date-entry area is covered.
  6. Test one in-range date, one date before the start, and one date after the end.

Copyable alert: Date outside project period. Enter a date from [project start date] through [project end date].

A successful test in one cell does not show that every intended cell has the rule. This setup checks entries in cells covered by the validation rule; it does not establish that dates elsewhere in the workbook follow the same limits.

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.

  1. [S1] Apply data validation to cells
    support.microsoft.com · Checked

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work