How to Consolidate Data from Multiple Excel Tabs Using Power Query
Question details
The user wants to combine issue data from several location worksheets into a single, automatically updating report instead of manually maintaining multiple PivotTables.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Consolidating data across multiple tabs to count modification categories by fiscal year and month.
- Observed behavior
- Currently maintaining multiple PivotTables manually, seeking an automated consolidation method.
Ensure that all the location worksheets you want to consolidate have identical column headers and data structures before importing them into Power Query.
Consolidate and Transform Data Using Power Query
Use Power Query to append multiple location tables, unpivot categories, and load the consolidated data into a single PivotTable.
Power Query is the most efficient way to combine multiple worksheets. By creating a standardized connection to your data, you avoid the need to manually copy and paste new entries.
Unpivoting your modification categories during this process normalizes your data, making it perfectly structured for PivotTable analysis.
Format the data in each location tab as an official Excel Table by pressing Ctrl+T. Ensure all column headers match exactly across every table.
Go to the 'Data' tab, select 'Get Data', then 'From Other Sources' > 'Blank Query', or load each table individually using 'From Table/Range'.
In the Power Query Editor, use the 'Append Queries' feature on the Home ribbon to combine all the location tables into a single master table. Add a custom 'Location' column if needed to identify the source tab.
Select the Modification Category columns, right-click the headers, and choose 'Unpivot Columns' to normalize your data for easier counting.
Select the 'PCR Date' column, click the data type icon in the column header, and change it to 'Date' to ensure accurate fiscal year and month grouping.
Click 'Close & Load To...' on the Home tab, select 'PivotTable Report', and check 'Add this data to the Data Model' to create your final, automatically updating report.

Consolidate Multiple Worksheets Easily in WPS Office
WPS Spreadsheet provides powerful built-in tools like 'Consolidate' and 'PivotTable' to help you combine data from multiple tabs and generate dynamic reports effortlessly.
- 1. Open your Workbook in WPS: Launch WPS Spreadsheet and open the workbook containing your multiple location tabs.
- 2. Use the Consolidate Tool: Navigate to the 'Data' tab and click on 'Consolidate'. Choose the function you need, such as Sum or Count.
- 3. Add References: Click the reference box, select the data range in your first location tab, and click 'Add'. Repeat this process for all other location tabs you wish to combine.
- 4. Create a PivotTable: For more dynamic reporting, go to the 'Insert' tab, select 'PivotTable', and choose your newly consolidated data range to build a custom report.

Frequently Asked Questions
Why are my columns not aligning when appending tables in Power Query?
Power Query appends data based on exact column header names. If your columns are not aligning, check for typos, trailing spaces, or case sensitivity differences in the headers across your location tabs.
How do I group my PivotTable by fiscal year and month?
After loading your standardized data into a PivotTable, drag the Date field into the Rows area. Right-click any date in the PivotTable, select 'Group', and choose 'Months' and 'Years'. You may need to create a custom calculated column in Power Query for fiscal years if they do not align with the standard calendar year.
Does the consolidated report update automatically when I add new data?
It does not update instantly on its own. You must go to the Data tab and click 'Refresh All', or right-click the PivotTable and select 'Refresh' to pull in the latest data from your location tabs.
What does 'Unpivot' mean in Power Query?
Unpivoting transforms data from a wide format (e.g., categories as individual columns) into a long format (attribute-value pairs in two columns), making it much easier to filter, group, and summarize data in a PivotTable.




