Fix Excel Freezing When Sorting a Large Worksheet
Question details
The user needs to sort a large worksheet without Excel becoming slow or unresponsive.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Sorting a worksheet with approximately 35,000 rows when the used range may extend beyond the actual data.
- Observed behavior
- Excel becomes slow or stops responding, and Ctrl+End reaches row 63,907 even after unnecessary rows and columns were deleted.
Identify the last row and column containing data, formulas, or formatting you need to keep. Check the entire worksheet, including hidden rows and columns, before deleting anything outside the visible table.
Reset the worksheet's used range
Use this method when Excel treats rows or columns beyond the real data as part of the used range.
Open the affected worksheet and press Ctrl+End. Compare the selected cell with the actual last row and column you need.
Select the row headers from the first unnecessary row through the bottom of the worksheet. Right-click the selected headers and choose Delete.
Select the column headers from the first unnecessary column to the right through the last worksheet column. Right-click the selected headers and choose Delete.
Save the workbook, close it, and reopen it. On the affected sheet, press Ctrl+End again to check whether the last used cell is closer to the real data.
Select the complete data table, including its headers, and use Data > Sort. If Excel asks whether to expand the selection, include all related columns so the rows stay together.

Check for other causes of slow sorting in Excel
Use these checks if the used range is correct but Excel still stops responding.
Work with Large Excel Workbooks in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Microsoft Excel formats, making it easy to continue working with existing files. It does not repair an Excel-specific performance problem.

Frequently Asked Questions
Why does Ctrl+End go far below my data in Excel?
Excel's used range can include cells with old formatting, formulas, or previously entered data. Press Ctrl+End to find its last used cell, then delete unnecessary entire rows and columns and save the workbook.
Why is my workbook still large after I delete unused rows?
Other worksheets, formulas, formatting, and objects may contribute to the file size. Save the workbook, then check Ctrl+End and review content on the other sheets.
How do I keep rows together when sorting?
Select the complete table, including headers, before choosing Data > Sort. If Excel offers to expand the selection, include all related columns.
What if Excel still freezes after I reset the used range?
Review conditional formatting under Home > Conditional Formatting > Manage Rules and check other worksheets. On Windows, you can also test the workbook in Excel Safe Mode and review add-ins under File > Options > Add-ins.




