Iterative Calculations in Excel: How to Turn Them On
In this article
To turn on iterative calculations in Excel, go to File > Options > Formulas and check the box for Enable iterative calculation. This setting allows Excel to run a formula multiple times until a specific result is reached, which prevents the "Circular Reference" warning when a formula refers back to its own cell.
By default, Excel is designed to prevent circular references because they usually indicate a mistake in the logic of a spreadsheet. However, in advanced financial modeling, engineering calculations, or when creating a timestamp that doesn't update every time the sheet recalculates, circular references are intentional. Enabling iterative calculations tells Excel to stop treating these loops as errors and instead treat them as a mathematical process of convergence.
What You'll Need
- A computer with Microsoft Excel installed (Windows or macOS).
- A spreadsheet containing a circular reference or a model that requires iterative solving.
Step-by-Step
- Open the Excel workbook where you need to enable iterative calculations.
- Click on the File tab in the top-left corner of the ribbon. (Note: Menu labels may differ slightly depending on your version of Excel or region).
- Select Options from the bottom of the left-hand menu. If you do not see Options, you may need to click More... first.
- In the Excel Options dialog box that appears, click on the Formulas category in the left sidebar.
- Locate the Calculation options section at the top of the window.
- Check the box labeled Enable iterative calculation.
- Adjust the following two values if necessary:
- Maximum Iterations: This is the maximum number of times Excel will recalculate the formula before stopping. The default is 100.
- Maximum Change: This is the threshold for accuracy. If the difference between two iterations is less than this number, Excel stops calculating. The default is 0.001.
- Click OK to save your changes and return to your spreadsheet.
Common Mistakes
Leaving the setting on for all workbooks: Iterative calculation is a global setting in Excel. Once enabled, it applies to all open workbooks. If you open a different file that contains an accidental circular reference (a genuine error), Excel will no longer warn you about it, which can lead to incorrect data without you realizing it.
Setting Maximum Iterations too low: If your formula requires a high degree of precision or takes a long time to converge, the default 100 iterations might not be enough. This results in a value that is "close" but not mathematically accurate.
Ignoring the Maximum Change value: Users often forget to adjust the Maximum Change. If you are working with very small decimals (e.g., scientific data), a change of 0.001 might be too large, causing Excel to stop calculating before it reaches the true answer.
Tips
Use for Static Timestamps: One of the most popular uses for iterative calculations is creating a "date stamp" that records when a cell was modified without using VBA macros. By referencing the cell's own value and adding a conditional check, you can lock a date in place.
Monitor Performance: If you have thousands of iterative formulas in a single workbook, you may notice a lag in performance. To speed things up, try to limit iterative calculations to only the necessary cells rather than applying them to entire columns.
Verify Convergence: Periodically check your results by slightly increasing the Maximum Iterations. If the result changes significantly, your model hasn't converged, and you need to increase the iteration limit. If the result stays the same, your model is stable.
Troubleshooting
The Circular Reference warning is still appearing: Ensure you clicked "OK" in the Options menu. If the warning persists, check if you have multiple circular references that are creating an infinite loop that cannot converge, which may cause Excel to hang or crash.
The values in my cells are returning #NUM! or #VALUE!: This often happens when the iterative calculation diverges (the numbers get larger and larger instead of settling on a value). Check your formula logic to ensure it is designed to converge. Try reducing the Maximum Iterations or checking for division-by-zero errors within the loop.
Excel is freezing during calculation: If your Maximum Iterations are set too high (e.g., 1,000,000) and you have many circular references, Excel may stop responding. Restart Excel and lower the Maximum Iterations to a more reasonable number, such as 1,000.
Frequently Asked Questions
Does enabling iterative calculations fix all circular reference errors?
No. It only allows Excel to process circular references without showing an error. If the formula is logically flawed and cannot reach a stable number, it will still produce incorrect results or errors.
Is this setting saved for every workbook?
The setting is stored in the Excel application itself, not within the individual .xlsx file. If you send the file to a colleague, they must also enable iterative calculations on their own computer for the formulas to work correctly.
What is the difference between "Maximum Iterations" and "Maximum Change"?
Maximum Iterations is a hard limit on how many times Excel tries to solve the loop. Maximum Change is a "precision" limit; if the result stops changing significantly between steps, Excel stops early to save processing power.
Can I use iterative calculations on Excel for the Web?
Yes, iterative calculations are supported in Excel for the Web. You can find the setting under the Formulas tab in the ribbon, usually within the Calculation settings menu.
Will this slow down my computer?
Only if you have a very large number of iterative formulas or have set the Maximum Iterations to an extremely high number. For most standard financial models, the performance impact is negligible.