+ Reply to Thread
Results 1 to 8 of 8

IF with "or"

Hybrid View

  1. #1
    Katie
    Guest

    IF with "or"

    I know this is a crazy question but I was wondering if I want to say,

    If A2 = "blue" or "red" then display "keep". How do I input the "or". I know
    And is displayed as "*".

    Thank you.

  2. #2
    Marcelo
    Guest

    RE: IF with "or"

    hi Katie,

    if(or(A2="BLUE",A2="RED"),KEEP,"")

    hth
    regards from Brazil
    Marcelo

    "Katie" escreveu:

    > I know this is a crazy question but I was wondering if I want to say,
    >
    > If A2 = "blue" or "red" then display "keep". How do I input the "or". I know
    > And is displayed as "*".
    >
    > Thank you.


  3. #3
    Marcelo
    Guest

    RE: IF with "or"

    sorry i forgot the quotes on "keep"

    =if(or(A2="BLUE",A2="RED"),"KEEP","")

    regards

    "Katie" escreveu:

    > I know this is a crazy question but I was wondering if I want to say,
    >
    > If A2 = "blue" or "red" then display "keep". How do I input the "or". I know
    > And is displayed as "*".
    >
    > Thank you.


  4. #4
    Katie
    Guest

    RE: IF with "or"

    Okay. Let me make this a little more confusing. What I have in there now is-

    =IF((F2="WTD")*(J2="Approved"),"Keep","!")

    But what I need to say is, If J2="Approved" or "Reversed".. How would I put
    that in?
    "Marcelo" wrote:

    > sorry i forgot the quotes on "keep"
    >
    > =if(or(A2="BLUE",A2="RED"),"KEEP","")
    >
    > regards
    >
    > "Katie" escreveu:
    >
    > > I know this is a crazy question but I was wondering if I want to say,
    > >
    > > If A2 = "blue" or "red" then display "keep". How do I input the "or". I know
    > > And is displayed as "*".
    > >
    > > Thank you.


  5. #5
    Ragdyer
    Guest

    Re: IF with "or"

    Try this:

    =IF(OR(J2={"Approved","Reversed"}),"Keep","!")
    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------

    "Katie" <[email protected]> wrote in message
    news:[email protected]...
    > Okay. Let me make this a little more confusing. What I have in there now
    > is-
    >
    > =IF((F2="WTD")*(J2="Approved"),"Keep","!")
    >
    > But what I need to say is, If J2="Approved" or "Reversed".. How would I
    > put
    > that in?
    > "Marcelo" wrote:
    >
    >> sorry i forgot the quotes on "keep"
    >>
    >> =if(or(A2="BLUE",A2="RED"),"KEEP","")
    >>
    >> regards
    >>
    >> "Katie" escreveu:
    >>
    >> > I know this is a crazy question but I was wondering if I want to say,
    >> >
    >> > If A2 = "blue" or "red" then display "keep". How do I input the "or". I
    >> > know
    >> > And is displayed as "*".
    >> >
    >> > Thank you.



  6. #6
    Ragdyer
    Guest

    Re: IF with "or"

    Are either of these what you're looking for:

    =IF(OR(A2="Blue",A2="Red"),"Keep","Neither")

    =IF(OR(A2={"Blue","Red"}),"Keep","Neither")

    =IF((A2="Blue")+(A2="Red"),"Keep","Neither")

    --
    HTH,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "Katie" <[email protected]> wrote in message
    news:[email protected]...
    >I know this is a crazy question but I was wondering if I want to say,
    >
    > If A2 = "blue" or "red" then display "keep". How do I input the "or". I
    > know
    > And is displayed as "*".
    >
    > Thank you.



  7. #7
    Katie
    Guest

    Re: IF with "or"

    Fantastic. Thank you both of you!

    "Ragdyer" wrote:

    > Are either of these what you're looking for:
    >
    > =IF(OR(A2="Blue",A2="Red"),"Keep","Neither")
    >
    > =IF(OR(A2={"Blue","Red"}),"Keep","Neither")
    >
    > =IF((A2="Blue")+(A2="Red"),"Keep","Neither")
    >
    > --
    > HTH,
    >
    > RD
    >
    > ---------------------------------------------------------------------------
    > Please keep all correspondence within the NewsGroup, so all may benefit !
    > ---------------------------------------------------------------------------
    > "Katie" <[email protected]> wrote in message
    > news:[email protected]...
    > >I know this is a crazy question but I was wondering if I want to say,
    > >
    > > If A2 = "blue" or "red" then display "keep". How do I input the "or". I
    > > know
    > > And is displayed as "*".
    > >
    > > Thank you.

    >
    >


  8. #8
    Sasa Stankovic
    Guest

    Re: IF with "or"

    this formula should do just fine (I tested and it worked):
    =IF(OR(A2="blue",A2="red"),"KEEP","")

    "Katie" <[email protected]> wrote in message
    news:[email protected]...
    >I know this is a crazy question but I was wondering if I want to say,
    >
    > If A2 = "blue" or "red" then display "keep". How do I input the "or". I
    > know
    > And is displayed as "*".
    >
    > Thank you.




+ 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