+ Reply to Thread
Results 1 to 3 of 3

How do I perform a contains function for a specific cell?

  1. #1
    Vstein
    Guest

    How do I perform a contains function for a specific cell?

    I am wanting to do an if statement. If cell A contains "a certain word" then
    Y else N. what is the syntax for the the contains portain of the if
    statement?

  2. #2
    Aladin Akyurek
    Guest

    Re: How do I perform a contains function for a specific cell?

    Vstein wrote:
    > I am wanting to do an if statement. If cell A contains "a certain word" then
    > Y else N. what is the syntax for the the contains portain of the if
    > statement?


    Some example idioms...

    =ISNUMBER(SEARCH(" "&E2&" "," "&A2&" "))+0

    =ISNUMBER(FIND(" "&E2&" "," "&A2&" "))+0

    =COUNTIF(A2,"*"&E2&"*")

    Custom format the formula cell as:

    [=0]"N";[=1]"Y"

  3. #3
    KL
    Guest

    Re: How do I perform a contains function for a specific cell?

    Hi,

    Try these:

    case sensitive
    =IF(ISERROR(FIND("YourString",A1)),"No","Yes")
    =IF(SUBSTITUTE(A1,"YourString","")=A1,"No","Yes")

    not case sensitive:
    =IF(COUNTIF(A1,"*YourString*"),"Yes","No")
    =IF(ISERROR(SEARCH("YourString",A1)),"No","Yes")

    Regards,
    KL



    "Vstein" <[email protected]> wrote in message
    news:[email protected]...
    >I am wanting to do an if statement. If cell A contains "a certain word"
    >then
    > Y else N. what is the syntax for the the contains portain of the if
    > statement?




+ 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