Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default order formulas are updated..

I have a big workbook with many worksheets, and many formulae in it.
The problem (which occurs whether I have automatic calculation on, or
manual) is that since certain formulas work off other formulas, one of
them is updated before the other, and then the result of one of them is
wrong. e.g. I'll have a lot of DIV/0 errors since one cell referred to
is 0, but if I go into that cell and press enter to evaluate only that
formula (with manual calculation on) then it returns the correct
number. Then I can manually evaluate the division formula and it's OK.

Is there any help for this? Or anything to allow one to specify which
ranges are updated before other ranges?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default order formulas are updated..

Your formulas should be recalculated in their "natural" sequence. Excel knows which cells depend on which.
However, there are exceptions.
See my standard text on "cells not recalculating correctly". Pay attention to 5. and 6, but don't skip the rest
Please let us know if you had success (or not)

--
Kind regards,

Niek Otten


--
Kind regards,

Niek Otten

================================================== =======

Cells not calculating (correctly)

Niek Otten, March 31, 2006



Most frequent causes:



1. Calculation is set to Automatic. This may have happened unintentionally, for example by opening another workbook first.
Calculation is an Excel-wide setting; the first workbook opened determines the calculation mode, which then applies to all open
workbooks and workbooks that are opened later in that instance of Excel. It can be changed manually (again, for all open
workbooks):
ToolsOptionsCalculation tab, check Automatic.

2. There are User Defined Functions (UDFs) which access cells directly from within the function, that is, not via the
argument list. Then Excel is not aware of the need of recalculation if the precedent cell changes. You can include
Application.Volatile in the function, but there is no guarantee this will always calculate cells in the correct sequence in all
(future) versions of Excel. It also causes the calling cells (and dependents) to always be recalculated, even if not necessary.
Really the best way is to include all precedent cells in the argument list.

3. You see the formulas in the cell, not the answers. Two options: a. ToolsOptionsView, Formulas is checked (you may
accidentally have hit the shortcut key: CTRL+`), b. the cell was formatted as text before you entered the formula. Format as
General and re- enter (F2, ENTER).

4. Excel version 5.0a (yes, very, very old!) has serious recalculation bugs, Excel 97 absolutely needs Service Pack 2 (SP2)
to calculate correctly.

5. Very, very rarely, Excel's dependency tree gets messed up. One way to rebuild it is to find and replace all "=" by "=",
for all sheets. Later versions of Excel rebuild by pressing CTRL+ALT+SHIFT+F9

6. For many calculation secrets, visit Charles William's site:
www.decisionmodels.com

================================================== =======



wrote in message oups.com...
|I have a big workbook with many worksheets, and many formulae in it.
| The problem (which occurs whether I have automatic calculation on, or
| manual) is that since certain formulas work off other formulas, one of
| them is updated before the other, and then the result of one of them is
| wrong. e.g. I'll have a lot of DIV/0 errors since one cell referred to
| is 0, but if I go into that cell and press enter to evaluate only that
| formula (with manual calculation on) then it returns the correct
| number. Then I can manually evaluate the division formula and it's OK.
|
| Is there any help for this? Or anything to allow one to specify which
| ranges are updated before other ranges?
|


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default order formulas are updated..

Thanks for the reply. I tried #5 both ways, and while it seemed
promising as it took longer to calculate after doing them, the same
problem exists. I can go to a cell that has a count of 0, press enter
to calculate it, and it gives me the correct count. Then I go over to
the DIV/0 cell, press enter and it is OK. I am not using any UDFs
either.

The only thing close to a solution I've found is to recalulate the
sheet that was giving me problems individually, that seems to work, but
again it does not work when I recalculate all cells in the workbook.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Niek Otten
 
Posts: n/a
Default order formulas are updated..

If you really checked all the items in my post and nothing helps, you can mail me your workbook if you like.
Please check once more; others may benefit from it, not from me solving it just for you (if I can!)

--
Kind regards,

Niek Otten

wrote in message ups.com...
| Thanks for the reply. I tried #5 both ways, and while it seemed
| promising as it took longer to calculate after doing them, the same
| problem exists. I can go to a cell that has a count of 0, press enter
| to calculate it, and it gives me the correct count. Then I go over to
| the DIV/0 cell, press enter and it is OK. I am not using any UDFs
| either.
|
| The only thing close to a solution I've found is to recalulate the
| sheet that was giving me problems individually, that seems to work, but
| again it does not work when I recalculate all cells in the workbook.
|


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
paste formulas between workbooks without workbook link ron Excel Discussion (Misc queries) 3 April 22nd 23 08:11 AM
Series order conflicts with line order Cowtoon Charts and Charting in Excel 3 January 15th 06 08:43 PM
how can i get formulas in excel to copy and paste? bman Excel Worksheet Functions 1 October 3rd 05 04:15 PM
locking formulas?? Rob Excel Discussion (Misc queries) 1 July 27th 05 09:27 AM
Need Formulas for counting multiple conditions OrdOff Excel Worksheet Functions 4 July 3rd 05 06:12 PM


All times are GMT +1. The time now is 09:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"