Compare two xls file and copy matched data in to new row in second sheet

pop_rockstar

New Member
Joined
Jun 10, 2016
Messages
3
Hi all,

I have a requirement where I have to read two different xls files and compare the data in case found any match I have to populate the matched data on the next column in the second sheet.

sheet 1 (xls1)
------------------------
|Text | Replacement |
------------------------
| field1| replacement1|
------------------------
| field2|replacement2 |
------------------------

sheet 2(xls2)
--------------------------------------
Id |Text | Result |
---------------------------------------
1 | field1 | replacement1|
---------------------------------------
2 | field2 |replacement2 |
---------------------------------------
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Cell C2 on Sheet 2 of Book 2:

=VLOOKUP(B2,'{folder}\[{filename}]Sheet1'!$A$2:$B$3,2)

e.g.

=VLOOKUP(B2,'C:\Users\pop_rockstar\Documents\[Book1.xlsx]Sheet1'!$A$2:$B$3,2)

WBD
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

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