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
-
Microsoft : Edge is better than Chrome
by
Alex5723
1 hour, 31 minutes ago -
The EU launched DNS4EU
by
Alex5723
14 hours, 13 minutes ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
4 hours, 34 minutes ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
19 hours, 39 minutes ago -
Set default size for pasted photo to word
by
Cyn
1 day, 1 hour ago -
Dedoimedo tries 24H2…
by
Cybertooth
13 hours, 47 minutes ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
2 days ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
1 day, 21 hours ago -
Small desktops
by
Susan Bradley
15 hours, 19 minutes ago -
Totally disable Bitlocker
by
CWBillow
18 hours, 13 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
1 day, 22 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
3 days, 4 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
23 hours, 21 minutes ago -
Mystical Desktop
by
CWBillow
3 days, 7 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
2 days, 13 hours ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
30 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
3 days, 23 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
4 days, 1 hour ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
4 days ago -
What is wrong with simple approach?
by
WSSpoke36
1 day, 22 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
4 days, 11 hours ago -
Location, location, location
by
Susan Bradley
3 days, 1 hour ago -
Cannot get a task to run a restore point
by
CWBillow
4 days, 12 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
4 days, 3 hours ago -
June 2025 Office non-Security Updates
by
PKCano
4 days, 23 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
2 hours, 2 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
4 days, 23 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
5 days, 9 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
4 days, 12 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
5 days, 18 hours 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.