Find Colum A Text and if this text in Colum A cells contains in Coumn B then Highlight either Colum A or Colum B

kumail

New Member
Joined
Feb 25, 2023
Messages
6
Office Version
  1. 2010
Platform
  1. Windows
In Excell i have one word in each cell of Colum A, I have Multiple words in each cell of Column B. I want to identify if colum A Cells text is contained in Column B Cells then either highlight Particular cells of colum A or colum B so that i can identify those cells in which Colum A one word cell is present in Colum B multiple words cell. if there is any formula through which i can highlight particular cells of Either Column A or Colum B if colum A one word Text is conatins in colum B multiple word text. Thanks and awaiting for response
incase if could not make my query clear i further explain that in colum A we have title of shope names only. and in colum B we have complete shop address alongwith shop name. i want to identify or highlight the cells of same stores in column A and Colum B. Please Help
 

Attachments

  • Excel Formula Question.jpg
    Excel Formula Question.jpg
    92.3 KB · Views: 12

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to the MrExcel board!

Would this conditional formatting work for you?

23 02 25.xlsm
AB
1catfive cats
2dogmouse and rat
3horsecow and pig
4pig
5the dog chased the cat
6the sheep scattered
7
8
9
10
CF Matching Words
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B10Expression=AND(B1<>"",COUNT(SEARCH(" "&A$1:A$10&" "," "&B1&" ")))textNO
A1:A10Expression=AND(A1<>"",MATCH("* "&A1&" *"," "&B$1:B$10&" ",0))textNO
 
Upvote 0
Welcome to the MrExcel board!

Would this conditional formatting work for you?

23 02 25.xlsm
AB
1catfive cats
2dogmouse and rat
3horsecow and pig
4pig
5the dog chased the cat
6the sheep scattered
7
8
9
10
CF Matching Words
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B10Expression=AND(B1<>"",COUNT(SEARCH(" "&A$1:A$10&" "," "&B1&" ")))textNO
A1:A10Expression=AND(A1<>"",MATCH("* "&A1&" *"," "&B$1:B$10&" ",0))textNO
Thanks Peter for your help. just one last thing could you please tell me where to put these formulas (=AND(B1<>"",COUNT(SEARCH(" "&A$1:A$10&" "," "&B1&" ")))) in conditional formating in New Rule or where. Once again i am very thanksful for your kind help that exactly what i need the image you shown containing cat dog and pig in the image. thanks
 
Upvote 0
could you please tell me where to put these formulas
For your sample data in the post #1 image
  • Select A1:A8 (or a larger range if more data might be added later)
  • Home ribbon tab -> Conditional Formatting -> New rule ... -> Use a formula to determine which cells to format -> Format values where this formula is true:- =AND(A1<>"",MATCH("* "&A1&" *"," "&B$1:B$25&" ",0)) -> Format... -> Fill tab -> Choose your colour-> OK -> OK
    If you have, or might later have, more data in column B than to row 25 then make that red range in the formula larger, it won't hurt.

  • Now select B1:25 (or a larger range if more data might be added later)
  • Home ribbon tab -> Conditional Formatting -> New rule ... -> Use a formula to determine which cells to format -> Format values where this formula is true:- =AND(B1<>"",COUNT(SEARCH(" "&A$1:A$8&" "," "&B1&" "))) -> Format... -> Fill tab -> Choose your colour -> OK -> OK
    If you have, or might later have, more data in column A than to row 8 then make that blue range in the formula larger, it won't hurt.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top