+ Reply to Thread
Results 1 to 5 of 5

If, or, isnumber, search

  1. #1
    Registered User
    Join Date
    12-01-2011
    Location
    Lakewood, CO
    MS-Off Ver
    Excel 2003
    Posts
    11

    Talking If, or, isnumber, search

    In cell F1, I need to find substrings A100, B100, OR C100 in cell D1, and if true, "Y", else "N". I can get it to find one of the 3 substrings using: =IF(ISNUMBER(SEARCH("A100",D1)),"Y","N")
    and get the correct return, BUT, I haven't been able to figure out how to add the "OR" and the other substrings to the formula. Can someone help? Thanks.
    Last edited by reb2u; 03-15-2012 at 10:51 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If, or, isnumber, search

    Try:

    =IF(OR(ISNUMBER(SEARCH({"A100","B100","C100"},D1))),"Y","N")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: If, or, isnumber, search

    Use this

    =IF(OR(ISNUMBER(SEARCH("A100",D1)),(ISNUMBER(SEARCH("B100",D1))),(ISNUMBER(SEARCH("C100",D1)))),"Y","N")
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  4. #4
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: If, or, isnumber, search

    Hi

    Another option:

    =IF(COUNT(SEARCH({"A100","B100","C100"},D1)),"Y","N")

  5. #5
    Registered User
    Join Date
    12-01-2011
    Location
    Lakewood, CO
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: If, or, isnumber, search

    Thank you very much, NBVC, it worked perfectly!

+ 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