About formulas

Formulas are equations that perform calculations on values in a list. A formula starts with an equal sign (=). For example, the following formula multiplies 2 by 3 and then adds 5 to the result.

=5+2*3

You can use a formula in a calculated column and to calculate default values for a column.

 Important   Formulas can only be used in columns with the data type Calculated. You cannot change the data type of a column to Calculated.

A formula can also contain any or all of the following: functions, column references, operators, and constants.

Parts of a formula
=PI()*[Result]^2

Functions   The PI() function returns the value of pi: 3.142...

References (or column names)   [Result] represents the value in the Result column for the current row.

Constants   Numbers or text values entered directly into a formula, such as 2.

Operators   The ^ (caret) operator raises a number to a power, and the * (asterisk) operator multiplies.

Examples

A formula might use one or more of the above elements. Here are some examples of formulas (in order of complexity).