I’m new here, want to say hello to everyone. My problem is this: is there any quick and easy way to recalculate cells that show a Divide By Zero error if the error has been corrected? For example, if an assumption cell that is a precedent cell to many formulas gets changed, that change sometimes causes a Divide By Zero error. If I change the assumption cell back to the original value, the dependent cells still display the Divide By Zero error. I then need to visit each cell independently, press F2 to activate the cell and then hit Return to cause the error to disappear and be replaced by a value. I recognize that trapping for such an error is the best way, but that would not be feasible in this situation. Thanks in advance for any suggestions.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Recalculating Divide By Zero Errors (Excel 2000)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Recalculating Divide By Zero Errors (Excel 2000)
- This topic has 15 replies, 5 voices, and was last updated 22 years, 9 months ago.
AuthorTopicWSBrookBoy
AskWoody LoungerAugust 20, 2002 at 1:59 pm #375256Viewing 1 reply threadAuthorReplies-
WSrory
AskWoody Lounger -
WSBrookBoy
AskWoody LoungerAugust 20, 2002 at 2:32 pm #609996Yes, Calculations are set to Automatic. That’s what makes this such a pain. Even when calcs are on auto, you still have to visit each cell to update the error. In fact, if I inadvertently change the assumption cell, thereby causing the Divide By Zero error, even pressing CTRL + Z doesn’t clear the errors. I *still* have to do a cell-by-cell update. Very frustrating.
-
WSrory
AskWoody LoungerAugust 20, 2002 at 3:03 pm #610000Are you using user-defined formulae or built-in Excel ones?
Can you post a workbook (suitable censored for any confidential info) that demonstrates the problem?
One further possibility – are you using natural language formulae? (i.e. using labels in formulae) If so, this is a known bug – see Q200688 for details.
Hope that helps. -
WSBrookBoy
AskWoody LoungerAugust 20, 2002 at 3:24 pm #610016I have attached a non-specific example of the problem. If you got to C9 and delete the contents, you will notice all the Divide By Zero errors that appear. If you then do a CTRL+Z, you will note that the Divide By Zero errors do not disappear. If you go then to cell C27, press F2 and then Return, you will see the errors for that cell and its dependent cells be replaced by values.
-
WSsdckapr
AskWoody LoungerAugust 20, 2002 at 3:45 pm #610021The problem is that you have circular references
Interest uses the ending balance
The ending balance uses begin balance and prin amort
the princ amort uses the interest and cash availableThe problem should go away if you fix your worksheet to remove the circ references. Once it gets the error it can NOT be fixed through iteration
Steve
-
WSrory
AskWoody LoungerAugust 20, 2002 at 3:48 pm #610019As far as I can see, it’s because you’re using iteration to get around the circular references you have. The only way around it I can see immediately is to change the formula in row 23 to something like:
=IF(ISERROR(AVERAGE(C25,C27)*($C$6)),0,AVERAGE(C25,C27)*($C$6))
or change row 21 to something like:
=IF(C20,C18/C20,0)
which seems to cure it.
Does that help in your situation? -
WSsdckapr
AskWoody Lounger -
WSBrookBoy
AskWoody Lounger -
WSsdckapr
AskWoody Lounger -
WSBrookBoy
AskWoody LoungerAugust 20, 2002 at 6:26 pm #610066The problem, though, is that this is a debt model and there are always circular refs in such a model, so nothing can be done about taking them out. That seems to mean that if a particular user changes an assumption cell so that he/she gets the dreaded Divide By Zero error, there is no way to recalc that error outside of visiting the affected cells individually. It looks like I will need to create a macro that searches for Divide By Zero errors and recalcs them when the macro is executed. Can’t seem to find a better way.
-
WSsdckapr
AskWoody LoungerAugust 20, 2002 at 6:56 pm #610073As I mentioned copying in row 26
=IF(ISERROR(C23),0,IF(C23>C21,0,C21-C23))
should cure it.Div by 0 errors are NOT eliminated, it just uses “0” as the principal amortization when the interest has an error. This should not be a big deal, since 0 is used when the Interest is > than the “Cash Available for Debt Service”. It just prevents the iteration from resetting after the error is eliminated.
Steve
-
WSJohnBF
AskWoody LoungerAugust 20, 2002 at 9:22 pm #610110If I understand correctly the iterative nature of the problem is that principal reduction is made from cash flow after interest payment, which depends on average principal after principal reduction. So an iterative model is appropriate for this problem.
If you really want to get out of an iterative model, you could use an interest-payment-preferred model similar to the one I have attached. Yellow highlighting shows the substantive changes I made, light blue shading shows formula changes others have suggested to reduce #DIV/0! errors. I also streamlined some formulas (force of habit).
[Model edited]Review carefully to ensure that I understood what your model is attempting to do.
-
WSBrookBoy
AskWoody Lounger
-
-
-
-
-
WSjstevens
AskWoody LoungerAugust 20, 2002 at 2:39 pm #609999Have you considered creating a function in VBA. The custom function would perform the division and if it encountered or returned the error it would be replaced by a zero. The example code should be placed in a module. To create a module, press ALT-F11, select/highlight the VBA project relating to your file name, right click and select insert module…copy code into the module you just created.
Example:
Function TestError(Amount)
Application.Volatile ‘Forces the calculation now
If IsError(Amount) = True Then ‘Tests whether or not the Amount (cells being divided) is returning an error
TestError = 0 ‘If an error is returned replace the =TestError portion of the function with a zero
Else
TestError = Amount ‘If no error exits, just perform the division. TestError is now the result of the division
End If
End FunctionYou would have to include this function as part of your formula such as: =TestError(A1/A2)
-
WSBrookBoy
AskWoody LoungerAugust 20, 2002 at 3:16 pm #610012I did consider that as an approach, but this workbook has been distributed to a number of others and it would probably not be possible to bring them all up to date. In fact, that’s part of the overall scope of the problem: other users who understand the native Excel formulas now in the workbook would have considerably more difficulty in understanding custom functions or formulas that trap for the error.
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
InfoStealer Malware Data Breach Exposed 184 Million Logins and Passwords
by
Alex5723
5 hours, 30 minutes ago -
How well does your browser block trackers?
by
n0ads
18 minutes ago -
You can’t handle me
by
Susan Bradley
2 hours, 7 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
1 hour, 9 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
16 hours, 52 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
4 hours, 25 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
17 hours, 16 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
17 hours, 21 minutes ago -
Lumma malware takedown
by
EyesOnWindows
5 hours, 37 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
1 day, 2 hours ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
1 day, 2 hours ago -
Meet Gemini in Chrome
by
Alex5723
1 day, 6 hours ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
1 day, 6 hours ago -
Trump signs Take It Down Act
by
Alex5723
1 day, 14 hours ago -
Do you have a maintenance window?
by
Susan Bradley
1 hour, 14 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
16 hours, 28 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 17 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
1 hour, 58 minutes ago -
hibernate activation
by
e_belmont
2 days, 2 hours ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
2 days, 6 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
2 days, 9 hours ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
2 days, 9 hours ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 day, 5 hours ago -
Out of band for Windows 10
by
Susan Bradley
2 days, 14 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
2 days, 21 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
3 days, 4 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
1 day ago -
Auto Time Zone Adjustment
by
wadeer
3 days, 9 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
3 days, 6 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
6 hours, 45 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.