Consolidating multiple excel workbooks into one
Note: if you don't check Top row and Left column, Excel sums all cells that have the same position.
Click in the Reference box, select the range A1: E4 in the district1 workbook, and click Add. Repeat step 4 for the district2 and district3 workbook. Check Top row, Left column and Create links to source data.
For example each workbooks have columns from A to CL and each workbooks have the same heading only with varying number of rows in each documents.
I do not know vba and will try to learn at some point in time, I have been using codes from web to do some other minor automation with vba.
For instance, you have three sheets data as below screenshots shown, now you want to consolidate the average, max or min value of each product in each month, how can you do?
Consolidate data from multiple worksheets with Consolidate function Consolidate data from multiple worksheets with advanced Combine utility (1.)Select Select Combine columns under To combine selected cells according to following options;(2.)Specify a separator for the combined data, here I select Space;(3.))Specify the cell you want to place your combined result;(4.)Specify how you want to deal with the combined cells. Repeat step 3 to add all ranges you need to the All references list. See screenshot: This method is unconvenient, because you need to select ranges one by one, and if you need to consolidate data across workbooks, you need to name data range. If you have installed Kutools for Excel, you may find the Combine utility can help you quickly accomplish a consolidate report.Active Workbook Set temp File Dialog = Dialog(mso File Dialog File Picker) 'Allow the user to select multiple workbooks temp File Dialog. Selected Items(i) Set source Workbook = Active Workbook 'Copy each worksheet to the end of the main workbook For Each temp Work Sheet In source Workbook. However, they have one useful feature: Import a complete folder of documents.Allow Multi Select = True number Of Files Chosen = temp File Dialog. The requirements: The workbooks and worksheets you want to import have to be in the same format.Below you can find the workbooks of three districts. Before you start: if your worksheets are identical, it's probably easier to create 3D-references (if you have one workbook) or External References (if you have multiple workbooks) to consolidate your data. However, the beauty of the Consolidate feature is that it can easily sum, count, average, etc this data by looking at the labels.