INDEX and MATCH, combining different excel files

Soaph

New Member
Joined
Jun 17, 2018
Messages
1
Hi,

I hope someone can help me with this since I really can't seem to get it right.

I have two excel files in the same folder. Both of them contain customer numbers and one also some additional information to this number. I want to first see if the customer number exist in the other file and if so add the infoo from that row in the other file.

To clarify:

Excelfile 1: Have Customernr.
Excelfile 2:Have Customernr + four columns with info in stringform, i.e can be both text and numbers.

If the numbers match i want to add in Excelfile 1 the info from the four cells from the four columns from Excelfile 2 next to the Customer number.

I tried to use: =INDEX([test.xlsx]Blad1!$B$2:$B$569;MATCH(G2;[test.xlsx]Blad1!$A$2:$A$569;0); 2) and then my idea was to repeat this formula four times to recieve one row. However this does not work.

Have anyone an idea what could work?

I would be forever grateful!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,223,911
Messages
6,175,326
Members
452,635
Latest member
laura12345

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