+ Reply to Thread
Results 1 to 13 of 13

Problem with Highlighting certain phrases

  1. #1
    Registered User
    Join Date
    08-11-2016
    Location
    New York
    MS-Off Ver
    2013
    Posts
    78

    Problem with Highlighting certain phrases

    Hello,

    I've ran into a situation where I'm trying to highlight all instances of "pizza deal" the problem is that with the symbols in the word it doesn't highlight all the words such as "pizza deals, online pizza deals, etc." My goal is as long as it has the words "pizza" and "deal" it should highlight that particular cell. I thought maybe using vba could do the trick, but I ran into a dead end again.

    Another option I was thinking about (that I created on the second tab) is having a list of the words I'm looking for such "pizza deal", "salad deal" and it would highlight all those instances including "online salad deals", "deals for pizza" etc in the other list. Any help on this would be appreciated...

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Problem with Highlighting certain phrases

    Try this in H2 and copy down;
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-11-2016
    Location
    New York
    MS-Off Ver
    2013
    Posts
    78

    Re: Problem with Highlighting certain phrases

    Hi Kersplash,

    Thanks for taking time to look at this. I tired the formula and was wondering is there a way to modify this so that it would just highlight the phrases in B2?

  4. #4
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Problem with Highlighting certain phrases

    Do you mean highlight the cells in Column B that contain the words pizza & deal?

  5. #5
    Registered User
    Join Date
    08-11-2016
    Location
    New York
    MS-Off Ver
    2013
    Posts
    78

    Re: Problem with Highlighting certain phrases

    Yes, the goal is to highlight all instances of "pizza deal" in column B whether it has symbols in front or not or where the word "pizza deal" is positioned. i.e. online pizza deal

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Problem with Highlighting certain phrases

    Go to Conditional Formatting and choose "Use a formula..", Enter formula and apply color.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  7. #7
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Problem with Highlighting certain phrases

    Put this rule in B2 then copy the formatting down Column B.

    Capture.JPG
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    08-11-2016
    Location
    New York
    MS-Off Ver
    2013
    Posts
    78

    Re: Problem with Highlighting certain phrases

    Hi AlKey,

    I tired that method and it selected the majority, but didn't select all of them. I provided a screenshot to show what was captured...
    Attached Images Attached Images

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Problem with Highlighting certain phrases

    There is more than that if you scroll down
    Please see attached file
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    08-11-2016
    Location
    New York
    MS-Off Ver
    2013
    Posts
    78

    Re: Problem with Highlighting certain phrases

    Thanks Kersplash,

    Another question I wanted to build upon this would be if I had multiple names I wanted to check like I wanted to find all instances of "pizza deals" and "taco deals" would the best method be the one you suggested and just change the name. Or create a list of all the words I'm looking to highlight and have it highlight any matches of the word. I provided an example of this...
    Attached Images Attached Images

  11. #11
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Problem with Highlighting certain phrases

    There's many ways to tackle the same problem.

    I like Alkey's solution so just add rules for each set of words and colour them differently.

  12. #12
    Registered User
    Join Date
    08-11-2016
    Location
    New York
    MS-Off Ver
    2013
    Posts
    78

    Re: Problem with Highlighting certain phrases

    Thanks Alkey,

    One more question what would your recommendation be if there were multiple names that needed to be checked. For instance "pizza deals", "salad sales", etc. Is it possible to add more that one text string in that field? For example could I use..

    =Countifs(B2,"taco","salad",B2,"deal","sale")

  13. #13
    Registered User
    Join Date
    08-11-2016
    Location
    New York
    MS-Off Ver
    2013
    Posts
    78

    Re: Problem with Highlighting certain phrases

    Thanks for your help kersplash, I agree Alkey's method is more manageable since I'll be dealing with hundreds of these kind of keywords..

+ 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] Problem with highlighting differences between two worksheets
    By gilde in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2012, 01:04 PM
  2. Compare lists of phrases in two workbooks and import only missing phrases
    By Fireblejd in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-10-2011, 06:59 AM
  3. Helping out user with highlighting problem.
    By trevercj in forum Excel General
    Replies: 1
    Last Post: 09-14-2009, 11:17 AM
  4. problem highlighting row
    By mehdoush in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-29-2009, 05:35 PM
  5. cell highlighting problem
    By jskamm in forum Excel General
    Replies: 1
    Last Post: 02-25-2008, 06:08 PM
  6. Debug problem when highlighting?
    By Zirus in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-08-2007, 07:47 AM
  7. highlighting problem in excel
    By bookkeeperiam in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2006, 07:40 PM

Tags for this Thread

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