compare/combine data from two worksheets into one

beancounter

Board Regular
Joined
Oct 30, 2002
Messages
111
I have 20,000 records in sheet 1 & the roughly the same amount in sheet 2. Both sheets 1 & 2 have a common field "account number".

On sheet 3, I want to look at both sheets 1 & 2, compare account number and where account numbers match up return the data (in various columns) from both sheets 1 & 2. What is the best way to do this?????

Thanks,
John
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
You need to use VLOOKUP, if your account number is to the left of the rest of the data. If it isn't, you can use an INDEX/MATCH combination.

So here's a simple example, because it's not very clear exactly what information you want:

Excel Workbook
ABCDEFG
1Account NumberDateBalanceAccount NumberDateBalance
2101005/21/2008415.22101005/21/2008415.22
3102005/22/2008316.81105006/4/2008944.15
4103007/6/2008682.18108006/29/2008566.12
5104006/21/2008768.91
6105006/4/2008944.15
7106005/21/2008819.63Account NumberDateBalance
8107005/19/2008336.74102005/22/2008316.81
9108006/29/2008566.12103007/6/2008682.18
10109005/31/2008517.34109005/31/2008517.34
Sheet1
 
Upvote 0
Sorry for being vague - here's the layout

Sheet 1 Column a = Account # / Column b = Cust Name / Column c = Cust Address
Sheet 2 Column a = Account # / Column b = Amt Due / Column c = Due Date

Result I want

Sheet 3 Column a = Account # / Column b = Cust Name / Column c = Cust Address / Column d = Amt Due / Column e = Due Date

Not all account #'s are included on both sheets 1 & 2 because of new accounts, closed accounts etc. Just want to return data where both exist.

Thanks,
John
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,917
Members
449,093
Latest member
dbomb1414

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