OR function

  • Thread starter Thread starter lunker55
  • Start date Start date
L

lunker55

I have the formula:
=IF(Schedule!A2&Schedule!B2<>$A$2&$D$2,"",IF(Schedule!K2>($B$3+23),"",Schedu
le!J2))

I want to add OR((Schedule!A2="*"),Schedule!J2)

I want to copy the contents of J2 into the cell the formula is in if the top
formula OR the bottom formula is true.
They don't both have to be true.
Joe
 
Joe

not sure that I follow your question but the way to use IF and OR is as
follows:

=IF(OR(cond1, cond2, ...,condn), true_response, false_response)

In this case, if Condition 1 or Condition 2 is true (etc) return the
true_response, otherwise return the false_response

Regards

Trevor
 
One way, if I understand you correctly:

=IF(OR(Schedule!A2="*", AND(Schedule!A2&Schedule!B2=$A$2&$D$2,
Schedule!K2<=($B$3+23)), Schedule!J2,"")


,""In article <#[email protected]>,
 
Thanks Trevor and JE.
Works great.
Using Trevor's way, I got my formula way down in size:
=IF(OR(Schedule!A10&Schedule!B10=$B$2&$C$2,Schedule!A10="*"),Schedule!K10,""
)
Joe
 

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