Conditional Formatting

Opgelost

New Member
Joined
Dec 6, 2014
Messages
44
Dear superusers,

I would like to use conditional formatting with a formula to do the following:

Color all cells red in SHEET 1, COLUMN A if it contains data which is NOT included in SHEET 2, COLUMN A.

Thanks very much!

Opgelost
(The Netherlands)
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
In Sheet 1, Column B, use a MATCH formula : =MATCH(A1,Sheet2!$A$1:$a$10,0) - adjust range to match your data
copy this formula next to all cells with data on Sheet 1.
in your conditional formatting, create a New rule, use a formula to determine which cells to format.
your formula in the conditional formatting box will be =ISERROR($B1)
Format Red
Copy this formatting to all applicable cells.
 
Upvote 0
Another option:

Select Sheet1, column A. Click Conditional Formatting > New Rule > Use a formula > and enter:

=AND(A1<>"",COUNTIF(Sheet2!$A:$A,A1)=0)

Click Format... and choose your fill color.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,161
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