Using conditional formatting to highlight the row of a cell containing specific text.

Rikaaay

New Member
Joined
Mar 19, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. Web
Hi, as mentioned in the title, I'm trying to make a conditional formatting rule where if a cell contains a certain word (potentially in amongst other text in the same cell), the whole row of that cell will be highlighted. Unfortunately I cant quite get the formula right, so looking for suggestions (using excel web).

As an example, imagine that this is the table, and the word I want to find is "word".
1710872371414.png

This is the type of formula that I've been trying.
1710872438688.png

However that highlights the whole range instead of just the relevant row (I am trying to avoid having a separate rule for every row), and it ends up like this.
1710872545644.png

I would like it to show like this (see below) for any row containing "word".
1710873100313.png

Does anyone have any suggestions for a formula that would work?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
=ISNUMBER(SEARCH("word",cell to test,1))

in this example using column G as having "word"

for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
A2:D100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=ISNUMBER(SEARCH("word",$D2,1))

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

Book3
ABCD
1
2
3this is word form
4
5we have a word with all
6
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:D7Expression=ISNUMBER(SEARCH("word",$D2,1))textYES
 
Upvote 1
Solution
You need to remove the $ sign from between the D & the 2 so it's $D2
 
Upvote 1
Ah perfect, I'd tried removing the $from between the D & 2 with no luck, but I just needed the ", 1" adding on the end and is working now. Thanks all
 
Upvote 0
glad it worked - BUT that surprised me , as Fluff suggestion should have worked without the 1

Start_num: is the character number in Within_text, counting from the left, at which you want to start searching. If omitted, 1 is used.
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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