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
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
"...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))
 
Upvote 0
Thank you,

Sorry, I should have been more clear. I need it to search the entire column of 'N' for match if possible.
 
Upvote 0
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:
Upvote 0
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'.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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