In tables, you can use formulas in cells that are calculated based on the values from other cells. The cell that contains a formula displays the calculated value.
If the formula returns an error, the cell displays "####".
A formula is an expression that calculates a value based on the values from the cells specified in the expression.
The following functions are available and can be used in formulas:
Additionally, you can insert expressions to calculate results based on the values from the specified cells and range of cells.
A formula must start always with the equal sign (=) and can contain the following signs:
| Sign | Description |
|---|---|
| + | Plus |
| - | Minus |
| * | Times |
| / | Divided by |
| ^ | Exponent |
| () | Parantheses |
You can specify cells and ranges of cells within a formula by selecting them or by referring to them using the column and row labels.
Example: A1, D2, C3
Example: A2:B4
Example: Sum (A2:B2, A3:B3)
If the cell is part of merged cells, use the cell number of the top left cell. If the merged cells contain values, only the value from the top left cell is visible after merging the cells.
The following table has a cell range A1:G8.

After merging the cells, A3 identifies the merged cell that you can use in all formulas. The new cell displays the value that was previously in A3.

Every cell has an assigned data type.
The default data type is General, but you can change it in the Properties palette or by using the editing tools from the Table contextual ribbon.
The default data type is General, but you can change it in the Properties palette or using the editing tools from the Edit Table contextual toolbar.
The default data type is General, but you can change it in the Properties palette or using the editing tools from the Edit Table contextual toolbar.
Note: You cannot change the data type of a cell that contains a formula.
The following data types are available:
Note: If a formula cannot identify the data type, it returns an error and the cell displays "####".
To change the cell data type:
You can insert a formula into a cell with several methods:
Note: You cannot insert formulas in locked cells.
To insert formulas manually:
Note: The formula must start with the equal sign (=).
- or -
The cell switches to editing mode and the editing tools appear.
You can use functions as in the following examples:
Formulas are available for a selected cell on a contextual toolbar or ribbon, according to the selected user interface.
Formulas are available for a selected cell on a contextual toolbar.
Formulas are available for a selected cell on a contextual toolbar.
You can also use these flyouts on the Table contextual ribbon to insert data types and formulas.
You can also use these flyouts on the Edit Table contextual toolbar to insert data types and formulas.
You can also use these flyouts on the Edit Table contextual toolbar to insert data types and formulas.
To insert formulas using formula tools:
You can use the EditTableCell command to insert formulas and change the data type of cells.
To insert formulas using the EditTableCell command:
To specify the cell range:
The formula appears containing the specified range as its argument.
The identifier of the specified cell appears in the formula cell.
Note: Use the Cell option to select a cell in another table within the same drawing.
To change the data types of cells:
You can copy a formula to another cell within the same table. The range of cells changes according to the new location.
To keep the same range, insert the dollar sign ($) in front of the column or row identifier.
Example:
The following table shows how to control the copy behavior using the dollar sign ($):

If you copy the formula to cell E4, it updates to Sum(C4:C8).
If you copy the formula to cell F4, it remains unchanged as Sum($C3:$C7).
Parent Topic