Find duplicates based on Col A and Col B

fdiddy

New Member
Joined
Nov 20, 2012
Messages
43
Hi All,
In the below example i need to base duplicates on Col A & Col B and then if it is a duplicate, mark it with Germany in this case but this value will be different in a larger dataset.

A macro would be ideal if its possible - thanks all

CountrySKU TypeSKU NumSKU Ex. Name
GermanyA. CPU12345-AIntel 9th Gen Core i5-9400H
GermanyB. RAM12345-B8GB, 1x8GB
GermanyC. Storage12345-C256GB SSD
GermanyC. Storage12345-DNo Additional Hard Drive
GermanyD. Battery12345-E68Whr
GermanyE. Screen12345-F15.6" FHD Anti-Glare Non-touch
GermanyF. WLAN Card12345-GIntel Dual Band Wireless AC 9560
GermanyF. WLAN Card12345-H Drivers for Intel 9560
GermanyG. OS12345-IWindows 10 Pro
GermanyG. OS12345-JNo Media
GermanyJ. Keyboard12345-KInternal German
GermanyK. Palmrest / Fingerprint12345-LPalmrest Thunder


CountrySKU TypeSKU NumSKU Ex. NameDuplicate Record
GermanyA. CPU12345-AIntel 9th Gen Core i5-9400H
GermanyB. RAM12345-B8GB, 1x8GB
GermanyC. Storage12345-C256GB SSDGermany
GermanyC. Storage12345-DNo Additional Hard DriveGermany
GermanyD. Battery12345-E68Whr
GermanyE. Screen12345-F15.6" FHD Anti-Glare Non-touch
GermanyF. WLAN Card12345-GIntel Dual Band Wireless AC 9560Germany
GermanyF. WLAN Card12345-H Drivers for Intel 9560Germany
GermanyG. OS12345-IWindows 10 ProGermany
GermanyG. OS12345-JNo MediaGermany
GermanyJ. Keyboard12345-KInternal German
GermanyK. Palmrest / Fingerprint12345-LPalmrest Thunder
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
=countifs(A:A,A2,B:B,B2)>1

=IF( countifs(A:A,A2,B:B,B2)>1, "Germany","")
OR if you want A to be the output
=IF( countifs(A:A,A2,B:B,B2)>1, A2,"")
 
Upvote 0

Forum statistics

Threads
1,225,218
Messages
6,183,644
Members
453,177
Latest member
GregL65

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