validate alternate day date

G

Guest

hi community

is possible to validate a date to avoid say Saturday or Sunday whenever a
user enter a date entry....

is it possible to validate a week, say, whenever a user enter Tuesday and
Friday, the range do not allow it......

thanks community for ever helpful assistance :)
 
T

T. Valko

is possible to validate a date to avoid say Saturday or Sunday whenever a
user enter a date entry....

Data>Validation>Allow>Custom
Formula: =WEEKDAY(A1,2)<6
is it possible to validate a week, say, whenever a user enter Tuesday and
Friday, the range do not allow it......

Don't know what you mean by that.

Biff
 
G

Guest

thanks T. Valko for your assistance.. :)
the syntax :
=weekday(a1,2)<6 is to avoid two day running one after another Saturday or
Sunday...

my objective is...

example:

I set a range of cell with validation date format that only allow Monday /
Tuesday / Thursday / Friday / Sunday...

and if user enter any date format that falls in Wednesday or Saturday, the
cell entry does not permit it.

is it possible to do such validation ?

very much appreciated for the assistance render :)
 
T

T. Valko

Try this:

=AND(WEEKDAY(A1,2)<>3,WEEKDAY(A1,2)<>6)

This will allow Mon, Tue, Thur, Fri and Sun

It will not allow Wed or Sat

Biff
 
G

Guest

thanks :) T. Valko, much appreciated for your assistance

will try out the syntax

and to community as well, thanks !
 
R

RichardSchollar

Hi

You can use WEEKDAY to determine what day of the week a date
represents - so to avoid Sat/Sun you could use the following check
(returns True if not Sat/Sun, False otherwise):

=WEEKDAY(A1,2)<6

Hope this helps!

Richard
 
G

Guest

yes RichardSchollar, it does help alot :) thanks for the assistance rendered

to community as well, much appreciated
 
T

T. Valko

You're welcome. Thanks for the feedback!

Biff

tikchye_oldLearner57 said:
thanks :) T. Valko, much appreciated for your assistance

will try out the syntax

and to community as well, thanks !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top