Fix Excel Microsoft Query Crashes When Creating PivotTables
Question details
The user needs to create a PivotTable from data on multiple worksheets without Microsoft Query crashing.

- Product
- Microsoft Excel and Microsoft Query
- Device & OS
- not provided
- Scenario
- Creating a report from multiple worksheets in the same workbook.
- Observed behavior
- Microsoft Query crashes during PivotTable creation, including in new workbooks with minimal data, although the process previously worked.
Check that each worksheet has a header row and that corresponding columns use consistent names. The append method below works best when the worksheets have the same column structure.
Combine worksheets with Power Query and create a PivotTable
Use this approach to consolidate tables from worksheets in the same workbook without relying on Microsoft Query.
On each source worksheet, select the data, choose Insert > Table, and confirm that the table has headers.
Select a cell in the first table and choose Data > From Table/Range. In Power Query Editor, choose Home > Close & Load > Close & Load To, then select Only Create Connection. Repeat for each source table.
Open a query from Data > Queries & Connections. In Power Query Editor, choose Home > Append Queries > Append Queries as New, select the table queries, and confirm.
Choose Home > Close & Load > Close & Load To and load the appended query to a table. You can also select Add this data to the Data Model if that option is available.
Select a cell in the loaded table and choose Insert > PivotTable. If you loaded the data to the Data Model, select the Data Model as the PivotTable source instead.

Check the source and connection for an ODBC format error
Use these checks if the connection reports “ODBC Excel Driver Login Failed” or “Unrecognized Database Format.”
Create spreadsheet reports with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface. Open compatible Excel workbooks and continue working on spreadsheet reports with an easier transition.

Frequently Asked Questions
Can Power Query combine worksheets from the same workbook?
Yes. Convert each worksheet range to a table, use Data > From Table/Range to create a query for each one, and append the queries in Power Query Editor.
Why are some columns separate after I append the worksheets?
Power Query matches appended columns by name. Check the headers and rename corresponding columns in Power Query Editor before appending them.
How do I refresh the PivotTable after the source data changes?
Choose Data > Refresh All to refresh the queries and PivotTable. Make sure new rows are included in the source Excel tables.
What should I check for an unrecognized database format error?
Verify that the source workbook opens in Excel and that its extension matches its format. Then check the source path and the Excel ODBC driver used by the connection.
Does WPS Office fix a Microsoft Query crash in Excel?
No. WPS Office is an alternative for working with compatible spreadsheets; it does not repair Microsoft Query or Excel's ODBC connections.




