How to Fix Excel Circular References and #NUM! Errors
Question details
The user needs to troubleshoot and resolve persistent #NUM! errors in a workbook caused by complex circular references and zero-value evaluations.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Working with complex spreadsheet models that use iterative calculation and advanced mathematical functions like LN.
- Observed behavior
- The workbook displays #NUM! errors despite iterative calculation being enabled, often due to endless circular reference chains or formulas evaluating blank cells as zero.
Save a backup copy of your workbook before modifying formulas or breaking calculation chains to ensure you do not lose important structural logic.
Identify and Break Circular Reference Chains
Use Manual Calculation mode and the built-in Error Checking tool to systematically locate and remove endless circular references.
When iterative calculation is enabled, it can sometimes mask underlying logic flaws in your formulas. Temporarily disabling it allows you to track down the exact cells causing the endless loops.
Go to the File tab, click Options, and select Formulas. Under Calculation options, select 'Manual' and uncheck the 'Enable iterative calculation' box.
Navigate to the Formulas tab on the ribbon. Click on the Error Checking drop-down arrow and hover over 'Circular References' to see the list of problematic cells.
Click on the first cell reference in the list. Investigate the formula and temporarily delete or modify the reference to the next cell to break the endless loop.
Click 'Calculate Sheet' (or press Shift+F9) to recalculate the active worksheet and verify if the circular reference warning disappears.

Fix #NUM! Errors from LN Functions and Blank Cells
Correct mathematical errors occurring when formulas evaluate empty cells as zero, which causes functions like LN to fail.
Troubleshoot Formula Errors Easily with WPS Spreadsheet
WPS Spreadsheet offers powerful, intuitive error-checking tools to help you easily locate circular references and debug complex formulas, ensuring your mathematical models run flawlessly.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing the formula errors.
- 2. Access Error Checking: Navigate to the Formulas tab on the top ribbon and click on Error Checking.
- 3. Find Circular References: Select Circular References from the dropdown to view all cells caught in a calculation loop.
- 4. Correct the Formulas: Click the listed cells to jump directly to them and adjust the formulas to eliminate the #NUM! errors.

Frequently Asked Questions
Why does the LN function return a #NUM! error in Excel?
The LN function calculates the natural logarithm of a number, which requires a strictly positive value. If the function references a cell containing zero, a negative number, or an empty cell (which Excel evaluates as zero), it triggers a #NUM! error.
What is iterative calculation and when should I use it?
Iterative calculation allows the spreadsheet program to calculate a formula repeatedly until a specific numeric condition is met. It is useful for intentional circular references, such as certain financial or engineering models. If enabled accidentally, it can mask unintentional calculation errors.
How do I find circular references if the option is grayed out?
If the 'Circular References' option under the Error Checking menu is grayed out and cannot be clicked, it means Excel currently detects no active circular references in the workbook.




