Conditional Format to match values from Sheet 2 to Sheet 1

chriscorpion786

Board Regular
Joined
Apr 3, 2011
Messages
108
Office Version
  1. 365
Platform
  1. Windows
Hi All,

How can I use conditional formatting to highlight Column B and Column C values to match the same from Sheet2 to Sheet1.
The values will be same, but I need to highlight in yellow matching values from Sheet2 to Sheet1 as per below.

Many thanks
Mustafa
1629987142476.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
countifs()
=Countifs(Sheet2!$A$2:$A$2000 , sheet1!$A2, Sheet2!$B$2:$B$2000 , sheet1!$B2, Sheet2!$C$2:$C$2000 , sheet1!$C2)>0

change the 2000 to whatever rows you need

sheet1
Book1
ABC
1DesctransVal
2123
3456
4456
5789
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:C5Expression=COUNTIFS(Sheet2!$A$2:$A$2000, $A2, Sheet2!$B$2:$B$2000, $B2, Sheet2!$C$2:$C$2000, $C2)>0textNO


Sheet2
Book1
ABC
1DesctransVal
2124
3456
4456
5783
Sheet2
 
Upvote 0
Solution

Forum statistics

Threads
1,214,594
Messages
6,120,436
Members
448,964
Latest member
Danni317

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