Comparing 2 datasets with matching items

nevillestoke

Active Member
Joined
Mar 6, 2002
Messages
252
I have searched the Board for something similar, but with no luck. I have two sets of data from different sources, but with matching fields. I need to compare the lists each month in order to match items for my bank reconciliation. I can do this by sorting and using the "Exact" function, but this is quite cumbersome contains more than 7,000 records per month. I think VBA code should be able to accomplish this quite quickly, but I have not found anything to work. I am uploading the sample data (which has been modified to remove names), and the items I am trying to match would be the Date, Customer Number and Amount. If there are items that do not match these three elements, the details should be reported on a separate tab. In the sample data, the first data set is column A to P and the second set is column R to Y. One example of a "non-match" would be the data in Row 8.

Excel Workbook
ABCDEFGHIJKLMNOPQRSTUVWXY
1BANKSERIALLINETRANSTYPETYPEIDREMITDATEREMITBTCHNBRENTRYNBRPOSTSEQREFERENCEPAYORIDPAYORNAMESRCEAMOUNTPAYMCODESRCEDOCNUM*CurrencyTransactionDateOrderIDCustomerIDEchoDataCardTypeTransactionCodeAmount
2CIBC * *1125122718201604011111680549325Customer 1* * * * * * *134.30VI * * * * *PP000001 * * * * * * **CAD2016-04-01 0:00:0047025149325[49325] John Q. CustomerV27* *134.30
3CIBC * *122512273220160401121197057727Customer 2* * * * * * * *72.26MC * * * * *PP000002 * * * * * * **CAD2016-04-01 1:10:0047025257727Customer 57727M27* * *72.26
4CIBC * *1325122733201604011317831748820Customer 3* * * * * * * *99.32VI * * * * *PP000003 * * * * * * **CAD2016-04-01 5:29:0047025348820Customer 48820V27* * *99.32
5CIBC * *1425122734201604011412067957793Customer 4* * * * * * * *72.26VI * * * * *PP000004 * * * * * * **CAD2016-04-01 5:34:0047040557793Customer 57793V27* * *72.26
6CIBC * *1525122735201604011519531160399Customer 5* * * * * * * *72.26VI * * * * *PP000005 * * * * * * **CAD2016-04-01 6:23:0047040660399Customer 60399V27* * *72.26
7CIBC * *16251227362016040116148970057218Customer 6* * * * * * * *72.26VI * * * * *PP000006 * * * * * * **CAD2016-04-01 6:29:0047040757218Customer 57218V27* * *72.26
8CIBC * *1725122737201604011716322035618Customer 7* * * * * * *132.09MC * * * * *PP000007 * * * * * * **CAD2016-04-01 6:32:0047040851281Customer 51281V27* * *68.95
9CIBC * *18251227382016040118104897Z * * * * * * * * * * * * * * * * * * * * * * * * * * *14691Customer 8* * * * * * * *72.26MC * * * * *PP000008 * * * * * * **CAD2016-04-01 6:38:0047040914691Customer 14691M27* * *72.26
10CIBC * *19251227392016040119108046Z * * * * * * * * * * * * * * * * * * * * * * * * * * *47919Customer 9* * * * * * * *72.26MC * * * * *PP000009 * * * * * * **CAD2016-04-01 6:39:0047041047919Customer 47919M27* * *72.26
11CIBC * *110251227402016040111017037553630Customer 10* * * * * * * *72.26VI * * * * *PP000010 * * * * * * **CAD2016-04-01 6:42:0047041153630Customer 53630V27* * *72.26
12CIBC * *111251227412016040111112263553424Customer 11* * * * * * * *99.32VI * * * * *PP000011 * * * * * * **CAD2016-04-01 6:44:0047041253424Customer 53424V27* * *99.32
13CIBC * *110325122980201604011103101269Z * * * * * * * * * * * * * * * * * * * * * * * * * * *45241Customer 250* * * * * * * *57.59MC * * * * *PP000103 * * * * * * **CAD2016-04-01 13:47:0047052345241Customer 45241M27* * *57.59
14CIBC * *110425122981201604011104140154659704Customer 251* * * * * * * *67.15VI * * * * *PP000104 * * * * * * **CAD2016-04-01 13:47:0047052559704Customer 59704V27* * *67.15
15CIBC * *110525122982201604011105141222751436Customer 252* * * * * * * *72.26VI * * * * *PP000105 * * * * * * **CAD2016-04-01 13:54:0047044151436Customer 51436V27* * *72.26
16CIBC * *11062512298320160401110617947560894Customer 253* * * * * * * *72.26MC * * * * *PP000106 * * * * * * **CAD2016-04-01 13:59:0047052760894Customer 60894M27* * *72.26
17CIBC * *110725122984201604011107142763532506Customer 254* * * * * * * *72.26VI * * * * *PP000107 * * * * * * **CAD2016-04-01 14:04:0047052932506Customer 32506V27* * *72.26
18CIBC * *11082512298520160401110818744760895Customer 255* * * * * * * *67.26VI * * * * *PP000108 * * * * * * **CAD2016-04-01 14:06:0047053060895Customer 60895V27* * *67.26
19CIBC * *281251231502016040228121142160925Customer 395* * * * * * * *54.31VI * * * * *PP000245 * * * * * * **********
20CIBC * *282251231512016040228221148460925Customer 396* * * * * * * *54.31VI * * * * *PP000246 * * * * * * **********
SAMPLE
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,215,483
Messages
6,125,064
Members
449,206
Latest member
Healthydogs

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