+ Reply to Thread
Results 1 to 4 of 4

Formula for searching multiple text strings

  1. #1
    Registered User
    Join Date
    04-03-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Question Formula for searching multiple text strings

    Hello,

    I've had a look around the threads and can't find the answer I'm looking for (or more accurately can't apply the answers into the formula I need).

    What I need to do is say:

    If C2 contains "*Syd*", or "*UTS*", or "*Mel*"... (total of 11 possible text strings) then put a YES in this cell.

    I've tried the IF(OR(ISERROR(FIND... but even when one of the possible text strings are present, the only result I get is "No", so I've got something wrong. Any help would be most appreciated.

    Thank-you!

  2. #2
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Formula for searching multiple text strings

    your string is in cell A2.
    then insert this formula in B2:
    Please Login or Register  to view this content.
    You would need to enter all your 11 possible texts (I only entered 3)
    Click on the star if you think I helped you

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,434

    Re: Formula for searching multiple text strings

    This may be shorter with more condition:
    =IF(SUMPRODUCT(--ISNUMBER(SEARCH({"syd","mel","uts"},C2)))>0,"YES","NO")
    Replace SEARCH with FIND for sensitive case.
    Quang PT

  4. #4
    Registered User
    Join Date
    04-03-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Formula for searching multiple text strings

    Cheers to you both!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help searching an array of text strings for common strings
    By ABComp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-23-2012, 11:19 PM
  2. Searching for text strings within cells... how?
    By shadestreet in forum Excel General
    Replies: 5
    Last Post: 11-10-2008, 08:50 AM
  3. [SOLVED] Searching for codes in text strings
    By Bhupinder Rayat in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-27-2006, 08:25 AM
  4. searching for multiple text strings
    By eddie in forum Excel General
    Replies: 4
    Last Post: 04-10-2005, 06:06 PM

Tags for this Thread

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