Spotty Recalculation

by Allen Wyatt
(last updated March 15, 2014)

1

Guillermo has a large worksheet for pricing and costing products. The worksheet was calculating fine, then all of a sudden some cells in the aggregate pages stop calculating. If he clicks in the cell and presses Enter the cell recalculates. Guillermo has checked all formats that the cells reference and they are all set to accounting or number, plus auto-calculate is selected. He's at a loss as to what is causing the problem.

There are a couple of things that may be contributing to this issue. First, the culprit could be the layout of your worksheet. If the worksheets in your workbook are very large, it is important to remember the order in which Excel performs its calculations. You mention "aggregate pages," which implies that there are multiple worksheets at play here—even though you mention only a "large worksheet" at the beginning. Worksheets are recalculated from front to back and from left to right and top to bottom within each worksheet.

Thus, if you have large worksheets with lots of dependent calculations, and the calculations on which everything is dependent are recalculated after the dependent calculations, you might get erroneous results. For instance, if your aggregate information is near the top of a worksheet or near the beginning of a workbook and that information is dependent on cells that are calculated further down or on later worksheets, then the aggregate information may not get recalculated properly on the first go-around.

You can find out if this is the case by simply reorganizing your workbooks so that the aggregate information is physically after the cells on which it depends. That way it will be recalculated after the cells on which it depends are calculated.

Another thing you can try is to see if your errant formula cells really contain formulas. If they, instead, are parsed by Excel as text, then you'll obviously get wrong results. You can select the cell, press F2 (to enter editing mode), and then press Enter. If you have lots of such cells, try this:

  1. Press Ctrl+H. Excel displays the Replace tab of the Find and Replace dialog box.
  2. In the Find What box enter an equal sign (=).
  3. In the Replace With box enter an equal sign (=).
  4. Click Replace All.

A third thing you can check is whether your worksheets employ user-defined functions (UDFs). If the aggregate totals are dependent, in some way, on values returned by UDFs, then you'll want to make sure that the UDFs are returning the correct values. Sometimes they may not recalculate when you expect them to, so they might give (under some circumstances) incorrect results. If you believe this is the case, then modify the macro coding so that there is an Application.Volatile statement at the beginning of it.

And, speaking of macros, you might want to check to make sure that none of the macros are affecting the calculation process or turning off auto-calculate.

Finally, you'll want to check if you have inadvertently created any circular referenes in your worksheet. These occur when a formula in one cell references, in some way, the cell in which the formula exists. Thus, if cell C1 contains a formula dependent on cells D7 and E7 and one of those cells contain a formula dependent on cell C1, then a circular reference exists. Unless circular references are handled properly (as descrived in other issues of ExcelTips), they can generate unexpected or faulty results. If there is a circular reference in the worksheet, there should be an indicator of such at the left side of the status bar.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13014) applies to Microsoft Excel 2007, 2010, and 2013.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Keyboard Changes to Unwanted Foreign Language

There you are typing along, minding your own business, when wham! You end up in an entirely different language and you don't ...

Discover More

Controlling Chart Gridlines

Gridlines are often added to charts to help improve the readability of the chart itself. Here's how you can control whether ...

Discover More

Determining the Length of a Non-Document Text File

If you use a macro to create and work with text files, you can find out the length of those files using a simple command. ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Slowing Down Mouse Selection

Ever tried to select a range of cells using the mouse, only to have the cells scroll by so quickly you can't make the ...

Discover More

Using a Single Instance of Excel with Two Monitors

Working on a computer system that has multiple monitors can help increase your productivity. If you want to work with ...

Discover More

Saving Non-Existent Changes

Open a workbook, look at the data, start to close the workbook, and you are asked if you want to save your changes. What ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 0?

2014-03-19 16:01:31

mike

Couldn't F9 be used?


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.