compare two columns and highlight the matches

assino

New Member
Joined
Sep 10, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
Hello everyone


i'm searching how to Compare two columns and highlight matches
there is many different ways but what i want is to highlight one cell if there is only 1 cell that contains the same value on the other column
for example :
if there is 2 cells that contains "x" in column 1, and 3 "x" in column 2, i want to highlight two cells in each column,
what i want as result that the sum of highlighted cells in A = to the highlighted cells in B.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hi & welcome to MrExcel.
How about
+Fluff New.xlsm
AB
1
2AM
3BD
4CI
5DP
6RQ
7FR
8GS
9RT
10II
11JD
12DW
13LX
Master
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B13Expression=COUNTIFS(B$2:$B2,B2)<=COUNTIFS(A$2:A$13,B2)textNO
A2:A13Expression=COUNTIFS(A$2:$A2,A2)<=COUNTIFS(B$2:B$13,A2)textNO
 
Upvote 0
Hi & welcome to MrExcel.
How about
+Fluff New.xlsm
AB
1
2AM
3BD
4CI
5DP
6RQ
7FR
8GS
9RT
10II
11JD
12DW
13LX
Master
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B13Expression=COUNTIFS(B$2:$B2,B2)<=COUNTIFS(A$2:A$13,B2)textNO
A2:A13Expression=COUNTIFS(A$2:$A2,A2)<=COUNTIFS(B$2:B$13,A2)textNO
Hi,
thanks for replying that was very helpful :)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,858
Messages
6,121,956
Members
449,057
Latest member
FreeCricketId

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