Execute Formula order of operations

The order in which a calculation is performed can affect the return value of a formula, so it is important to understand how the order is determined and how you can change the order to obtain desired results.

Calculation order

Formulas calculate values in a specific order. A formula is entered directly into the Constructor box as elements to be calculated (the operands), which are separated by calculation operators. The transform calculates the formula from left to right, according to a specific order for each operator in the formula.

Operator precedence

If you combine several operators in a single formula, the transform performs the operations in a specific order. If a formula contains operators with the same precedence—for example, if a formula contains both a multiplication and division operator—the transform evaluates the operators from left to right. To change the order of evaluation, enclose in parentheses the part of the formula to be calculated first.

The Order of Operations in a formula is as follows:

Precedence Operator Meaning
1 ( ) Expressions in parentheses are calculated first.
2

: (colon)
(single space)
, (comma)

Reference operators
3 % Percent
4 ^ Exponentiation
5

* and /

Multiplication and Division

6

+ and ‐

Addition and Subtraction

7

&

Connects two strings of text (concatenation)

8

=
<  >
<=
>=
<>

Comparison