Compare 2 lists - Conditional Formatting

healey21

Well-known Member
Joined
Dec 22, 2009
Messages
900
Hello all I have been asked to compare 2 lists to find entries that have either the same code or name or value and highlight both entries.

Example in the list below 3 columns codes name and amount. I have coloured each entry manually which matches. How can I do this with conditional formatting or VBA. There are over 75 thousand rows to check.

[
Excel Workbook
ABCDEFG
1List 1List 2
2CodeNameAmountCodeNameAmount
3DE001H Hll34SE001J Waters345
4DE002M Brown56SE002T Hanks45.9
5DE003Sarah Smith78SE003J Clarskon34
6DE004John Jones100DE012R Hammond298
7DE005J Jones122SE005O Wilde780.12
8DE006K Laws144SE006H Hll34.23
9DE007O Wynn166SE007C Manors232
10DE008S James188SE008S Harvey123
11DE009C Warnes210SE009K Laws1
12DE010L Parry232SE010A Jones789.9
13DE011A Ball254SE011Anne Kellowing12.45
14DE012M Smith276DE007S James144
15DE013D Norman298SE013C Warnes56
16DE014J Allan320SE014D Clarke386
17DE015F Western342SE015T Green678
18DE016B Graham364SE016A Ball65.98
19SE015O Wilde386SE017D Norman5.9
Sheet1

/QUOTE]
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
highlight A3:C1000 or the last row you need and enter the below as your conditional formatting formula


=COUNTIF(E$2:E$1000, A3)>0


Highlight E3:G1000 or the last row you need and enter the below as your conditional formatting formula

=COUNTIF(A$2:A$1000, E3)>0



Do you need each of the 3 different comparisons to have different colours, if so instead of highlighting all 3 columns in one go you can do one at a time to select a different colour or edt after doing the above
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,052
Messages
6,128,509
Members
449,455
Latest member
jesski

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