+ Reply to Thread
Results 1 to 7 of 7

highlight keywords in a list when they occur in a string on another sheet

  1. #1
    Registered User
    Join Date
    04-27-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2007
    Posts
    22

    highlight keywords in a list when they occur in a string on another sheet

    Hi,

    I have 3 columns of keywords in columns A, B & C on Sheet1. Each column has say 10 rows.
    I also have a paragraph of text in cell A1 of Sheet2.
    I would like to know if there is a way to highlight any keyword listed on sheet1 when it is present in the paragraph of text on sheet2.
    If this is not possible, is there a way to return the cell numbers of any keywords found from the list and display those cell numbers on either sheet for reference?

    Ideally I'd prefer not to use visual basic unless there is no other immediate solution.

    Hopefully someone can point me in the right direction.

    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: highlight keywords in a list when they occur in a string on another sheet

    A sample of your data with expected results will be most helpful.

    Use "Go advanced" then Paper Clip icon

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,064

    Re: highlight keywords in a list when they occur in a string on another sheet

    If your data start in A1, use this as the conditional formatting formula:

    =ISNUMBER(SEARCH(A1,Sheet2!$A$1)) and apply it to your range of cells. as ahown here.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: Lá fhéile Pádraig sona dhaoibh

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

    Re: highlight keywords in a list when they occur in a string on another sheet

    See attachment
    Attached Files Attached Files
    Quang PT

  5. #5
    Registered User
    Join Date
    04-27-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: highlight keywords in a list when they occur in a string on another sheet

    Thanks guys. I just left work and posted the query via mobile. As soon as I get home I'll attach an example and try the suggestion so far.

  6. #6
    Registered User
    Join Date
    04-27-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: highlight keywords in a list when they occur in a string on another sheet

    OK Thanks Glenn. I'm halfway there with your formula.

    I've got 2 issues, maybe due to my ignorance.

    1. When trying to apply conditional formatting to the range on sheet1 using your formula, I get the error message "you can't use references to other worksheets or workbooks for conditional formatting formulas"

    2. Instead, if I place the paragraph of text directly on sheet1 (say in cell E1) then use the same formula for conditional formatting, I only get one hit. Cell A1 is formatted only. The rest appear to be ignored.

    I've tried playing around with it but have had no joy.

    Bebo - Attachment Book1 has no formula or conditional formatting in it. I'm not sure if you meant to just upload an example workbook as previously requested by John. Thanks anyway.

    Cheers for the help so far.

  7. #7
    Registered User
    Join Date
    04-27-2014
    Location
    Newcastle, England
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: highlight keywords in a list when they occur in a string on another sheet

    My mistake. Your formula works perfectly when the paragraph of text is placed on the same sheet. I just forgot to reference the correct cell number where the text was pasted to.

    Thanks again for the help guys.

+ 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: 0
    Last Post: 07-11-2012, 06:05 AM
  2. [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
  3. Replies: 1
    Last Post: 04-23-2012, 04:23 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