Copy if match from another workbook

hubba

Board Regular
Joined
Jun 21, 2005
Messages
104
Hi All,
Been trying to do the following,
I have a workbook called RollerTemplate and I would like to set up the other workbooks to check this RollerTemplate workbook when the macro is run. The template has about 1500 entries in the Columns, Column A would be the Matching Column and then Columns B to F would have the data needed to be copied across in to the other workbooks.

Basically the other work books are quotes for products, I am wanting it to run a macro against column D12 to D24 this would MATCH these part numbers against the template workbook in Column A then it would copy the data in to J13 to N13 from Columns B1 to F1 where the match is located.

Also would like it in a Button, but i think i just need to copy the macro in to the button properties?

Have tried MATCH and a few others but can not get it to work.

Thanks
Hubba
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Hi
vlookup can help you.
J13 = vlookup(D13, [rollertemplate.xls]sheet1!$A$1:$a$1500,2,FALSE)
K13 = vlookup(D13, [rollertemplate.xls]sheet1!$A$1:$a$1500,3,FALSE)
L13 = vlookup(D13, [rollertemplate.xls]sheet1!$A$1:$a$1500,4,FALSE)
Extend 2,3,4 upto 6(N13).
Ravi
 
Upvote 0

Forum statistics

Threads
1,215,032
Messages
6,122,770
Members
449,095
Latest member
m_smith_solihull

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