Comparing two worksheets to find the match including the duplicates

nike

Board Regular
Joined
Feb 12, 2008
Messages
113
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have two worksheets that i'd like to compare the IDs to find the match including the duplicates. IDs in Sheet1 will be compared to a queried data with IDs in Sheet2. If it's possible if there's a code that can make this compare, create a tab labeled Matched including the duplicates, another tab labeled No match IDs from Sheet1 that didn't match to Sheet2, and lastly a tab that matched the IDs but has no duplicate IDs. Thank you!

Here's an example of the worksheets.

SHEET1
IDS

*A
1ID #
20188370
30283750
40299950
50316740
60416500
70538620
80543610
90554670
100556410
110572240
120724270

<COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 64px"></COLGROUP><TBODY>
</TBODY>


Excel tables to the web >> Excel Jeanie Html" target="_blank"> Excel Jeanie HTML 4

SHEET2

TOAD QUERY

*ABCDEFGHIJKLMNOPQ
1ID #YRTOSBRCOTERMSTATUSWAGE 1WAGE 2WAGE_3TAX 1TAX 2YTD YTD 2YTD 3YTD 4YTD 5
20188370060000046S26 A33225.5022136.5000032503.0222136.50
30188370060000046A01A10.2010.2000025332253320
40188370060000047A02A2.502.5000023.223.20
50188370060000048A01A23202320000221122110
60188370060000045A01A212302123000022235222350
702837501333333BSJ0X A0000000000
802837501333333CSJ0X A0000000000
902999501433333729HQ A37961.53095000256.50037189.3995000
1003167401433333RWMVG A11538.42095000256.50011538.4295000
110416500143333346SCB A0000000000
1205386201300000A0DN3 FI0000000000
1305386201300000A0DN3 FI0000000000
1405386201300000A0DN3 FI0000000000
150543610130000070WWD A5949.32000000000
160543610130000070WWD A5949.32000000000
1705546701003300STNML6A0000000000
180556410110333372MSV A0000000000
190572240103333380AQD I00000*****
2007242701433333R2I34 A3333.3403333.34090003333.343333.340
210724610 * 1100333153ML A388389.810251990.8606803.7500394163.06251990.860
220724610 * * 143333315E2X A17561.48095000256.50017561.4895000
230724680 *1499999159O2 TA00000*****
24APPLFOR042546583 140333346FH2 A00000*****
25APPLFOR043103733 093000046C4C A15759000000000

<COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 62px"><COL style="WIDTH: 23px"><COL style="WIDTH: 47px"><COL style="WIDTH: 28px"><COL style="WIDTH: 51px"><COL style="WIDTH: 41px"><COL style="WIDTH: 64px"><COL style="WIDTH: 81px"><COL style="WIDTH: 67px"><COL style="WIDTH: 81px"><COL style="WIDTH: 41px"><COL style="WIDTH: 74px"><COL style="WIDTH: 35px"><COL style="WIDTH: 46px"><COL style="WIDTH: 79px"><COL style="WIDTH: 79px"><COL style="WIDTH: 41px"></COLGROUP><TBODY>
</TBODY>


Excel tables to the web >> Excel Jeanie Html" target="_blank"> Excel Jeanie HTML 4
 
nike,

I do not understand.

And, I have far exceeded the normal amount of time I allocate for solving problems/requests from web sites like MrExcel.

Click on the Reply to Thread button, and just put the word BUMP in the thread. Then, click on the Post Quick Reply button, and someone else will assist you.
 
Last edited:
Upvote 0

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.

Forum statistics

Threads
1,214,787
Messages
6,121,561
Members
449,038
Latest member
Guest1337

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