Macro to copy data from one spreadsheet to another by looking up ID's

Nikolay

New Member
Joined
May 24, 2011
Messages
1
Hi,
I am looking to create a macro which would look into 2 different excell spreadsheets and update one with information from another.

These spredsheets have different formatting and will always be different as they are generated by different sources however both of the contain data which is related to unique ID numbers. The data is stored in rows

Spreadsheet A

contains

ID Column, Cost Column and many others

Spreadsheet B

contains

ID Column, Target Column

I need to take Cost info from Spreadsheet A based on ID into Target Column (into correct Row) in spreadsheet B replacing the value there with cost data in following format ( 'data )

Understanding that these columns will differ from spreadsheet to spreadsheet I would like macro to prompt to specify target columns and then gather data from the same row where ID have matched.

Could anybody provide pointers in terms of how to approach this problem?

Regards
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,224,587
Messages
6,179,735
Members
452,939
Latest member
WCrawford

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