+ Reply to Thread
Results 1 to 5 of 5

Find word(s) within text string that matches a list of keywords - NOT case sensitive

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Find word(s) within text string that matches a list of keywords - NOT case sensitive

    Hello,

    Previously a poster requested a solution to finding text within a string, given a list of keywords.

    Here is a link to the original thread: http://www.excelforum.com/excel-gene...-keywords.html

    Relevant text:
    Basically, I have a column of text strings in worksheet one which I need to check for the presence of keywords which is listed in another column in worksheet two (the keyword list).

    So if any word from the keyword list is found in, say, cell A1 of sheet one, the cell to its right (B1) should have a formula to display either the first match (or if possible, all the matched words).

    Factors to be taken into consideration are:
    - the column of text in sheet one may be run for up to 500 rows
    - the keyword list may contain up to 3000 keywords (3000 rows)
    - the match must to be case sensitive
    - the match must be for whole words (and not match "office" to "off")
    - there are punctuations in the text in sheet one.

    Original Solution: find word(s) within text string that matches a list of keywords.xls

    This works perfectly.

    However, it is case sensitive. Two questions:

    1. Is it possible to modify the formula to allow a match to be made if the data in A1 does NOT match the case (upper/lower/mixed) of the keywords in the list?
    2. Can the keyword(s) extracted from A1 be in the same case as the Keyword list (not the data in A1)?

    I have spent the better part of a day searching for the answer to this and trying many different approaches. My knowledge of Excel is just enough to know that there is a lot I don't know!

    Thanks,

    gbm

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Find word(s) within text string that matches a list of keywords - NOT case sensitive

    Hi,

    Change every occurrence of
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in the formula in column B (count) and the array formula in column C and to the left.

    You will ALSO need to change every occurence of
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hope this helps

  3. #3
    Registered User
    Join Date
    09-05-2013
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Find word(s) within text string that matches a list of keywords - NOT case sensitive

    Thank you.
    Thank you.

    This worked perfectly.

    gbm

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Find word(s) within text string that matches a list of keywords - NOT case sensitive

    No worries!

    Please don't forget to mark this thread as solved

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Find word(s) within text string that matches a list of keywords - NOT case sensitive

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. [SOLVED] non-case sensitive 'string' search?
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-25-2012, 03:01 PM
  2. Replies: 0
    Last Post: 07-11-2012, 06:05 AM
  3. [SOLVED] find word(s) within text string that matches a list of keywords
    By ecc34_11 in forum Excel General
    Replies: 10
    Last Post: 07-11-2012, 06:04 AM
  4. [SOLVED] find first word within text string that matches from a list of keywords
    By exclusivebiz in forum Excel General
    Replies: 5
    Last Post: 04-13-2012, 03:29 PM
  5. Replies: 6
    Last Post: 04-06-2012, 04:18 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