Compare two columns, highlight matches

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Sorry don't know what you may be doing wrong, since this works just fine with me..

AB
1
2abc@gmail.comyst@gmail.com
3ghs@gmail.comyur@gmail.com
4yag@gmail.comabc@gmail.com
5yur@gmail.comtri@gmail.com

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1



The steps I'm taking are:

Select a cell (A1) (also tried with all cells)
Conditional Formatting
New Rule...
Use a formula to determine which cells to format
Put in: =NOT(COUNTIF($A$2:$A$5,B2))
Press 'OK'

Is there anything that I'm doing wrong?
 
Upvote 0
Yes, it does, I just put in the headers 'EMAIL1' and 'EMAIL2' for testing purposes. I also tried it with the sample data in my first post.
 
Upvote 0
Select a cell (A1) (also tried with all cells) select the range i said, in this case from A2:A5, then
Conditional Formatting
New Rule...
Use a formula to determine which cells to format
Put in: =NOT(COUNTIF($A$2:$A$5,B2))
Format
Fill
Press 'OK'

Please note that if your data is from A1:A4 select A1:A4 and just have to adapt formula to:

=NOT(COUNTIF($A$1:$A$4,B1))
 
Upvote 0
I can't access the file for some reason, it just redirects me to my home folder on Dropbox.
 
Upvote 0
Okay, that one works.

EDIT:
I wonder what I'm doing wrong, I've tried doing this following the previous steps I outlined before on two different computers. I might just have to do this manually if nothing else works.
 
Last edited:
Upvote 0
Yes, for some reason even though it's the same rule, I'm getting a different result on mine.

This is yours:
olBmQ3G.png


This is mine:
SzX1upL.png
 
Upvote 0

Forum statistics

Threads
1,215,516
Messages
6,125,286
Members
449,218
Latest member
Excel Master

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