How to Fix Excel Find All Infinite Loop for Specific Text
Question details
Excel freezes or enters an infinite loop when using the Find All feature to search for specific text strings in a worksheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Searching for specific text (such as 'gr') across a worksheet using the Find All function.
- Observed behavior
- Excel becomes completely unresponsive and stuck in an infinite loop due to a problematic cell containing the searched text.
If Excel is currently frozen, you will need to forcefully close it using Task Manager. Always ensure you have a backup copy of your workbook before modifying cell values to troubleshoot this bug.
Isolate and Modify the Problematic Cell
Bypass the bulk search bug by locating the specific cell causing the loop using Find Next, and modify its contents to restore Find All functionality.
This infinite loop is often triggered by a specific, problematic cell value when the 'Find All' command tries to index it. By identifying and changing this value, you can stop the loop.
If Excel is currently stuck in an infinite loop, press Ctrl + Shift + Esc to open the Task Manager, locate Microsoft Excel in the processes list, and click 'End Task'.
Reopen your workbook. Press Ctrl + F to open the Find dialog. Enter your search term (e.g., 'gr') and click 'Find Next' sequentially instead of 'Find All'.
Continue clicking 'Find Next' and note the cell location (such as cell A46) right before Excel begins to hesitate or stall. This is likely the problematic cell.
Temporarily change or clear the text in the identified problematic cell so it no longer contains the exact search string triggering the bug.
Press Ctrl + F and click 'Find All' again. The search should now complete successfully without freezing the application.

Report the Bug to Microsoft Support
Since this is a known performance bug in certain Microsoft 365 builds, reporting it to Microsoft helps them release a permanent patch.
Search Large Spreadsheets Safely with WPS Office
If Microsoft Excel continues to freeze or crash during bulk searches, try WPS Office. It is a completely free, lightweight alternative that handles standard spreadsheet tasks smoothly without disruptive infinite loop bugs.
- 1. Download WPS Office: Visit the official WPS website and download the free installer for your operating system.
- 2. Install the Application: Run the setup file and follow the on-screen instructions to install the WPS Office suite.
- 3. Open Your Excel File: Launch WPS Spreadsheet, click 'Open', and select your problematic Excel workbook to search it safely.

Frequently Asked Questions
Why does Excel freeze when using Find All?
Excel may freeze due to a specific software bug where the application's search indexer gets stuck on certain cell values or background formatting, causing the program to enter an infinite processing loop.
Can I recover my unsaved work if Excel freezes during Find All?
If you are forced to close Excel via Task Manager, you may be able to recover your work upon reopening through the Document Recovery pane, provided the AutoRecover feature was enabled before the freeze.
Is there an alternative to searching all cells without freezing Excel?
Yes, you can use the 'Find Next' button to search sequentially. Alternatively, you can apply Data Filters to your columns to narrow down the visible data without triggering the bulk search bug.
Will updating Microsoft Office fix this Find All infinite loop?
Because this is an application-level bug tied to specific software builds, updating your Microsoft 365 installation to the newest version may include a patch that resolves the issue.




