• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Search list, locate highlight (VBA)

mdvr

New Member
Good day,


I have a list of key words in column A (134 of them) i.e. "Red roses, Black car, etc" and I am looking to paste a range of data (text) in column B.


What I'm looking to accomplish is the ability to locate and highlight the cell within Column B that would contain the specific words "Red roses, black car, etc" that are located in the list on column A.


In the event "car, black, Red etc" are located in B, the script would skip these.


Any quidance or assistance is greatly appreciated.
 
Hi,


You do not need VBA, you could use CONDITIONAL FORMATTING.


You could put the following in the formula in the Conditional Formatting, note that A1 is not absolute


=MATCH(A1,$B$1:$B$137,0)>0
 
Hi,


The above highlights the cell in Column A, but you could use the same logic to format column B.
 
Back
Top