Formula help

G

George Gee

Hi all

I have an IF statement:
=IF(AND(A1="Draw",B1<>C1),"Error","OK")
This works OK.

I am having trouble adding the next two statements:

=IF(AND(A1="Win",B1<=C1),"Error","OK")
=IF(AND(A1="Loose",B1>=C1),"Error","OK")

How do I combine these three statements in one IF statement?

Many thanks!
 
R

RagDyeR

Try this:

=IF(OR(AND(A1="Draw",B1<>C1),AND(A1="Win",B1<=C1),AND(A1="lose",B1>=C1)),"Er
ror","OK")
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================


Hi all

I have an IF statement:
=IF(AND(A1="Draw",B1<>C1),"Error","OK")
This works OK.

I am having trouble adding the next two statements:

=IF(AND(A1="Win",B1<=C1),"Error","OK")
=IF(AND(A1="Loose",B1>=C1),"Error","OK")

How do I combine these three statements in one IF statement?

Many thanks!
 

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