Logical or

  • Thread starter Thread starter Supriya
  • Start date Start date
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
 
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
 
No. Try this:

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

HTH,
Nikos
 
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)
 
Back
Top