Logical or

S

Supriya

If the entered date is either Saturday or sunday, then calculatio
should take place.


=IF(OR(WEEKDAY(J6)=1,7),"True","False")

Is the above formula is correct
 
E

Edwin Tam

The formula should be
=IF(AND(J6<>0,OR(WEEKDAY(J6)=1,WEEKDAY(J6)=7)),TRUE,FALSE


----- Supriya > wrote: ----

If the entered date is either Saturday or sunday, then calculatio
should take place


=IF(OR(WEEKDAY(J6)=1,7),"True","False"

Is the above formula is correct
 
N

Nikos Yannacopoulos

No. Try this:

=IF(OR(WEEKDAY(J6)=1,WEEKDAY(J6)=7),"True","False")

HTH,
Nikos
 
B

Bob Phillips

Supriya,

If you just want True or False, you can siumply use

=OR(WEEKDAY(J6)=1,WEEKDAY(J6)=7)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
J

John McGimpsey

One way:

=WEEKDAY(J6,3)>4

or

=IF(WEEKDAY(J6,3)>4,<do if true>,<do if false>)
 
Top