merging data from one excel doc into another excel doc

austin350s10

Active Member
Joined
Jul 30, 2010
Messages
321
Hello, I have 2 excel documents with the following structure:

Doc 1:
Column A(ID), Column B(empty)
2
1
3
1
2

Doc 2:
Column A(ID), Column B(data)
1 , data1
2 , data2
3 , data3

What I'm attempting to do is take the data from Column B in Doc2 and place it in Column B of Doc 1 where the ID from Column A matches between both documents. When completed I'd like Doc 1 to look this this:


Column A, Column(B)
2 ,data2
1 ,data1
3 ,data3
1 ,data1
2 ,data2

Any suggestions on how I can do this?
 

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.
You could use a Vlookup formula something like
=VLOOKUP(A2,'C:\MrExcel\[+Formulae.xlsx]Orders'!$A$2:$B$9,2,0)
change the path,filename & sheet name to suit
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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