Conditional formatting

crag8119

New Member
Joined
Mar 25, 2014
Messages
38
I am trying to highlight rows in if the values in column C and D contain an exact value from column ‘N’.

The Values in column are like below:
R1179555
R1180259
R1789852

So, if any rows in column C or D contain any of the exact values in column ‘N’ highlight the row.
For example: Value R1180259_hY88 exists in column ‘C’, as ‘R1180259’ exists in column ‘N’ highlight it.

Thank you
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,350
"...trying to highlight rows in if the values in column C and D contain an exact value from column ‘N’."

On the same row, yes? That is, given a row, if the value in N is in column C or D of that row then highlight the row?

Select the range to highlight

Conditional Formatting
New Rule
Use a formula to determine...

=ISNUMBER(SEARCH($N1,$C1))+ISNUMBER(SEARCH($N1,$D1))
 

crag8119

New Member
Joined
Mar 25, 2014
Messages
38
Thank you,

Sorry, I should have been more clear. I need it to search the entire column of 'N' for match if possible.
 

Special-K99

Well-known Member
Joined
Nov 7, 2006
Messages
8,350
Highlight the rows from where to where?

OK

Code:
Col C   Col D   Col N
ABC     JKL     B
DEF     MNO     H
GHI     PQR     K

So what should be highlighted?

ABC, B is in column N
GHI, H is in column N but on a different row
JKL, K is in column N but on a different row
 
Last edited:

crag8119

New Member
Joined
Mar 25, 2014
Messages
38
Thanks,

So row with ABC & JKL would be highlighted as B & K exists in column 'N', Row with GHI would be highlighted as 'H' exists in column 'N'.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,158
Messages
5,594,590
Members
413,915
Latest member
namreh

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
Top