Change formula recalculation, iteration, or precision in Excel (2024)

Newer versionsWeb

To use formulas efficiently, there are three important considerations that you need to understand:

Calculation is the process of computing formulas and then displaying the results as values in the cells that contain the formulas. To avoid unnecessary calculations that can waste your time and slow down your computer, Microsoft Excel automatically recalculates formulas only when the cells that the formula depends on have changed. This is the default behavior when you first open a workbook and when you are editing a workbook. However, you can control when and how Excel recalculates formulas.

Iteration is the repeated recalculation of a worksheet until a specific numeric condition is met. Excel cannot automatically calculate a formula that refers to the cell — either directly or indirectly — that contains the formula. This is called a circular reference. If a formula refers back to one of its own cells, you must determine how many times the formula should recalculate. Circular references can iterate indefinitely. However, you can control the maximum number of iterations and the amount of acceptable change.

Precision is a measure of the degree of accuracy for a calculation. Excel stores and calculates with 15 significant digits of precision. However, you can change the precision of calculations so that Excel uses the displayed value instead of the stored value when it recalculates formulas.

As calculation proceeds, you can choose commands or perform actions such as entering numbers or formulas. Excel temporarily interrupts calculation to carry out the other commands or actions and then resumes calculation. The calculation process may take more time if the workbook contains a large number of formulas, or if the worksheets contain data tables or functions that automatically recalculate every time the workbook is recalculated. Also, the calculation process may take more time if the worksheets contain links to other worksheets or workbooks. You can control when calculation occurs by changing the calculation process to manual calculation.

Important:Changing any of the options affects all open workbooks.

  1. Click the File tab, click Options, and then click the Formulas category.

    In Excel 2007, click the Microsoft Office Button, click Excel Options, and then click the Formulas category.

  2. Do one of the following:

    • To recalculate all dependent formulas every time you make a change to a value, formula, or name, in the Calculation options section, under Workbook Calculation, click Automatic. This is the default calculation setting.

    • To recalculate all dependent formulas — except data tables — every time you make a change to a value, formula, or name, in the Calculation options section, under Workbook Calculation, click Automatic except for data tables.

    • To turn off automatic recalculation and recalculate open workbooks only when you explicitly do so (by pressing F9), in the Calculation options section, under Workbook Calculation, click Manual.

      Note:When you click Manual, Excel automatically selects the Recalculate workbook before saving check box. If saving a workbook takes a long time, clearing the Recalculate workbook before saving check box may improve the save time.

    • To manually recalculate all open worksheets, including data tables, and update all open chart sheets, on the Formulas tab, in the Calculation group, click the Calculate Now button.

      Change formula recalculation, iteration, or precision in Excel (1)

    • To manually recalculate the active worksheet and any charts and chart sheets linked to this worksheet, on the Formulas tab, in the Calculation group, click the Calculate Sheet button.

Tip:Alternatively, you can change many of these options outside of the Excel Options dialog box. On the Formulas tab, in the Calculation group, click Calculation Options, and then click Automatic.

Note:If a worksheet contains a formula that is linked to a worksheet that has not been recalculated and you update that link, Excel displays a message stating that the source worksheet is not completely recalculated. To update the link with the current value stored on the source worksheet, even though the value might not be correct, click OK. To cancel updating the link and use the previous value obtained from the source worksheet, click Cancel.

To

Press

Recalculate formulas that have changed since the last calculation, and formulas dependent on them, in all open workbooks. If a workbook is set for automatic recalculation, you do not need to press F9 for recalculation.

F9

Recalculate formulas that have changed since the last calculation, and formulas dependent on them, in the active worksheet.

Shift+F9

Recalculate all formulas in all open workbooks, regardless of whether they have changed since the last recalculation.

Ctrl+Alt+F9

Check dependent formulas, and then recalculate all formulas in all open workbooks, regardless of whether they have changed since the last recalculation.

Ctrl+Shift+Alt+F9

  1. Click the File tab, click Options, and then click the Formulas category.

    In Excel 2007, click the Microsoft Office Button, click Excel Options, and then click the Formulas category.

  2. In the Calculation options section, select the Enable iterative calculation check box.

  3. To set the maximum number of times Excel will recalculate, type the number of iterations in the Maximum Iterations box. The higher the number of iterations, the more time Excel will need to recalculate a worksheet.

  4. To set the maximum amount of change you will accept between recalculation results, type the amount in the Maximum Change box. The smaller the number, the more accurate the result and the more time Excel needs to recalculate a worksheet.

Note:Solver and Goal Seek are part of a suite of commands sometimes called what-if analysis tools. Both commands use iteration in a controlled way to obtain desired results. You can use Solver when you need to find the optimum value for a particular cell by adjusting the values of several cells or when you want to apply specific limitations to one or more of the values in the calculation. You can use Goal Seek when you know the desired result of a single formula but not the input value the formula needs to determine the result.

Before you change the precision of calculations, keep in mind the following important points:

By default, Excel calculates stored, not displayed, values

The displayed and printed value depends on how you choose to format and display the stored value. For example, a cell that displays a date as "6/22/2008" also contains a serial number that is the stored value for the date in the cell. You can change the display of the date to another format (for example, to "22-Jun-2008"), but changing the display of a value on a worksheet does not change the stored value.

Use caution when changing the precision of calculations

When a formula performs calculations, Excel usually uses the values stored in cells referenced by the formula. For example, if two cells each contain the value 10.005 and the cells are formatted to display values in currency format, the value $10.01 is displayed in each cell. If you add the two cells together, the result is $20.01 because Excel adds the stored values 10.005 and 10.005, not the displayed values.

When you change the precision of the calculations in a workbook by using the displayed (formatted) values, Excel permanently changes stored values in cells from full precision (15 digits) to whatever format, including decimal places, is displayed. If you later choose to calculate with full precision, the original underlying values cannot be restored.

  1. Click the File tab, click Options, and then click the Advanced category.

    In Excel 2007, click the Microsoft Office Button, click Excel Options, and then click the Advanced category

  2. In the When calculating this workbook section, select the workbook you want and then select the Set precision as displayed check box.

Although Excel limits precision to 15 digits, that doesn't mean that 15 digits is the limit of the size of a number you can store in Excel. The limit is 9.99999999999999E+307 for positive numbers, and -9.99999999999999E+307 for negative numbers . This is approximately the same as 1 or -1 followed by 308 zeros.

Precision in Excel means that any number exceeding 15 digits is stored and shown with only 15 digits of precision. Those digits can be in any combination before or after the decimal point. Any digits to the right of the 15th digit will be zeros. For example, 1234567.890123456 has 16 digits (7 digits before and 9 digits after the decimal point). In Excel, it's stored and shown as 1234567.89012345 (this is shown in the formula bar and in the cell). If you set the cell to a number format so that all digits are shown (instead of a scientific format, such as 1.23457E+06), you'll see that the number is displayed as 1234567.890123450. The 6 at the end (the 16th digit) is dropped and replaced by a 0. The precision stops at the 15th digit, so any following digits are zeros.

A computer can have more than one processor (it contains multiple physical processors) or can be hyperthreaded (it contains multiple logical processors). On these computers, you can improve or control the time it takes to recalculate workbooks that contain many formulas by setting the number of processors to use for recalculation. In many cases, portions of a recalculation workload can be performed simultaneously. Splitting this workload across multiple processors can reduce the overall time it takes complete the recalculation.

  1. Click the File tab, click Options, and then click the Advanced category.

    In Excel 2007, click the Microsoft Office Button, click Excel Options, and then click the Advanced category.

  2. To enable or disable the use of multiple processors during calculation, in the Formulas section, select or clear the Enable multi-threaded calculation check box.

    NoteThis check box is enabled by default, and all processors are used during calculation. The number of processors on your computer is automatically detected and displayed next to the Use all processors on this computer option.

  3. Optionally, if you select Enable multi-threaded calculation, you can control the number of processors to use on your computer. For example, you might want to limit the number of processors used during recalculation if you have other programs running on your computer that require dedicated processing time.

  4. To control the number of processors, under Number of calculation threads, click Manual. Enter the number of processors to use (the maximum number is 1024).

To ensure that older workbooks are calculated correctly, Excel behaves differently when you first open a workbook saved in an earlier version of Excel than when you open a workbook created in the current version.

  • When you open a workbook created in the current version, Excel recalculates only the formulas that depend on cells that have changed.

  • When you use open a workbook that was created in an earlier version of Excel, all the formulas in the workbook — those that depend on cells that have changed and those that do not — are recalculated. This ensures that the workbook is fully optimized for the current Excel version. The exception is when the workbook is in a different calculation mode, such as Manual.

  • Because complete recalculation can take longer than partial recalculation, opening a workbook that was not previously saved in the current Excel version can take longer than usual. After you save the workbook in the current version of Excel, it will open faster.

In Excel for the web, a formula result is automatically recalculated when you change data in cells that are used in that formula. You can turn this automatic recalculation off and calculate formula results manually. Here's how to do it:

Note:Changing the calculation option in a workbook will affect the current workbook only, and not any other open workbooks in the browser.

  1. In the Excel for the web spreadsheet, click the Formulas tab.

  2. Next to Calculation Options, select one of the following options in the dropdown:

    • To recalculate all dependent formulas every time you make a change to a value, formula, or name, click Automatic. This is the default setting.

    • To recalculate all dependent formulas — except data tables — every time you make a change to a value, formula, or name, click Automatic Except for Data Tables.

    • To turn off automatic recalculation and recalculate open workbooks only when you explicitly do so, click Manual.

    • To manually recalculate the workbook (including data tables), click Calculate Workbook.

Note:In Excel for the web, you can’t change the number of times a formula is recalculated until a specific numeric condition is met, nor can you change the precision of calculations by using the displayed value instead of the stored value when formulas are recalculated. You can do that in the Excel desktop application though. Use the Open in Excel button to open your workbook to specify calculation options and change formula recalculation, iteration, or precision.

Need more help?

You can always ask an expert in the Excel Tech Communityor get support inCommunities.

Change formula recalculation, iteration, or precision in Excel (2024)

FAQs

Change formula recalculation, iteration, or precision in Excel? ›

Click the File tab, click Options, and then click the Advanced category. In the When calculating this workbook section, select the workbook you want and then select the Set precision as displayed check box.

How to change iteration in Excel? ›

Learn about iterative calculation
  1. Select File > Options > Formulas. ...
  2. In the Calculation options section, select the Enable iterative calculation check box. ...
  3. To set the maximum number of times that Excel will recalculate, type the number of iterations in the Maximum Iterations box.

How do I change the calculation mode in Excel? ›

How to change the mode of calculation in Excel
  1. Click the Microsoft Office Button, and then click Excel Options.
  2. On the Formulas tab, select the calculation mode that you want to use.
May 5, 2022

How do I change the formula result in Excel? ›

Tip: When you are editing a cell that contains a formula, you can press F9 to permanently replace the formula with its calculated value.

How do you iterate a formula in Excel? ›

In the Calculation options section, select the Enable iterative calculation check box. To set the maximum number of times Excel will recalculate, type the number of iterations in the Maximum Iterations box. The higher the number of iterations, the more time Excel will need to recalculate a worksheet.

How to calculate precision in Excel? ›

Click File > Options. , and then click Excel Options. Click Advanced, and then under When calculating this workbook, select the Set precision as displayed check box, and then click OK. Click OK.

How do you adjust formulas in Excel? ›

F2 key in Excel - edit formulas. The F2 key in Excel toggles between Edit and Enter modes. When you want to make changes to an existing formula, select the formula cell and press F2 to enter the Edit mode.

What is the function key for recalculation in Excel? ›

Use this setting to enable Custom Report refreshes by using Microsoft Excel recalculation keys. When this setting is enabled, you can use F9 to refresh the entire workbook or Shift + F9 to refresh the current sheet.

How do I change the evaluate formula in Excel? ›

Description
  1. Select the cell that you want to evaluate. ...
  2. On the Formulas tab, in the Formula Auditing group, click Evaluate Formula.
  3. Click Evaluate to examine the value of the underlined reference. ...
  4. Continue until each part of the formula has been evaluated.
  5. To see the evaluation again, click Restart.

What is an iterative calculation in Excel? ›

Iterative calculations are repeated calculations until a specific numeric condition is met. Iterative calculations help Excel find the solution to formulas by performing the same calculation repeatedly using previous results. By analyzing the previous results, Excel can find the likelihood of possible solutions.

How do you recalculate all cells in Excel? ›

CTRL + ALT + SHIFT + F9 to recheck all formula dependencies and then recalculate all formulas. Select any blank cell, press F2 and then Enter . Press CTRL + H .

What is the formula for accuracy in Excel? ›

The accuracy KPI is simply calculated as 1 – % Total Error (MAE, RMSE etc.). For example, if your MAE is 20%, then you have a 20% error rate and 80% forecast accuracy.

How do I change an existing formula in Excel? ›

Editing Formulas in Excel with the F2 Key
  1. Click with the mouse on the formula bar above the column headings (where it says fx). ...
  2. Depending on your Excel settings, you may be able to double-click on the cell in question to enter editing mode.
  3. The most efficient way to edit a cell is to hit the F2 key when on the cell.

How do I fix the wrong formula in Excel? ›

Fill the cell with a nearby formula to correct it

and then select either Copy Formula from Above or Copy Formula from Left. If that doesn't work and you need the formula from the cell below, select Home > Fill > Up. If you need the formula from the cell to the right, select Home > Fill > Left.

How do I change all formulas in Excel at once? ›

Just press Ctrl+` (it is the key next to 1), this will enable formula view. Now press Ctrl+H and change the spreadsheet formulas or input range en masse.

How do you increase iterations in Excel Solver? ›

Click Data > Solver. On the All Methods tab, under Solving Limits, in the Max Time (Seconds) box, type the number of seconds that you want to allow for the solution time. Then, in the Iterations box, type the maximum number of iterations that you want to allow.

How do I replace simultaneously occurrences in Excel? ›

Replace text or numbers with the Find & Replace
  1. Press Ctrl+H or go to Home > Find & Select > Replace.
  2. In Find what, type the text or numbers you want to find.
  3. You can further define your search: ...
  4. In the Replace with box, enter the text or numbers you want to use to replace the search text.
  5. Select Replace or Replace All.

How do you repeat a formula in Excel with changing cell references? ›

Press F2 to enter the edit mode. Input your formula in one cell, and press Ctrl + Enter instead of Enter. That's it! The formula will get copied to all of the selected cells, and Excel will adjust relative cell references accordingly.

How do you speed up iterative calculations in Excel? ›

5. Increase Iteration Settings
  1. In the Excel options menu, find Formulas > Calculation options > Iteration.
  2. Raise the maximum iterations from 100 to 200 or 500. ...
  3. The higher the iteration setting, the more recursions allowed for complex formulas to resolve without errors.

Top Articles
Latest Posts
Article information

Author: Jeremiah Abshire

Last Updated:

Views: 6358

Rating: 4.3 / 5 (54 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Jeremiah Abshire

Birthday: 1993-09-14

Address: Apt. 425 92748 Jannie Centers, Port Nikitaville, VT 82110

Phone: +8096210939894

Job: Lead Healthcare Manager

Hobby: Watching movies, Watching movies, Knapping, LARPing, Coffee roasting, Lacemaking, Gaming

Introduction: My name is Jeremiah Abshire, I am a outstanding, kind, clever, hilarious, curious, hilarious, outstanding person who loves writing and wants to share my knowledge and understanding with you.