
- #Excel for mac 2016 freezes when trying to save online how to
- #Excel for mac 2016 freezes when trying to save online update
I timed it with a macro and it took about 0.012 seconds to delete the sorted rows. Now if we sort the data first by the color column, then filter for Red only, then delete, the process takes…
#Excel for mac 2016 freezes when trying to save online how to
Imagine how long it would take if we had to do that manually… 🙂Ĭheckout my article on the 5 Ways to use the VBA Immediate Window for tips on how to work with this great tool.
#Excel for mac 2016 freezes when trying to save online update
If there are formulas that are dependent on that range then it will have to update the range references as well. That means Excel has to perform the delete rows command 2,197 times to delete all the filtered rows. ?Selection.SpecialCells(xlCellTypeVisible).Areas.Count We can determine how many areas we have in the filtered range by selecting all the cells in the first column of the data set, then running the following line of code in the Immediate Window of the VB Editor. These non-contiguous ranges are known as areas in VBA. The unsorted data creates a series of non-contiguous ranges for the visible rows. It may be faster or slower on your computer, but this is a very simple data set with no formulas. If we filter the range for Red only, then delete the rows, the process takes about…Įxcel does enter “Not Responding” (freezing) mode for a few seconds too, which is always scary. Let's say we want to delete the rows that contain “Red” in the Color column. There are 10,000 rows of data and the Color column is NOT sorted. The first column contains a color (Red, Blue, or Green), and the second column contains a random number. We refer to this as “freezing”, but it actually causes the computer to heat up and work harder… Why Does Unsorted Data Perform Slow? It's all about the Areas!įor this example I created a very simple data set that has two columns. Excel will sometimes enter Not Responding mode. This process takes longer with larger data sets that contain more rows, columns, and formulas. If the data is not sorted then Excel has to go through each set of visible rows and delete the row sections one by one.


Well, deleting rows on a filtered range can be a very labor intensive process for Excel. Or maybe you have to sit around and watch the wait cursor spin, not sure if Excel is going to come out of “Not Responding” mode, while the rows are deleted…Įven worse, sometimes Excel freezes or crashes when you attempt to delete rows. Has your computer ever started smoking after you attempted to delete rows from a large filtered range? 🙂 Sort Before Deleting Rows.xlsx (504.4 KB) Deleting Filtered Rows Can Take A Long Time! Learn how to prevent Excel from freezing or crashing when deleting rows.ĭownload the sample Excel file to follow along. Bottom line: This quick tip will save you a lot of time when deleting rows from a filtered range or table in Excel.
