Jan 16, 2018 - My excel runs slow and gets 'hung up' even if I run a spreadsheet. Try repairing your office installation. Irst try Quick Repair (takes 5 - 10 mins), if that doesn't help then try Online. Now open Excel and see if the problem disappears or not. Login to Windows with a new user profile and see if problem is. Running either Office 2013 or the latest Office 2016, when opening an Excel file from the file system, it takes close to 20 seconds for the file to open completely. It doesn’t matter if the file is sitting in the Cloud, on a network share, or even locally – it just takes forever to load, even if the file contains no data.
Have you ever wondered if Microsoft Excel was invented by a sadist?
Trying to edit multiple files at one time becomes a game of 'Find the worksheet.' You know that the feature you need is on one of the ribbons, but which one? And a large, funky workbook file can slow the program down so much, you need to take a coffee break after altering a single number.
Let's face it: If you do a significant amount of important work in Excel, you're dealing with one nightmare after another. And if you find that using Excel is more difficult than tracking your finances with a pencil and paper, something isn't adding up properly.
I'm here to help, with solutions to five common nightmares found in Excel 2007 and 2010. I'll tell you how to manage multiple workbooks effortlessly, speed up a slow file, track changes from multiple users, find the feature you need among all the ribbons, and enter data more easily.
1. Multiple Open Workbooks Maximize Hassles
In Excel you have two clear and obvious ways to work on three or more spreadsheets: You can have too-small windows that don't give you the big picture, or you can clumsily switch between them.
When you launch Excel, it opens a single window on the Windows desktop. When you open or create another workbook (an Excel file that can contain one or more worksheets), that opens an internal window within the Excel window. You can maximize internal windows so that each one fills the entire Excel window, or restore them to view them all at once.
Unless your worksheets are exceptionally small, you should keep the inner windows maximized (the default setting) so that they fill the whole Excel window. You can switch between worksheets by pressing Ctrl-Tab or, to go in the other direction, Ctrl-Shift-Tab.
That approach works well if you have only two files open--but the more files you add, the more you might cycle through them, going in the wrong direction and then wasting time circling back. Another problem with the technique is that it doesn't allow you to examine two workbooks at the same time (which, depending on what you're doing, may come in handy).
For that, click a workbook's Restore button, which you can find below Excel's Restore button in the upper-right corner. Then you can resize and rearrange the windows for better viewing. You can also minimize those you don't want up at the moment.
If you use two monitors, click Excel's own Restore button so that the application is no longer maximized, and then drag the edge of Excel's window so that it fills both monitors. You'll have much more room for arranging windows.
Your final option--and the best in my opinion--is to download and install one of ExtendOffice's Office Tab products. These Office add-ins place each open file in its own tab at the top of the application window. You sacrifice a small amount of screen space, but gain the ability to switch easily between multiple windows. The free edition adds tabs to Word and PowerPoint as well as to Excel, and can handle pretty much everything you need it to do.
2. One Superslow File
You double-click a worksheet in Windows Explorer and wait for it to load into Excel. And wait. And wait. Finally, it loads. You change a number, and then you wait some more.
It's hard to say why a particular Excel workbook file becomes so slow that it's unbearable to use. Here are three common culprits and what you can do about them.
Too many calculations: In complex workbooks, changing one number can affect hundreds of reiterative calculations, and Excel takes time to work out each one.
The solution is to turn off automatic calculations, which you can do from the Options dialog box. To get there in Excel 2010, click the File tab, and then select Options in the left pane. In Excel 2007, click the round Office button, and then click the Excel Options button at the bottom of the drop-down menu.
Once you're in the Options dialog box, select Formulas in the left pane. For Workbook Calculations, select Manual.
Just remember that the numbers won't be correct until you either save the file or press F9.
Too much formatting: A spreadsheet doesn't have to be pretty, so use as little formatting as you need to keep it legible.
To find out if formatting is slowing down the file, make a copy of it and open the copy in Excel. Select the entire worksheet by pressing Ctrl-A. If the workbook has more than one worksheet, hold down Shift while you click the last tab at the bottom of the window so that you select all of the worksheets. Then, in the Home ribbon's Editing section, click the drop-down arrow by the Clear icon (which looks like an eraser) and select Clear Formats. Save the file.
If this new file is significantly faster than the old one, you overformatted the original file.
The file is bigger than it needs to be: It's no surprise that big files are slower. But some big files can benefit by slimming down.
To find out if your file is one of those, press Ctrl-End, which takes you to the last cell in the worksheet. Yes, you can see other cells below and to the right, but Excel doesn't actually save them until you put something in them.
If the cell you land in is far below the last row containing any content, or far to the right of the last such column, you have a file with unnecessary overhead.
The solution? Copy the actually used cells to a new worksheet in the same workbook, and then delete the old worksheet.
3. Features Are Lost in the Ribbon Labyrinth
Quick: Do you know on which ribbon you can find the Page Layout icon? Hint: It isn't the Page Layout ribbon.
The ribbon interface, introduced with Office 2007, is supposed to make Excel and other applications easier to use. Sometimes it does--and sometimes it leaves you clicking ribbons in a time-wasting search.
Search Commands, a free add-on from Microsoft Office Labs, takes care of the problem. Once you install the add-on, it presents a ribbon where you can search for commands.
(By the way, the Page Layout icon is on the View ribbon.)
4. Changes From Multiple Users Pile Up
If you and a coworker both edit the same workbook, you have a problem. If three or four of you fiddle with the same file over the network, you have a potential catastrophe.
Luckily, everything you need to keep the workflow under control is in one place: the Review ribbon. Here are three essential tools on the ribbon that can help you.
See changes at a glance: Want to see who made what changes when? Drop down the Track Changes menu and select Highlight Changes. Then fill in the options. You can control how long the changes will be saved, whose changes need to be tracked, and whether they should be listed on a separate sheet. You can also accept or reject changes.
Protect all or part of the file: The Protect Sheet and Protect Workbook options allow you to control who can change what. Click either of those buttons, and you'll be able to password-protect various aspects of the file.
Share the workbook: The Share Workbook option permits more than one user to alter the spreadsheet simultaneously. And if you're thinking that such a setup could only make things worse, relax--if a conflict crops up at the time you save the file, a dialog box shows you both options and lets you choose.
5. Endless Data Entry
Spreadsheets aren't database programs, but everyone uses them as such, entering columns and rows of data into tables. Why not? It's a lot easier to set up a simple table in Excel than to create a real database in something like Access.
Here's why not: Thes that easy after you've made the Form icon visible. Click the down arrow at the right end of the Quick Access Toolbar, and then select More Commands. In the 'Choose commands from' drop-down menu, select Commands Not in the Ribbon. Scroll down to and select Form. Click the Add button.
Now you can select any cell in the table, and then click the Form icon. Up comes a data-entry form.
If you don't know such Excel tricks, your nightmares will multiply, subtract from your general happiness, and allow your competitors to divide and conquer. Now that you know how to fix these nightmares, however, the power belongs to you.
To comment on this article and other PCWorld content, visit our Facebook page or our Twitter feed.
I am writing a short macro to hide all customers that have no current sales for the current year. The YTD sales are in the K column (specifically K10-250). Those cells use a vlookup to pull data from another tab where we dump data. My question is why on earth would this macro take 10-15minutes to run? I have a similar macro on another spreadsheet that takes only 2-3 minutes for over 1,500 rows. I have already turned off screen updating. I can't think of anything else that would speed it up.
B-RellB-Rell
7 Answers
You might want the calculation to be set Manual before hiding the rows? Also you can get rid of
If
statements in your case. Try this:PatricKPatricK
Tim WilliamsTim Williams
Why are you doing this with a macro?
If you create a table over the data, you can set up a filter on the sales column that will show only those where sales<> 0.
Macros are useful in excel but the majority of actions that people turn to macros for can be done natively in excel.
Dale MDale M
there must be something else that's wrong. Try without .Selecting the sheet but that's not a huge improvement
Note rows are visible by default so the Else statement should be optional really.
user2140173
the shortest code to achieve the same Goal in a very different way:
of course you could put in the standard minimums like
and other way round at the end.Max
MaxMax
Try disabling page breaks. I had a similar problem that would happen after someone printed from the sheet. This turned on page breaks, and subsequent runs of the script would take forever.
user1842924user1842924
We found out, that the program Syncplicity in the Version 4.1.0.1533 slows down macros up to 15times slower because events trigger syncplicity.
with
Application.EnableEvents = False
;do your job here
Application.EnableEvents = True
the speed is back.
user7398891user7398891