+ Reply to Thread
Results 1 to 8 of 8

Wildcard searching for multiple values and returning a result

Hybrid View

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    4

    Wildcard searching for multiple values and returning a result

    Hi,

    I have been trying to find a formula for this but I have yet to find one that works for me.

    Data;

    English - United Kingdom, Czech, Spanish
    UK - United Kingdom
    Swedish
    English - US
    French
    US
    France
    German
    Portuguese
    +8000 more various values

    I am looking for a formula that can search for multiple values e.g. english, us, uk and united and then return the value "Yes".

    I was looking for something that includes wildcard searches or contains so that it is not affected by upper or lower case but combining this with multiple searches was proving difficult.

    Many thanks in advance,

    T

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Wildcard searching for multiple values and returning a result

    One way...

    Checks if the cell contains the string English.

    =IF(COUNTIF(A2,"*English*"),"Yes","No")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    05-27-2014
    Posts
    4

    Re: Wildcard searching for multiple values and returning a result

    Quote Originally Posted by Tony Valko View Post
    One way...

    Checks if the cell contains the string English.

    =IF(COUNTIF(A2,"*English*"),"Yes","No")
    Hi Tony,

    Thanks for your reply, how could I also incorporate searching for "US" and "UK" or "United Kingdom" so that I can hopefully find all the localisations I am looking for with 1 formula?

    T

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Wildcard searching for multiple values and returning a result

    Do you mean you want to look for English OR US OR UK OR United Kingdom?

  5. #5
    Registered User
    Join Date
    05-27-2014
    Posts
    4

    Re: Wildcard searching for multiple values and returning a result

    yes, if any of the value appear then they return the same result. because this original list is for the language of software but there are many variations of the values, so i want to find all the ones relating to english.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Wildcard searching for multiple values and returning a result

    Like this...

    =IF(OR(ISNUMBER(SEARCH({"English","US","UK","United Kingdom"},A2))),"Yes","No")

  7. #7
    Registered User
    Join Date
    05-27-2014
    Posts
    4

    Re: Wildcard searching for multiple values and returning a result

    Quote Originally Posted by Tony Valko View Post
    Like this...

    =IF(OR(ISNUMBER(SEARCH({"English","US","UK","United Kingdom"},A2))),"Yes","No")

    This works perfectly, the addition of the "OR" at the beginning was what I was looking for!

    Thank you very much

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Wildcard searching for multiple values and returning a result

    You're welcome. Thanks for the feedback!

+ 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. Replies: 2
    Last Post: 09-14-2011, 05:02 PM
  2. Replies: 3
    Last Post: 08-02-2010, 10:07 AM
  3. Searching Columns and Returning Row values
    By jasteinh in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-31-2010, 09:09 AM
  4. Searching one value and returning multiple values in one cell
    By Ray789 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-27-2008, 04:31 PM
  5. Searching Row and returning multiple values
    By RichardCragg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2007, 07:36 PM

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