Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
George Gee
 
Posts: n/a
Default Formula help

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!


--
George


  #2   Report Post  
RagDyeR
 
Posts: n/a
Default

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!
==============================================


"George Gee" wrote in message
...
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!


--
George



  #3   Report Post  
George Gee
 
Posts: n/a
Default

RagDyeR

That works fine!
Many thanks.

George


*RagDyeR* has posted this message:

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!
==============================================


"George Gee" wrote in message
...
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!


--
George



  #4   Report Post  
Ragdyer
 
Posts: n/a
Default

Thanks for the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"George Gee" wrote in message
...
RagDyeR

That works fine!
Many thanks.

George


*RagDyeR* has posted this message:

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!
==============================================


"George Gee" wrote in message
...
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!


--
George




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 07:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"