SS pretended :
> Hello,
> Cell A1 is a 'start' date, and cell A2 is a 'completed' date.
>
> I had it working so that cell A2 must be a date between cell A1's
> date
> and Today(). I used:
>
>
> between
>
>
> =A1
>
>
> and
>
>
> =Today()
>
>
> *** This worked great, except if cell A1 was empty(blank) before A2
> date is entered; it will allow the mismatch (a completed date prior
> to
> start date).
>
>
> *** I need a way to make the data validation error to appear when
> cell
> A1 is empty (not been entered yet) and also the error to appear when
> the original criteria is not met (date between cell A1's date and
> Today() ).
>
>
> This seemed really easy to fix at first, but i can't get anything
> working.
> Any help would be much appreciated.
>
>
> Many Thanks,
> SS
suggestion...
Use Conditional Formatting to 'flag' either cell if its counterpart is
empty while it contains a date. Use Data Validation to ensure only a
valid date can be entered.
So CF for A1 would be:
=AND(A1="",A2<>""); Format cell with red fill
The CF for A2 would be:
=AND(A2="",A1<>""); Format cell with red fill
Now if both cells are empty then all is normal. If you enter a start
date in A1 then A2 will flag red to indicate a finish date is required
at some point. If you enter a finish date in A2 without a start date in
A1 then A1 will flag red to indicate a start date is required.
Use DV only to restrict the input to dates.
HTH
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc