Inserting Formulas

You can insert a formula into a cell manually or using formula tools.

Note:

You cannot insert formulas in locked cells.

This task shows you how to:

Inserting Formulas Manually

You can insert formulas manually.

  1. Note: The formula must start with the equal to sign (=).
    Select a table cell and do one of the following to edit it in place:

    • Click inside the cell and enter =.
    • Double-click a cell.

    The cell switches to editing mode and the editing tools appear.

  2. Enter the formula.

    You can use functions as shown in the following examples:

    • =Sum(C3:D8). Adds the values from the cells in rows 3 through 8 in columns C and D
    • =Average(C3:D8). Calculates the average of the values from the cells in rows 3 through 8 in columns C and D.
    • =Count(C3:D8). Counts the number of cells in rows 3 through 8 in columns C and D.
    • =(C3+D3)/2. Adds the values of cells C3 and D3 and divides the result by 2.

  3. Press Enter to calculate the result.

Inserting Formulas Using Formula Tools

You can insert formulas for selected cells from the Formula flyout in the shortcut menu and on a contextual toolbar.

  1. Click inside a table cell to select it.
  2. Do one of the following:

    • On the Edit Table contextual toolbar, click the Formula flyout and select the formula.
    • Right-click and click Sum, Average, Count, or Cell.

  3. Specify the cell or the range of cells corresponding to the selected formula.
  4. Press Enter to calculate the result.