Alternative to Conditional Formatting

thommo14

New Member
Joined
Feb 17, 2010
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
G'day

I have been using Conditional Formatting > Highlight Cell Rules to highlight unique names when comparing two columns. The two columns represents current employees vs previous employees. The amount of data in these columns is huge.

I have run into an issue where there are people on the lists with the same name, so this won't be highlighted. Is there an option to compare columns row by row and have the unique entries highlighted?

Apologies if I haven't made clear what I'm attempting to achieve.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You are right, it isn't quite clear. If they have the same name, they shouldn't be highlighted, according to your unique rules requirement.
I do not understand the logic/circumstances under which certain duplicates should be highlighted.

Can you post some sample data to show us BOTH situations, and based on the logic, explain exactly how we can determine the difference from the data posted?

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Thanks for the reply. I will try to simplify:

I want to compare each row in two columns and have the unique data highlighted.
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’). The newer version of Excel have a COUNTIFS function that could be used here, depending on which version of Excel you have.
 
Upvote 0
Here is an example using COUNTIFS in a Conditional Formatting formula:
1684938184551.png


I selected the range A2:B7, and then used this Conditional Formatting formula:
Excel Formula:
=COUNTIFS($A$2:$A$7,$A2,$B$2:$B$7,$B2)=1
and chose the yellow highlighting option.
 
Upvote 0

Forum statistics

Threads
1,215,341
Messages
6,124,391
Members
449,155
Latest member
ravioli44

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