How to make Excel Auto Calculate (6 Easy Methods)

 

The dataset, Sales of Products, has four columns: Product Name, Unit Price, Quantity, and Total Price.

Dataset of Sales of Products

  • To calculate the total price for Mobile, enter the following formula in cell E5:
=C5*D5

Calculate Total Price

  • Go to cell E5 and use Fill Handle to AutoFill data in range E6:E14. The same value will be displayed in all those cells.

Inaccurate Calculation

A change in the cell value does not change the value in the final formula output.

No Update in Output


Method 1 – Using the Excel Options Feature

Steps:

  • Go to the File tab.

Go to the File Tab

  • Select Options.

Select Options

  • The Excel Options dialog box will appear.
  • Go to the Formulas tab.
  • Look for the Calculation options section.
  • Click on Automatic under the Workbook Calculation header and press OK.

Select Automatic from Excel Options Dialog Box

  • Calculate the total price for Mobile in cell E5.
  • Select cell E5 and use Fill Handle to AutoFill data in range E6:E14.

Use Excel Options for Auto Calculation


Method 2 – Enabling Calculations Options to Automatic

  • Go to the Formulas tab.
  • Click on Calculation Options.
  • Select Automatic.

Select the Automatic Option

  • Calculate the total price for Mobile in cell E5.
  • Select cell E5 and use Fill Handle to AutoFill data in range E6:E14.

Enable Calculations Options to Automatic

 

Note: You can also use the keyboard buttons Alt + M + X + A to apply this method.

Method 3 – Using the Calculate Now Option 

If you have calculated the total price in the range E5:E14 using the previous method, but the values are the same in all of the cells. No Update in Total Price

Steps:

  • In this situation, select range E5:E14.
  • Go to the Formulas tab.
  • Click on Calculate Now from the Calculation group.

Select Calculate Now Option

The values in the range E5:E14 have been updated.

Use Calculate Now Option for Auto Calculation


Method 4 – Applying the Keyboard Shortcut for Auto Calculation

Steps:

  • If the values are the same in all the cells of range E5:E14 after calculation, press the F9 button.

Press F9 for Auto Calculation

It will update the results in the range E5:E14.

Total Price Updated

Note:

F9 – It recalculates formulas in all open workbooks if the formulas or cell values have been changed since the last calculation.

Shift + F9 – Updates changed formulas in the active worksheet only.

Ctrl + Alt + F9 – Recalculates all formulas in all open workbooks, even the ones that have not been changed.

Ctrl + Shift + Alt + F9 – Initially, it checks formulas dependent on other cells. Then, it recalculates all formulas in all open workbooks, even the ones that have not been changed.


Method 5 – Using an Excel Table

Steps:

  • Select any cell in the data set.
  • Press Ctrl + T.
  • Create Table dialog box opens.
  • Check the My table has headers option.
  • Press OK.

Create a Table

  • Calculate the total price for mobile in cell E5 by using this formula:
=[@[Unit Price]]*[@Quantity]

The rest of the cells in range E5:E14 will automatically update.

Auto Calculate for a Table


Method 6 – Applying VBA Code 

Steps:

  • Go to the Developer tab >> Visual Basic.

Open Visual Basic

  • Select Insert >> Module.

Create a New Module

  • Paste the following code in your VBA Macro Editor:

VBA Macro Editor

Sub Auto_Calculate()
    'variable declaration
    Dim WS As Worksheet
    Dim myRng As Range
    'set variables
    Set WS = ActiveSheet
    Set myRng = WS.Range("B5:E14")
    'auto calculate formula in a range of cells
    For i = 1 To myRng.Rows.Count
        myRng.Cells(i, 4) = myRng.Cells(i, 2) * myRng.Cells(i, 3)
    Next i
End Sub
  • Press the Run button or F5 key to run the code.

You will see the output in the range E5:E14.

Apply VBA Code to Auto Calculate

Note:

For i = 1 To myRng.Rows.Count
        myRng.Cells(i, 4) = myRng.Cells(i, 2) * myRng.Cells(i, 3)
Next i

This portion of the VBA code loops through each row in a range called myRng and multiplies the values in the second column (Unit Price) and third column (Quantity) of each row. The product is then assigned to the corresponding cell in the fourth column (Total Price) of the same row.


How to Enable Iterative Calculation in Excel

  • Follow Method 1 and open the Excel Options dialog box.
  • Go to the Formulas tab.
  • Under the Calculation Options section, check the Enable Iterative calculation option.
  • Press OK to save changes.

Enable Iterative Calculation


How to Set Calculation Precision in Excel

  • Follow Method 1 and open the Excel Options dialog box.
  • Go to the Advanced tab.
  • Look for the When calculating this workbook section.
  • Check the Set precision as displayed option.
  • Click OK to save changes.

Set Precision as Displayed


Things to Remember

There are a few things to remember while performing Excel auto-calculation.

  • Press the F9 key to refresh the worksheet.
  • Be careful with circular cell references.
  • Ensure that formulas are correctly inserted in cells.

Download the Practice Workbook

Download the workbook to practice.


Excel Auto Calculate: Knowledge Hub


<< Go Back to How to Calculate in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abu Sina Ibne Albaruni
Md. Abu Sina Ibne Albaruni

Md. Abu Sina Ibne Albaruni holds a BSc in Mechanical Engineering from Bangladesh University of Engineering and Technology. He is a dedicated employee of the ExcelDemy project. He has written quite a large number of articles for ExcelDemy. Besides, he has expertise in VBA. He efficiently automates Excel issues using VBA macros and actively engages in the ExcelDemy forum, offering valuable solutions for user interface challenges. His areas of interest in work and study span MATLAB, Machine Learning,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo