search
HomeTopicsexcelPrevent Excel crashing or freezing when selecting cells in big workbooks

In this article, we will explore the reasons behind Excel crashes or freezes when highlighting cells in large datasets and provide effective solutions to avoid these issues.

If you frequently work with extensive spreadsheets, you've likely encountered a scenario where Excel becomes irresponsive or stops working when trying to select numerous cells at once. You may have also experienced the frustration of losing unsaved changes in your workbook. This can be highly bothersome, causing disruptions in your work. In this article, we'll look at why this happens and provide simple and straightforward solutions to resolve these problems.

Why Excel hangs or crashes when selecting cells in big files?

No one, not even Microsoft, can tell you the exact reason why Excel freezes and stops working when selecting large amounts of data at once. However, here's a typical scenario that many Excel users have run into:

You begin by searching for specific values in your Excel workbook using Excel's Find tool. The search itself is usually fast and efficient, even in massive files. After performing the search, you get a list of records that meet your search criteria. The goal seems to be almost reached. The problem arises when you attempt to select the found cells. At this point, Excel at best just freezes, and at worst, after hanging for some time, crashes unexpectedly.

Prevent Excel crashing or freezing when selecting cells in big workbooks

An incredibly frustrating outcome, especially if you haven't saved your most recent changes in the workbook before starting the search :( Fortunately, there are solutions to prevent Excel from hanging in such situations.

How to avoid Excel freezing and crashing when highlighting cells

The key to avoiding Excel crashing when selecting cells in big datasets is to use conditional formatting instead of Excel Find to highlight cells based on certain criteria. Here's a step-by-step guide:

Step 1: Highlight cells. Begin by creating a new conditional formatting rule to highlight cells that match your criteria. For example, let's highlight all cells containing an asterisk (*).

Prevent Excel crashing or freezing when selecting cells in big workbooks

Step 2: Group found cells. This needs to be done to prevent Excel from crashing when selecting the found data in the next step. You can group cells by sorting or filtering by color.

Here's how to sort data by color:

  1. On the Home tab, click Sort & Filter and choose the Custom Sort… option. The Sort dialog window will appear.
  2. In the Column drop-down list, select the target column.
  3. In the Sort On drop-down list, choose Cell Color.
  4. In the Order drop-down lists, set the color and sort order. We recommend selecting On bottom as it makes the selection process easier in the next step.

Prevent Excel crashing or freezing when selecting cells in big workbooks

Tip. How to restore the original row order on the result sheet after sorting, if your table lacks a dedicated column like No. or ID? Just create a helper column with sequential numbers before sorting. This can be easily done using the Excel Auto Fill feature or the SEQUENCE function.

If sorting by color is not suitable for your data for any reason, you can achieve a similar result using the filter by color option:

  1. Add an auto-filter to your dataset.
  2. Click the filter icon in the target column.
  3. In the menu that opens, click Filter by Color and pick the color you used for conditional formatting.

Prevent Excel crashing or freezing when selecting cells in big workbooks

Step 3: Make your selection. With your data neatly sorted or filtered by color and the desired values grouped, you can now effortlessly select them or perform various actions like copying, formatting, or transferring them to another worksheet without the worry of Excel crashing.

For instance, to select colored cells sorted at the bottom of the column, just click on the first colored cell and press the Ctrl + Shift + End key combination to extend your selection to the last used cell.

If your values are filtered by color, the process is even simpler – as only colored cells are visible, you can select them using your mouse as you normally do.

Prevent Excel crashing or freezing when selecting cells in big workbooks

Crash-free way to select cells in big worksheets with different colors

The Conditional Formatting method works nicely when your dataset contains only one color for highlighting. But what if your worksheet is already a colorful canvas with various shades? How can you find the specific values you need within this mosaic of colors? Fear not, Ablebits Ultimate Suite offers a few smart tools to tackle this challenge. Below, you’ll find the detailed guidance on utilizing each tool.

Note. The tools process only one column at a time. The result is displayed in a separate column, which is automatically inserted to the right of the column where the search was performed.

Find target data using Substring Tools

The Ultimate Suite for Excel offers a set of useful features for manipulating strings and substrings. The Extract Substrings option is particularly useful when you need to find and extract all values containing a specific character or text (substring). Here's how to do it:

  1. Enter your search criteria in an empty cell(s) on the current sheet or a new one.
  2. On the Ablebits Data tab, in the Text group, pick the Extract Substrings option from the Substring Tools menu.
  3. In the Source column box, specify the range where you want to perform the search.
  4. In the Substring range box, specify the cell or range containing your search criteria.
  5. If necessary, add a delimiter in the Split with box.
  6. For case-sensitive search, check the Case-sensitive checkbox.
  7. Click the Extract button.

Prevent Excel crashing or freezing when selecting cells in big workbooks

All the found values (asterisks in our case) are now in a separate column. To further analyze your original data, simply sort or filter your dataset based on that helper column.

Prevent Excel crashing or freezing when selecting cells in big workbooks

Find data at certain positions in strings using Regex Tools

For those comfortable with regular expressions, our Regex Tools are a boon. And for newcomers, we've created an Excel Regex cheat sheet to ease the learning curve.

The regular expression language is exceptionally versatile, allowing you to make patterns not just for finding all asterisks, but also for matching only those asterisks positioned at particular locations within a string.

To find data matching a certain pattern, follow these steps:

  1. Navigate to the Ablebits tab and, in the Text group, click on Regex Tools.
  2. Select a column to search for values. The selected range will be displayed in the topmost box on the Regex Tools pane.
  3. In the Regex box, enter your regular expression. For example, to match asterisks located in various positions in a string, you can use these patterns:
    • ^[*] - matches an asterisk at the beginning of the string.
    • .+[*].+ - matches an asterisk in the middle of the string.
    • [*]$ - matches an asterisk at the end of the string.
    • [*] - matches an asterisk in any position.
  4. Choose either the Match or Extract option. The former will mark the records that match / do not match the pattern with the TRUE / FALSE labels, while the latter will extract the matching values into a separate column.
  5. Click the Extract button.

Prevent Excel crashing or freezing when selecting cells in big workbooks

That's it! With the extracted asterisks in a separate column, you can easily sort or filter your data based on this new column, simplifying further processing of the original data.

Prevent Excel crashing or freezing when selecting cells in big workbooks

For more examples of using this tool, see How to extract strings in Excel with regexes.

In conclusion, we've explored several effective techniques for searching and selecting extensive data within large datasets. Whether you opt for utilizing Excel's standard features or Ablebits tools, these approaches will shield you from the inconvenience of Excel freezing or experiencing unexpected crashes.

Available downloads

Ultimate Suite 14-day fully-functional version (.exe file)

The above is the detailed content of Prevent Excel crashing or freezing when selecting cells in big workbooks. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.