+ Reply to Thread
Results 1 to 5 of 5

IF Statement equalling multiple words. Please Help

  1. #1
    Phillip Vong
    Guest

    IF Statement equalling multiple words. Please Help

    I want to say if cell A1 = "word1" or "word2" or "word3", then "".
    Otherwise do this.

    I know how to make check if it = 1 item, but how do you make it check 3 or
    four things without using multiple IF statements?

    Thanks

    Phil



  2. #2
    Cody
    Guest

    RE: IF Statement equalling multiple words. Please Help


    Use and If(or(A1="word1",A1="word2",A1="word3"),then"",else)

    That should work for you,
    Cody

    "Phillip Vong" wrote:

    > I want to say if cell A1 = "word1" or "word2" or "word3", then "".
    > Otherwise do this.
    >
    > I know how to make check if it = 1 item, but how do you make it check 3 or
    > four things without using multiple IF statements?
    >
    > Thanks
    >
    > Phil
    >
    >
    >


  3. #3
    Alan
    Guest

    Re: IF Statement equalling multiple words. Please Help

    =IF(OR(A1="word1",A1="Word2",A1="word3"), "do something","do something
    else") if any one stement is true or
    =IF(AND(A1="word1",A1="Word2",A1="word3"), "do something","do something
    else") if all statements are true
    Regards,

    "Phillip Vong" <phillip_vong*at*yahoo*dot*com> wrote in message
    news:%[email protected]...
    >I want to say if cell A1 = "word1" or "word2" or "word3", then "".
    >Otherwise do this.
    >
    > I know how to make check if it = 1 item, but how do you make it check 3 or
    > four things without using multiple IF statements?
    >
    > Thanks
    >
    > Phil
    >




  4. #4
    Phillip Vong
    Guest

    Re: IF Statement equalling multiple words. Please Help

    Thanks guys!

    Phil


    "Phillip Vong" <phillip_vong*at*yahoo*dot*com> wrote in message
    news:%[email protected]...
    >I want to say if cell A1 = "word1" or "word2" or "word3", then "".
    >Otherwise do this.
    >
    > I know how to make check if it = 1 item, but how do you make it check 3 or
    > four things without using multiple IF statements?
    >
    > Thanks
    >
    > Phil
    >




  5. #5
    Ron Rosenfeld
    Guest

    Re: IF Statement equalling multiple words. Please Help

    On Thu, 17 Mar 2005 13:52:40 -0500, "Phillip Vong"
    <phillip_vong*at*yahoo*dot*com> wrote:

    >I want to say if cell A1 = "word1" or "word2" or "word3", then "".
    >Otherwise do this.
    >
    >I know how to make check if it = 1 item, but how do you make it check 3 or
    >four things without using multiple IF statements?
    >
    >Thanks
    >
    >Phil
    >


    A little shorter:


    =IF(OR(A1={"word1","word2","word3"}),"","do this")


    --ron

+ 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