+ Reply to Thread
Results 1 to 13 of 13

If...and... - can never get the syntax correct!

  1. #1
    Darin Kramer
    Guest

    If...and... - can never get the syntax correct!



    Howdie

    Spreadsheet 1 columns and 2 rows.
    In A2, either a yes or no
    In A3 either a yes or no
    I need to put in A4 formulae that will tell me:
    If a2 = a3 are equal,put "okay".
    If a2 = No, and a3 = yes, Put "problem"
    If a2 = Yes and a3 = No, put "okay"

    Thanks so much

    D



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

  2. #2
    JulieD
    Guest

    Re: If...and... - can never get the syntax correct!

    Hi Darin

    =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay",IF(AND(A2="No",A3="Yes"),"problem","not
    sure"))

    Cheers
    JulieD


    "Darin Kramer" <darin_kramer@hotmail.com> wrote in message
    news:eSb$GHIMFHA.2680@TK2MSFTNGP09.phx.gbl...
    >
    >
    > Howdie
    >
    > Spreadsheet 1 columns and 2 rows.
    > In A2, either a yes or no
    > In A3 either a yes or no
    > I need to put in A4 formulae that will tell me:
    > If a2 = a3 are equal,put "okay".
    > If a2 = No, and a3 = yes, Put "problem"
    > If a2 = Yes and a3 = No, put "okay"
    >
    > Thanks so much
    >
    > D
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!




  3. #3
    Charlie
    Guest

    RE: If...and... - can never get the syntax correct!


    =IF(OR(A2=A3,A2="Yes"),"Okay","Problem")


    "Darin Kramer" wrote:

    >
    >
    > Howdie
    >
    > Spreadsheet 1 columns and 2 rows.
    > In A2, either a yes or no
    > In A3 either a yes or no
    > I need to put in A4 formulae that will tell me:
    > If a2 = a3 are equal,put "okay".
    > If a2 = No, and a3 = yes, Put "problem"
    > If a2 = Yes and a3 = No, put "okay"
    >
    > Thanks so much
    >
    > D
    >
    >
    >
    > *** Sent via Developersdex http://www.developersdex.com ***
    > Don't just participate in USENET...get rewarded for it!
    >


  4. #4
    Bob Phillips
    Guest

    Re: If...and... - can never get the syntax correct!

    Hi Julie,

    The not sure condition can never be met as stated by OP, you just need

    =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay","problem")

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "JulieD" <JulieD@hctsReMoVeThIs.net.au> wrote in message
    news:uy8JwKIMFHA.3328@TK2MSFTNGP14.phx.gbl...
    > Hi Darin
    >
    >

    =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay",IF(AND(A2="No",A3="Yes"),"problem
    ","not
    > sure"))
    >
    > Cheers
    > JulieD
    >
    >
    > "Darin Kramer" <darin_kramer@hotmail.com> wrote in message
    > news:eSb$GHIMFHA.2680@TK2MSFTNGP09.phx.gbl...
    > >
    > >
    > > Howdie
    > >
    > > Spreadsheet 1 columns and 2 rows.
    > > In A2, either a yes or no
    > > In A3 either a yes or no
    > > I need to put in A4 formulae that will tell me:
    > > If a2 = a3 are equal,put "okay".
    > > If a2 = No, and a3 = yes, Put "problem"
    > > If a2 = Yes and a3 = No, put "okay"
    > >
    > > Thanks so much
    > >
    > > D
    > >
    > >
    > >
    > > *** Sent via Developersdex http://www.developersdex.com ***
    > > Don't just participate in USENET...get rewarded for it!

    >
    >




  5. #5
    Charlie
    Guest

    Re: If...and... - can never get the syntax correct!

    I don't think it needs to be that complex, as long as A2 and A3 MUST contain
    either "Yes" or "No". If A2="Yes" it doesn't matter what's in A3.

    "JulieD" wrote:

    > Hi Darin
    >
    > =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay",IF(AND(A2="No",A3="Yes"),"problem","not
    > sure"))
    >
    > Cheers
    > JulieD
    >
    >
    > "Darin Kramer" <darin_kramer@hotmail.com> wrote in message
    > news:eSb$GHIMFHA.2680@TK2MSFTNGP09.phx.gbl...
    > >
    > >
    > > Howdie
    > >
    > > Spreadsheet 1 columns and 2 rows.
    > > In A2, either a yes or no
    > > In A3 either a yes or no
    > > I need to put in A4 formulae that will tell me:
    > > If a2 = a3 are equal,put "okay".
    > > If a2 = No, and a3 = yes, Put "problem"
    > > If a2 = Yes and a3 = No, put "okay"
    > >
    > > Thanks so much
    > >
    > > D
    > >
    > >
    > >
    > > *** Sent via Developersdex http://www.developersdex.com ***
    > > Don't just participate in USENET...get rewarded for it!

    >
    >
    >


  6. #6
    Bob Phillips
    Guest

    Re: If...and... - can never get the syntax correct!

    or even

    =IF(OR(A2=A3,A2="Yes),"okay","problem")


    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    news:OXNRkXIMFHA.1308@TK2MSFTNGP15.phx.gbl...
    > Hi Julie,
    >
    > The not sure condition can never be met as stated by OP, you just need
    >
    > =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay","problem")
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "JulieD" <JulieD@hctsReMoVeThIs.net.au> wrote in message
    > news:uy8JwKIMFHA.3328@TK2MSFTNGP14.phx.gbl...
    > > Hi Darin
    > >
    > >

    >

    =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay",IF(AND(A2="No",A3="Yes"),"problem
    > ","not
    > > sure"))
    > >
    > > Cheers
    > > JulieD
    > >
    > >
    > > "Darin Kramer" <darin_kramer@hotmail.com> wrote in message
    > > news:eSb$GHIMFHA.2680@TK2MSFTNGP09.phx.gbl...
    > > >
    > > >
    > > > Howdie
    > > >
    > > > Spreadsheet 1 columns and 2 rows.
    > > > In A2, either a yes or no
    > > > In A3 either a yes or no
    > > > I need to put in A4 formulae that will tell me:
    > > > If a2 = a3 are equal,put "okay".
    > > > If a2 = No, and a3 = yes, Put "problem"
    > > > If a2 = Yes and a3 = No, put "okay"
    > > >
    > > > Thanks so much
    > > >
    > > > D
    > > >
    > > >
    > > >
    > > > *** Sent via Developersdex http://www.developersdex.com ***
    > > > Don't just participate in USENET...get rewarded for it!

    > >
    > >

    >
    >




  7. #7
    Charlie
    Guest

    Re: If...and... - can never get the syntax correct!

    Now you got it!

    "Bob Phillips" wrote:

    > or even
    >
    > =IF(OR(A2=A3,A2="Yes),"okay","problem")
    >
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    > news:OXNRkXIMFHA.1308@TK2MSFTNGP15.phx.gbl...
    > > Hi Julie,
    > >
    > > The not sure condition can never be met as stated by OP, you just need
    > >
    > > =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay","problem")
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "JulieD" <JulieD@hctsReMoVeThIs.net.au> wrote in message
    > > news:uy8JwKIMFHA.3328@TK2MSFTNGP14.phx.gbl...
    > > > Hi Darin
    > > >
    > > >

    > >

    > =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay",IF(AND(A2="No",A3="Yes"),"problem
    > > ","not
    > > > sure"))
    > > >
    > > > Cheers
    > > > JulieD
    > > >
    > > >
    > > > "Darin Kramer" <darin_kramer@hotmail.com> wrote in message
    > > > news:eSb$GHIMFHA.2680@TK2MSFTNGP09.phx.gbl...
    > > > >
    > > > >
    > > > > Howdie
    > > > >
    > > > > Spreadsheet 1 columns and 2 rows.
    > > > > In A2, either a yes or no
    > > > > In A3 either a yes or no
    > > > > I need to put in A4 formulae that will tell me:
    > > > > If a2 = a3 are equal,put "okay".
    > > > > If a2 = No, and a3 = yes, Put "problem"
    > > > > If a2 = Yes and a3 = No, put "okay"
    > > > >
    > > > > Thanks so much
    > > > >
    > > > > D
    > > > >
    > > > >
    > > > >
    > > > > *** Sent via Developersdex http://www.developersdex.com ***
    > > > > Don't just participate in USENET...get rewarded for it!
    > > >
    > > >

    > >
    > >

    >
    >
    >


  8. #8
    JulieD
    Guest

    Re: If...and... - can never get the syntax correct!

    if one of A2 or A3 DOESN'T contain either Yes or No and the one other does,
    you get a false result .... can we "assume" that both will be filled with
    only these values? - maybe the OPs cells to check at BA23 and AL1245 ... and
    they want to know the result in A1.

    anyway, the OP can choose which one to use


    "Charlie" <Charlie@discussions.microsoft.com> wrote in message
    news:4D6A6A0A-474A-4187-863F-F7D9A4E33A82@microsoft.com...
    >I don't think it needs to be that complex, as long as A2 and A3 MUST
    >contain
    > either "Yes" or "No". If A2="Yes" it doesn't matter what's in A3.
    >
    > "JulieD" wrote:
    >
    >> Hi Darin
    >>
    >> =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay",IF(AND(A2="No",A3="Yes"),"problem","not
    >> sure"))
    >>
    >> Cheers
    >> JulieD
    >>
    >>
    >> "Darin Kramer" <darin_kramer@hotmail.com> wrote in message
    >> news:eSb$GHIMFHA.2680@TK2MSFTNGP09.phx.gbl...
    >> >
    >> >
    >> > Howdie
    >> >
    >> > Spreadsheet 1 columns and 2 rows.
    >> > In A2, either a yes or no
    >> > In A3 either a yes or no
    >> > I need to put in A4 formulae that will tell me:
    >> > If a2 = a3 are equal,put "okay".
    >> > If a2 = No, and a3 = yes, Put "problem"
    >> > If a2 = Yes and a3 = No, put "okay"
    >> >
    >> > Thanks so much
    >> >
    >> > D
    >> >
    >> >
    >> >
    >> > *** Sent via Developersdex http://www.developersdex.com ***
    >> > Don't just participate in USENET...get rewarded for it!

    >>
    >>
    >>




  9. #9
    JulieD
    Guest

    Re: If...and... - can never get the syntax correct!

    Hi Bob

    the "not sure" condition can be met under the following circumstances
    AND(A2="No", A3="")
    AND(A2="No",A3="Yes ")
    AND(A2=" ",A3="No")

    etc .... as we don't know the "real" range that the OP is going to apply the
    solution to i thought it prudent to check that they only get the requested
    result when the data matches what they asked for.

    anyway the OP can decide which formula to use

    Cheers
    JulieD

    "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    news:OXNRkXIMFHA.1308@TK2MSFTNGP15.phx.gbl...
    > Hi Julie,
    >
    > The not sure condition can never be met as stated by OP, you just need
    >
    > =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay","problem")
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "JulieD" <JulieD@hctsReMoVeThIs.net.au> wrote in message
    > news:uy8JwKIMFHA.3328@TK2MSFTNGP14.phx.gbl...
    >> Hi Darin
    >>
    >>

    > =IF(OR(A2=A3,AND(A2="Yes",A3="No")),"okay",IF(AND(A2="No",A3="Yes"),"problem
    > ","not
    >> sure"))
    >>
    >> Cheers
    >> JulieD
    >>
    >>
    >> "Darin Kramer" <darin_kramer@hotmail.com> wrote in message
    >> news:eSb$GHIMFHA.2680@TK2MSFTNGP09.phx.gbl...
    >> >
    >> >
    >> > Howdie
    >> >
    >> > Spreadsheet 1 columns and 2 rows.
    >> > In A2, either a yes or no
    >> > In A3 either a yes or no
    >> > I need to put in A4 formulae that will tell me:
    >> > If a2 = a3 are equal,put "okay".
    >> > If a2 = No, and a3 = yes, Put "problem"
    >> > If a2 = Yes and a3 = No, put "okay"
    >> >
    >> > Thanks so much
    >> >
    >> > D
    >> >
    >> >
    >> >
    >> > *** Sent via Developersdex http://www.developersdex.com ***
    >> > Don't just participate in USENET...get rewarded for it!

    >>
    >>

    >
    >




  10. #10
    Darin Kramer
    Guest

    Re: If...and... - can never get the syntax correct!

    Thanks all for your input,thought and ultimately the perfect solution!
    It works!



    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

  11. #11
    Charlie
    Guest

    Re: If...and... - can never get the syntax correct!

    can we "assume"...?

    "JulieD" wrote:

    > ... can we "assume" that both will be filled with
    > only these values? ...


    In this case, yes.

    > >>
    > >> "Darin Kramer" <darin_kramer@hotmail.com> wrote in message
    > >> news:eSb$GHIMFHA.2680@TK2MSFTNGP09.phx.gbl...
    > >> >
    > >> > In A2, either a yes or no
    > >> > In A3 either a yes or no



  12. #12
    Bob Phillips
    Guest

    Re: If...and... - can never get the syntax correct!

    Hi Judie,


    "JulieD" <JulieD@hctsReMoVeThIs.net.au> wrote in message
    news:eRMdsoIMFHA.3336@TK2MSFTNGP10.phx.gbl...

    > the "not sure" condition can be met under the following circumstances
    > AND(A2="No", A3="")
    > AND(A2="No",A3="Yes ")
    > AND(A2=" ",A3="No")


    as I said, as stated by the OP ...

    In A2, either a yes or no
    In A3 either a yes or no

    > anyway the OP can decide which formula to use


    Well, he has few choices :-)



  13. #13
    Bob Phillips
    Guest

    Re: If...and... - can never get the syntax correct!

    Spell checker got me Julie, no offence :-)

    Regards

    Bod


    "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    news:u9MzdyIMFHA.2748@TK2MSFTNGP09.phx.gbl...
    > Hi Judie,
    >
    >
    > "JulieD" <JulieD@hctsReMoVeThIs.net.au> wrote in message
    > news:eRMdsoIMFHA.3336@TK2MSFTNGP10.phx.gbl...
    >
    > > the "not sure" condition can be met under the following circumstances
    > > AND(A2="No", A3="")
    > > AND(A2="No",A3="Yes ")
    > > AND(A2=" ",A3="No")

    >
    > as I said, as stated by the OP ...
    >
    > In A2, either a yes or no
    > In A3 either a yes or no
    >
    > > anyway the OP can decide which formula to use

    >
    > Well, he has few choices :-)
    >
    >




+ 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