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
-
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
1 hour, 22 minutes ago -
Sometimes I wonder about these bots
by
Susan Bradley
8 hours, 15 minutes ago -
Does windows update component store “self heal”?
by
Mike Cross
14 hours, 19 minutes ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
15 hours, 19 minutes ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
14 hours, 45 minutes ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
11 hours, 14 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
18 hours, 1 minute ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
18 hours, 3 minutes ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
6 hours, 37 minutes ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
1 day, 2 hours ago -
0Patch, where to begin
by
cassel23
20 hours, 12 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
1 day, 15 hours ago -
89 million Steam account details just got leaked,
by
Alex5723
1 day, 3 hours ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
2 days ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
1 day, 15 hours ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
1 day, 2 hours ago -
Installer program can’t read my registry
by
Peobody
9 hours, 8 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
1 day, 13 hours ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
1 day, 20 hours ago -
False error message from eMClient
by
WSSebastian42
2 days, 11 hours ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
2 days, 20 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
2 days, 21 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
20 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
3 days, 1 hour ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
8 hours, 43 minutes ago -
Outdated Laptop
by
jdamkeene
3 days, 6 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
3 days, 12 hours ago -
Another big Microsoft layoff
by
Charlie
3 days, 11 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
13 hours, 56 minutes ago -
May 2025 updates are out
by
Susan Bradley
15 hours, 38 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.