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

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
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
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.


it works! Thanks!
 
Upvote 0

Forum statistics

Threads
1,216,474
Messages
6,130,841
Members
449,598
Latest member
sunny_ksy

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