How to Consolidate Hundreds of Excel Worksheets into a Time Series
Question details
The user needs to combine approximately 1,000 date-based Excel worksheets containing sewage treatment plant details into a single daily time-series dataset.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Consolidating massive amounts of daily worksheet data spanning multiple years into a single functional database or time-series table.
- Observed behavior
- The data is scattered across roughly 1,000 differently structured or individual sheets, making simple lookups ineffective for data analysis.
Before starting, ensure you standardize your column headings, remove all merged cells, and fill in blank row headers to make the data uniform across all sheets.
Combine Worksheets Using Power Query
Power Query is the most efficient and robust method for consolidating hundreds of worksheets without writing complex code.
To successfully append data from 1,000 sheets, the data structure across sheets must be uniform. Power Query can extract, transform, and load the scattered sheets into a single, clean receiving table.
Ensure there are no merged cells in your worksheets. Repeat identifier values (like plant names and capacities) on every row so each row is a self-contained record.
Open a new blank Excel workbook. This file will serve as the master time-series destination.
Navigate to the 'Data' tab on the ribbon. Click 'Get Data', then choose 'From File' > 'From Workbook' (if all sheets are in one file) or 'From Folder' (if they are saved as individual files).
Select the sheets you want to import and click 'Transform Data'. In the Power Query Editor, use the 'Append Queries' function to stack all worksheet data vertically into a single table.
Once the data is formatted into a continuous time series, click 'Close & Load' on the Home tab to output the consolidated data into your receiving sheet.

Automate Consolidation with a VBA Macro
Use Visual Basic for Applications (VBA) to loop through all worksheets and copy the data into a master sheet automatically.
Use WPS Spreadsheet to Consolidate Data
WPS Office offers robust data processing tools, including powerful macro support and seamless data consolidation features, making it easy to manage large datasets spanning thousands of sheets.
- 1. Open the Workbook: Launch WPS Spreadsheet and open your workbook containing the 1,000 date-based sheets.
- 2. Access Data Tools: Navigate to the 'Data' tab to utilize built-in consolidation features, or press ALT+F11 to open the WPS Macro Editor.
- 3. Execute Consolidation: Run your macro script to automatically extract and append the data from all individual worksheets into a unified master time-series table.

Frequently Asked Questions
Why shouldn't I use VLOOKUP to combine these sheets?
VLOOKUP or simple lookup formulas require a static, uniform structure and perform poorly when searching across 1,000 separate sheets. Appending data via Power Query or VBA creates a stable, flat database which is essential for proper time-series analysis.
Why do I need to remove merged cells before combining data?
Merged cells cause structural errors during data import, leading to null values, shifted columns, or broken records. Unmerging cells and repeating the data ensures every row acts as a complete, independent record.
Is there a limit to how many worksheets Power Query can combine?
Power Query can handle hundreds or even thousands of worksheets efficiently. The primary limitations are your computer's memory (RAM) and the standard spreadsheet limit of 1,048,576 rows per sheet. If your consolidated data exceeds 1 million rows, you may need to load the data directly into the Data Model instead of a worksheet.




