Nested IF AND OR statement

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.
 
C

Claus Busch

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.
 
C

Claus Busch

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.
 
C

Colin Hayes

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
 

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

Top