SeaTable offers you many different functions that you can add to your table. One of them is the so-called formula column. Using formulas you can link values from different columns and create different functions based on the data types of these columns.
Among other things, you can calculate with values in a row , merge them or relate them to each other.

To apply a formula, you must first add a new formula column to your table. You can learn how to do that here .

Selection of a formula column

SeaTable provides you with a formula editor to help you enter formulas.

Formula wizard to simplify the input of especially complex formulas

Once your formula column is created, you can start writing the formula. The following figure shows a simple formula to calculate the average of five numbers.

Entering any formula in the text field

This formula always writes the static value 13.2 into the formula column as the result. However, the true power of the formula column only comes into its own when you use the values of other columns for your formula. With the {column name} in curly brackets you can reference existing columns in your table.

Columns available for selection in the formula editor

Then you can insert certain constants, operands and functions into your formula to calculate with, merge or relate the values of the different columns.

To be able to distinguish the different elements of your formula from each other, they are marked in a different color depending on their type:

Object Example
Functions
Functions are always marked blue in a formula
Text / String
Texts and strings are always marked in red in the formula editor
Numbers
Numbers are always highlighted in green in the formula editor
Column references
Column references are always marked purple in a formula

Opening and closing parentheses are always highlighted in the formula editor

Below are a few examples that illustrate the utility and use of formulas.

Of course you can rely on the fact that mathematical conventions also find their application in the formulas of SeaTable. Here are the most important examples:

  • You can **nest****functions** within each other using parentheses. Example: (( 1 + 2 ) * 3)
  • Dot before dash, the order of parentheses and other mathematical rules are taken into account in SeaTable.

You can format the results in the formula column. Each formula in SeaTable has a number, a date or a text/string as result. Therefore, depending on this, you have different format settings available.

Formatting formula results