+ Reply to Thread
Results 1 to 2 of 2

Search to find cells that contain at least two instances of keywords from a predefined set

  1. #1
    Registered User
    Join Date
    08-12-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    1

    Search to find cells that contain at least two instances of keywords from a predefined set

    Hi All,
    I'm not sure how well I was able to describe what I was looking for in the title. If anybody can lend a hand I would greatly appreciate it.
    Here's what I'm looking for.

    I have an column that contains cells that all contain substrings seperated by commas (i.e. one cell may say only have "dog" another may say "dog, cat" another may say "dog, cat, monkey9, tiger" and another "monkey7, tiger 4" etc.)

    I have a set of approximately 10 keywords (i.e. monkey7, monkey9, tiger 4.......). I am trying to search for the cells in said column that contain AT LEAST two of the keywords from the list.
    Can anyone help me out here?
    Hope I was clear in my explanation.
    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Search to find cells that contain at least two instances of keywords from a predefined

    Assume E2:E11 will contain the 10 keywords
    Assume your source data runs in B2 down
    Put this in C2: =IF(SUMPRODUCT(--(ISNUMBER(SEARCH($E$2:$E$11,B2))))>=2,"x","")
    Copy down, then filter col C for "x" to get the desired col B results
    Note that E2:E11 should be fully populated, ie it should NOT contain any blank cells
    Last edited by Max, Singapore; 08-14-2012 at 09:50 AM.

+ 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