Consolidating multiple excel files into one

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.

Fortunately, Excel includes a feature that allows you to do this very process—the Consolidate tool. Select ' copy cells selected in the new sheet on last line Selection. This tip (3005) applies to Microsoft Excel 97, 2000, 2002, and 2003. Count ' from sheet 2 to last sheet Let Worksheets(1).

The Consolidate tool allows you to combine worksheets where data is defined by position or by category. You can find a version of this tip for the ribbon interface of Excel (Excel 2007 and later) here: Condensing Multiple Worksheets Into One.

You can configure the following settings: Create a new worksheet for each file, or merge the data into one new sheet.

With this second option the data from the files will be placed below each other.

You can also use it to import multiple files at once into your workbook. It can therefore be time consuming and frustrating if you for example need to import or merge 200 Excel or CSV files.

You can use Excel's Consolidate feature to consolidate your worksheets (located in one workbook or multiple workbooks) into one worksheet. If you check Create links to source data, Excel creates a link to your source data (your consolidated data will be updated if your source data changes) and creates an outline.

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.

I can use either Excel 2010 or Excel 2013 for this task.

I have dozens of workbooks with data on the first worksheet of each.