Multiple Workbooks with misaligned rows

shendik

New Member
Joined
Aug 22, 2011
Messages
15
Following is the scenario: I have about 70 workbooks with monthly production data for about 700 products that I have to consolidate into one workbook for data analysis purposes. Since these workbooks have standard templates, I have to pull the same columns from each of these workbooks. I have already done this and all the data columns are placed side by side in the destination workbook. The issue is that over time some products are added or deleted in the different workbooks and therefore the rows for the items are not aligned.
So in the destination worksheet, the columns look something like this:
Column A: Item numbers from report 1
Column B: July orders for items in column A
Column C: Item numbers from report 2
Column D: August orders for items in column C
Column E: Item numbers from report 3
Column F: September orders for items in column E

But the issue is that, for example: Item #8007 maybe on row 4 in column A, whereas in column C it maybe on row 7.

I would like to compare the different monthly data for the products. As I am only interested in the products shown in the latest report, what I did was create a "sheet2" where column A had the most updated list of items. Next I created a macro that would pull hte order data from columns B, D, and F by vlookup for the appropriate items from sheet1. Although this worked great, with the sheer amount of data (370 columns and 700 row), the macros took about two hours to compute!

While my technique is working, I would like to know if anyone can suggest a more robust and efficient way to do this. Please let me know if you need any clarifications. Thanks!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,224,552
Messages
6,179,486
Members
452,917
Latest member
MrsMSalt

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