Conditional formatting for cells in Col A based on text on another cell (N1, N2, N3)

excelCM

New Member
Joined
Sep 6, 2014
Messages
3
Hi,

Col A has 5000 data points, what I want to do is to format a few data points based on the words that I type in another cell(s), in this case N1, N2, N3. Here's an example:

Col A:

baseball bats
unique engagement ring
cement and concrete
build new business
analyze unique ring tones


Considering these are the 5 data points on Col A, if I were to type the word "unique" in cell N1, I would like the format of cell A2 and A5 to change to 'light green' AND if I typed "ring" in N2, then I would want the cell A2 and A5 to change to "dark green" and if I were to type "tones" on N3, I would want the cell A5 to be turned to another darker shade of green or whatever. How do I do it?

I tried the Conditional formatting > New rules > use a formula to determine which cells to format and then used the formula - "=isnumber(search($n$1,$a$1:$a$5))=true, but doesn't seem to work..

This formula works for a single cell (when I checked "engagement", a2) but when I select a range..it didn't. I would really appreciate your response..please let me know if you have any clarifications...Thanks!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to MrExcel.

With A1:A5 selected and A1 the active cell:

=ISNUMBER(SEARCH($N$1,A1))

Dear Mr. Poulsom,

Thanks very much..the solution worked! (not on the same workbook though, so I copied and pasted the data on a new workbook and tried it)

Appreciate your help!
 
Upvote 0
Welcome to the MrExcel board!

Since Conditional Formatting ignores errors, you could trim Andrew's suggestion to the following and it should do the same job.

=SEARCH($N$1,A1)
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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