How to Fix Excel Crashes When Opening the Data Model or Refreshing Queries
Question details
Excel crashes or stops responding when opening a workbook containing a Data Model or when refreshing Power Query connections.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Working with heavy Excel files containing Data Models, relationships, PivotTables, and Power Query connections.
- Observed behavior
- The application stops responding, freezes, or crashes entirely after the workbook is saved and reopened.
Create a secure backup copy of your Excel file before attempting to migrate data or make structural changes to prevent accidental data loss.
Reset Used Range and Recreate the Workbook
Checking for an inflated used range and transferring your raw data to a fresh workbook can strip away the hidden corruption causing Excel to crash.
Often, Excel crashes because invisible formatted cells bloat the file's 'used range', overloading memory when queries are refreshed. Rebuilding the file safely strips away this corrupt metadata.
Open your problematic workbook and press 'Ctrl + End' on your keyboard. If the cursor jumps thousands of rows or columns beyond your actual data, the used range is incorrect and is bloating the file size.
Open a completely new Excel workbook with fresh worksheets to serve as the stable destination for your data.
If your workbook contains macros, open the Visual Basic Editor, copy your code, paste it into Notepad to strip away corrupt formatting, and then copy it from Notepad into the modules of your new workbook.
Copy the raw data from your old worksheets, paste it into an alternative spreadsheet application (like WPS Spreadsheet) to break Office-specific corrupt metadata links, and then paste it into your new Excel file.
Once the clean data is securely in the new workbook, manually recreate your Data Model and Power Query connections.

Manually Clear the Excess Used Range
If you prefer not to recreate the entire workbook, you can try deleting the excess columns and rows to reduce memory load.
Experience Stable Data Processing with WPS Office
If Microsoft Excel continues to struggle with crashes, freezes, or memory limitations when handling large datasets, try WPS Office. It provides a lightweight, highly stable environment for handling complex spreadsheets and large datasets without locking up your system.
- 1. Download WPS Office: Visit the official WPS website to download and install the free WPS Office suite.
- 2. Open Your Spreadsheet: Launch WPS Spreadsheet and click 'Open' to select your existing Excel (.xlsx) file.
- 3. Edit Seamlessly: Continue analyzing your data, utilizing PivotTables, and managing large datasets in a stable environment.

Frequently Asked Questions
Why does pressing Ctrl+End take me to thousands of empty rows?
This happens when Excel registers visually blank cells as part of the active 'Used Range' because they previously contained data or have lingering formatting. This drastically inflates the file size and consumes heavy memory, often leading to crashes when refreshing complex queries.
Can transferring data through Notepad really fix workbook corruption?
Yes. Copying VBA code or text through a basic text editor like Notepad strips away hidden XML formatting, corrupted metadata, and invisible objects. When you paste it back into a new workbook, you are importing clean, uncorrupted data.
Why does my Excel crash specifically during a Power Query refresh?
Power Query refreshes are highly memory-intensive operations. If your workbook is already bloated due to an incorrect used range or underlying corruption, the sudden spike in memory required to fetch and model new data can cause the application to exceed its limits and crash.
Does using 32-bit vs 64-bit Excel matter for Data Models?
Absolutely. The 32-bit version of Excel is strictly limited to 2GB of memory. Processing large Data Models and complex relationships will easily exceed this limit, resulting in crashes. Upgrading to 64-bit Excel provides access to significantly more memory, which helps prevent these issues.




