PC Review


Reply
Thread Tools Rate Thread

Data Validation issue with two date entries Options

 
 
SS
Guest
Posts: n/a
 
      11th Sep 2010
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

 
Reply With Quote
 
 
 
 
GS
Guest
Posts: n/a
 
      11th Sep 2010
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


 
Reply With Quote
 
SS
Guest
Posts: n/a
 
      14th Sep 2010
On Sep 11, 5:19*pm, GS <gesan...@netscape.net> wrote:
> 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 athttp://www.eternal-september.org
> ClassicVB Users Regroup! comp.lang.basic.visual.misc- Hide quoted text -
>
> - Show quoted text -


ManicMiner17 and GS,
Thanks for the replies. Unfortunately, the excersize here is to 'not'
use any VB code (I wish i could). Using macros increases the
validation effort 10 fold at our company and hense the reason I am
stuck using the standard excel toolbox.

I was hoping there was a way to use either Data Validation with Dates,
or the Custom option (which i haven't had luck with either).

It seems that any of my solutions would work if only the validation
formulas used would actually detect a cell with no entry, or a blank
cell, and throw a False answer, initiating the data validation error
set up.

I just want to prevent an entry in cell A2 (with the DV error message)
when cell A1 was empty (yet to be filled in). Is that soo much to
ask :-)

Any further suggestions, using non-vb, will again be much appreciated.

Thanks,
SS
 
Reply With Quote
 
SS
Guest
Posts: n/a
 
      14th Sep 2010
On Sep 11, 5:19*pm, GS <gesan...@netscape.net> wrote:
> 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 athttp://www.eternal-september.org
> ClassicVB Users Regroup! comp.lang.basic.visual.misc- Hide quoted text -
>
> - Show quoted text -


Oh, and to Gary, I don't really want to use conditional formatting in
the cell, as this is much too easy to defeat, meaning one can copy the
cell to any other unlocked cell, and the
formatting goes with it; causing usually benign, but undesirable
results.

Thanks Again,
SS
 
Reply With Quote
 
GS
Guest
Posts: n/a
 
      14th Sep 2010
SS presented the following explanation :
> On Sep 11, 5:19*pm, GS <gesan...@netscape.net> wrote:
>> 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 athttp://www.eternal-september.org
>> ClassicVB Users Regroup! comp.lang.basic.visual.misc- Hide quoted text -
>>
>> - Show quoted text -

>
> Oh, and to Gary, I don't really want to use conditional formatting in
> the cell, as this is much too easy to defeat, meaning one can copy the
> cell to any other unlocked cell, and the
> formatting goes with it; causing usually benign, but undesirable
> results.


I don't see how you're going to accomplish a non VBA solution using
Excels built-in features (such as the suggestions I made) if you refuse
to use them. I bid you good luck!

Since the cells you're trying to manage are preformatted as Date data,
what does it matter if someone copies that format to other unlocked
cells. Obviously, your project needs some user instructions so people
don't do stupid things!<IMO>
>
> Thanks Again,
> SS


--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation /w Duplicate Entries John Microsoft Excel Misc 3 23rd Mar 2009 06:32 PM
Data Validation...I need to add more entries!! Davieslondon Microsoft Excel Misc 4 25th Nov 2008 11:27 AM
LIMITING DATA VALIDATION ENTRIES William Microsoft Excel Misc 1 7th Aug 2008 08:20 PM
Using Data Validation - how do I allow other entries =?Utf-8?B?RGlhbmVNY1A=?= Microsoft Excel New Users 4 19th Jul 2005 05:51 PM
How many entries can you have in List Data Validation Rick De Marco Microsoft Excel Programming 5 24th Jul 2003 01:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:35 AM.