Formula to find certain words in a longer phrase + color it?

attv

New Member
Joined
Mar 10, 2021
Messages
35
Office Version
  1. 2019
Platform
  1. Windows
Hi! What would be the formula to find certain words in a longer phrase + conditional color it?

I want to check if the company's websites (column E) match the name of the company (column D)

So an example from the picture. Gauss Labs should highlight the cell with the website gausslabs.ai as the website name contains that exact phrase

This will apply also to finding correct emails

I would appreciate help

EXCEL_jcFTUabHhXCEO_-_ExcelEXCEL.jpg
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
In future, better to give your sample data with XL2BB so that we can copy it to test with. :)

Try selecting E2:E? and apply Conditional Formatting with this formula rule

Excel Formula:
=ISNUMBER(SEARCH(SUBSTITUTE(D2," ",""),E2))
 
Upvote 0
I've noticed that the formula doesn't work with commas, so I've exchanged them for semicolons (don't know if that is acceptable)

=ISNUMBER(SEARCH(SUBSTITUTE(D2;" ";"");E2))

How can I make it apply to columns from E2 to J50?

(I've already highlighted those columns but, don't know how to change the formula)

I'm attaching the test excel table
 
Upvote 0
I've e noticed that the formula doesn't work with commas, so I've exchanged them for semicolons (don't know if that is acceptable)
Whether your formula works with commas or semicolons depends on your regional version of Excel - you have to decide.


How can I make it apply to columns from E2 to J50?
You have not made it clear what you mean by that
 
Upvote 0
I want to check if the company's websites (column E) match the contents of columns from D to J
 
Upvote 0
(column E) match the contents of columns from D to J
That doesn't make sense to me since column E is already in the D to J range.

What about a small set of sample data and expected results with XL2BB (so we can easily copy for testing) and explain again in relation to that new sample data?
 
Upvote 0
Ah, I messed up with column names. What I meant is ...

I want to check if the company's websites (column D) match the contents of columns from E to J

I already used your formula on each of the columns from E to J separately to format them, but it would be good to know how to format them all at once.
 
Upvote 0
Remove existing CF
Select from E2:J? and apply this formula rule

=ISNUMBER(SEARCH(SUBSTITUTE($D2;" ";""),E2))
 
Upvote 0

Forum statistics

Threads
1,213,559
Messages
6,114,302
Members
448,564
Latest member
ED38

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