+ Reply to Thread
Results 1 to 5 of 5

Search for multiple strings in multiple colums

  1. #1
    Registered User
    Join Date
    02-05-2012
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2010
    Posts
    15

    Search for multiple strings in multiple colums

    I've tried to figure out how to do this myself with multiple searches but have been unsuccessful.

    I have a large list of strings that I want to check against numerous columns containing strings.

    The output that I want is either "Y" or "N" if any of the strings matches.

    I have attached an excel file with an example that is smaller but similar to what I want to do.

    Thanks.Example 1.xlsx

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Search for multiple strings in multiple colums

    Try this in B2

    =IF(SUMPRODUCT(COUNTIF(D2:Z2,A$2:A$4)),"Y","N")

    Copy down...
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Registered User
    Join Date
    02-05-2012
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Search for multiple strings in multiple colums

    Thanks so much!

  4. #4
    Registered User
    Join Date
    02-05-2012
    Location
    Honolulu, HI
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Search for multiple strings in multiple colums

    One other thing has come up which it doesn't look like the above will catch.

    If the string to match is "311", how can I get it to recognize any string that starts with 311.xx.

    So that 311.1 or 311.2 will show up as a yes, if the string to match column just has 311?

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    365
    Posts
    2,243

    Re: Search for multiple strings in multiple colums

    Try COUNTIF with wildcard;

    =IF(SUMPRODUCT(COUNTIF(D2:Z2,A$2:A$4&"*")),"Y","N")

    Assuming your data always be string NOT real numbers.

+ 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. Truncate text strings using LEFT and FIND/SEARCH for multiple search terms
    By ngdoherty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 07:51 PM
  2. Formula required for comparing multiple colums to multiple colums
    By Pringgles in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-30-2012, 07:23 AM
  3. [SOLVED] Search column for multiple strings
    By newnoise in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-24-2012, 08:30 PM
  4. Replies: 5
    Last Post: 03-29-2012, 04:12 AM
  5. Search for multiple strings simultaneously
    By denverdale in forum Excel General
    Replies: 5
    Last Post: 03-08-2011, 03:54 AM

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