+ Reply to Thread
Results 1 to 4 of 4

Formula help

  1. #1
    George Gee
    Guest

    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. #2
    RagDyeR
    Guest

    Re: Formula help

    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" <[email protected]> wrote in message
    news:%[email protected]...
    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. #3
    George Gee
    Guest

    Re: Formula help

    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" <[email protected]> wrote in message
    > news:%[email protected]...
    > 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. #4
    Ragdyer
    Guest

    Re: Formula help

    Thanks for the feed-back.
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "George Gee" <[email protected]> wrote in message
    news:[email protected]...
    > 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" <[email protected]> wrote in message
    > > news:%[email protected]...
    > > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1