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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,216,100
Messages
6,128,824
Members
449,470
Latest member
Subhash Chand

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