Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Overview

The operators specify what type of actions are performed on arguments (operands) in the formula. Inline Table Editing macro supports the operators that are common in spreadsheet software. They are calculated in a specific order which can be altered by the use of parentheses.

...

  • Unary operators

  • Binary arithmetic operators

  • Comparison operators

  • Concatenation operator

  • Reference operators

Unary operators

The unary operators have only one argument (operand). For example, when the unary negation operation is provided with a number, it returns the negative value of that number.

Operator

Meaning

Example

Description

-

Unary minus

-a

Returns the negative of its argument.

+

Unary plus

+a

Returns the positive of its argument.

%

Percent

a%

Calculate the percent of an argument.

Binary arithmetic operators

The binary arithmetic operators enable the computation of basic mathematical operations. They don't have to be wrapped with any functions. This table shows the basic behavior of the binary arithmetic operators:

Operator

Meaning

Example

Description

+

Addition

a + b

Add the two arguments.

-

Subtraction

a - b

Subtract the second argument from the first argument.

*

Multiplication

a * b

Multiply the two arguments.

/

Division

a / b

Divide the first argument by the second argument.

^

Exponentiation

a ^ b

Raise the first argument by the power of the second argument.

Comparison operators

The binary relational operators, when used in a formula, return boolean or logical values. Here are some very general rules:

Operator

Meaning

Example

Description

=

Equal to

a = b

True if a is equal to b.

<

Less than

a < b

True if a is less than b.

>

Greater than

a > b

True if a is greater than b.

<=

Less than or equal

a <= b

True if a is less than or equal to b.

>=

Greater than or equal

a >= b

True if a is greater than or equal to b.

<>

Not equal to

a <> b

True if a is not equal to b.

Concatenation operator

The concatenation operator is used to combine multiple text strings into a single value.

Operator

Meaning

Example

Description

&

Concatenation

"a" & "b"

Concatenates two arguments (left and right) into one

Reference operators

The reference operators are used to perform calculations of combined ranges.

...