Index match/vlookup vba

Robi87

New Member
Joined
Jun 6, 2018
Messages
1
Hi.

I am looking for VBA code what will do the follows.

I have 2 excel .xlsx workbooks.

First one is containing lets say 11 columns and second is 9 columns with all data.
These are all shipments with a shipment number. On first workbook there is 2 extra columns what I like to copy to workbook2 with VBA button click if the column B cell value is matching for that raw otherwise do nothing.

Example:

Workbook 1.
Location (C:\Users\.......)

Cell B1 value: 123456
Cell N1 value: Shipped on 01-06-2018

Workbook 2.
Location (C:\Users\......)

Any cell in Column value is: 123456
THEN
Copy corresponding raw N column value to this workbook.

If the number does not exists in workbook 1 then go to next raw until A raw is empty.

Thank you so much for the help.
Robert
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,223,900
Messages
6,175,276
Members
452,629
Latest member
SahilPolekar

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