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

Hiding Errors

If you find the green and red squiggly underlines that Word adds to your document distracting, you might want a quick way to ...

Discover More

Averaging Values for a Given Month and Year

Excel is often used to analyze data collected over time. In doing the analysis, you may want to only look at data collected ...

Discover More

Limiting Number of Characters in a Cell

Need to limit the number of characters that can be entered into a cell? One easy way to do it is through the use of Data ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

MORE EXCELTIPS (RIBBON)

Dividing the Screen Unevenly between Two Workbooks

When working with multiple workbooks, you'll typically want to resize the workbook windows so you can see the data from each ...

Discover More

Embedding Your Phone Number in a Workbook

Want to provide a bit of contact information in a workbook? A great place to do it (out of sight, but not inaccessible) is in ...

Discover More

Empty Cells Triggers Error

By default, Excel provides some feedback on your formulas so that you can easily locate potential errors. If you get tired of ...

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 for this tip:

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 nine minus 3?

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.

Links and Sharing