highlight duplicated values

INN

Board Regular
Joined
Feb 3, 2021
Messages
118
Office Version
  1. 365
Platform
  1. Windows
Hi I have 2 lists A and B, if a value in list B has a duplicated value in list A then I want to highlight that value either in A or B to different color. But this duplicated value in list B can have also duplicated value in the same column that I do not want to highlight. In the example below, I want to highlight 2 in List A because in list be i have 2. Is that possible? Thank you so much.


AB
1​
10​
2​
2​
3​
2​
4​
40​
5​
50​
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Select column A, then go to Conditional Formatting, select New Rule,. then "Use a formula to determine which cells to format" and enter this formula:
Excel Formula:
=COUNTIF($B:$B,A1)>0
Then choose your desired formatting style and color and click "OK".
 
  • Like
Reactions: INN
Upvote 1
Solution
Thank you. That works. Thanks a lot.
 
Upvote 0
You are welcome.
 
Upvote 0
Control select both the columns then go to conditional formatting and highlight duplicate values.
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,796
Members
449,095
Latest member
m_smith_solihull

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