Nested IF AND OR statement

  • Thread starter Thread starter Colin Hayes
  • Start date Start date
C

Colin Hayes

Hi All

I need some help with a complicated formula.

I'm trying to say ;

IF E2 contains "A" , OR "B" , OR "C" , AND K2="D" then put "YES". IF not
put B1

Grateful for any help.
 
Hi Colin,

Am Tue, 29 Oct 2013 20:30:45 +0000 schrieb Colin Hayes:
IF E2 contains "A" , OR "B" , OR "C" , AND K2="D" then put "YES". IF not
put B1

try:

=IF((K2="D")+COUNT(FIND({"A","B","C"},E2))=2,"Yes",B1)


Regards
Claus B.
 
Hi Colin,

Am Tue, 29 Oct 2013 21:45:59 +0100 schrieb Claus Busch:
=IF((K2="D")+COUNT(FIND({"A","B","C"},E2))=2,"Yes",B1)

a bit shorter:
=IF(OR(E2={"A","B","C"})+(K2="D")=2,"Yes",B1)


Regards
Claus B.
 
Claus Busch said:
Hi Colin,

Am Tue, 29 Oct 2013 21:45:59 +0100 schrieb Claus Busch:


a bit shorter:
=IF(OR(E2={"A","B","C"})+(K2="D")=2,"Yes",B1)


Regards
Claus B.

Hi Claus

Yes , both perfect. Thanks again for your time and considerable
expertise.

^_^

Best Wishes


Colin
 
Back
Top