You can use the logical IF to populate table entries based on a test condition.
In this example, populate a comment column of a BOM with a calculation based on the quantity column value.
- Add a new column to the table and label it as necessary.
- From the table, click a cell or column heading and for Column type, select Equation.
- Click the Equation tool .
- For Function click IF.
-
With the cursor in the parentheses, for Columns, click QTY..
The Columns lists includes all columns in the table. Selecting items from this list permits calculations based on column values.
-
Enter strings and column headings to complete the calculation definition so that it reads as follows: IF('QTY.'=1;"Add "'QTY.'+2" more " 'PART NUMBER';"Standard").
This string tests the values of the quantity column. If the quantity is zero or larger than one, the string Standard is displayed. If the quantity is one, the string Add 3 more parts
is displayed.
-
Click
.