Compare two sets of numbers (each set has 6 columns of data)

rsmith72

New Member
Joined
Aug 29, 2014
Messages
1
I have two sets of data - Set 1 data is in Columns A-F. Set 2 data is in Columns H-M. Data is not in ascending order. In addition, Set 1 may have 100,000 rows, and Set 2 may have 50,000 rows.

I would like the VBA code to take the first row of Set 2 and compare it to all 100,000 rows in Set 1, and list the set of numbers from Set 1 that has the highest amount of matching numbers. Then go to second row of Set 2 and go through the same process, all the way down to Row 50,000 of Set 2. The output should be in Column O-U. In the event there are multiple rows of numbers from Set 1 that have an equal amount of matching numbers, it would be great if there is a way to show all of them.

Thanks in advance for any help in this matter. ;)
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,214,944
Messages
6,122,392
Members
449,081
Latest member
JAMES KECULAH

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