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
 
Hi
try
=IF(OR(WEEKDAY(J6)=1,WEEKDAY(J6)=7),"True","False")

Frank
 
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)
 
One way:

=WEEKDAY(J6,3)>4

or

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

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

Back
Top