Skip to article
Browse documentation

Data

Formulas

Calculate values and reference fields with FrostTable formulas.

Syntax and field references

Formulas are expressions evaluated by FrostTable's formula engine. Use parentheses to group expressions, arithmetic operators for calculations, comparison operators for conditions, and function calls such as SUM(...). Refer to fields by their names in the current record.

Operators and practical examples

Arithmetic operators are +, -, *, /, %, and ^. Use & or CONCAT to combine text, comparisons (=, ==, !=, <>, <, <=, >, >=) to compare values, and AND, OR, or NOT for logical expressions. Replace field names in braces with exact names from your table.

{Quantity} * {Unit Price}
CONCAT({First}, " ", {Last})
DATE(2026, 11, 20)
IF({Hours} > 0, {Hours} * {Rate}, 0)

For a date seven days later, use DATEADD({Start Date}, 7, "DAY"). To calculate a sum, use SUM(value1, value2, ...); aggregate formula use across records depends on the formula context provided by the table.

Available function families

Built-in numeric functions are ABS, ROUND, ROUNDUP, ROUNDDOWN, CEILING, FLOOR, MOD, POWER, SQRT, MIN, MAX, SUM, PRODUCT, COUNT, COUNTA, AVERAGE, AVG, COUNTIF, SUMIF, AVERAGEIF, VALUE, TONUMBER, INT, TRUNC, and ISNUMBER. Text functions are CONCAT, CONCATENATE, UPPER, LOWER, TRIM, LEN, LEFT, RIGHT, MID, REPLACE, SUBSTITUTE, FIND, CONTAINS, TEXT, TOSTRING, and ISTEXT. Conditional and value functions are AND, OR, NOT, IF, IFERROR, COALESCE, BLANK, and ISBLANK. Date functions are TODAY, NOW, DATE, YEAR, MONTH, DAY, HOUR, MINUTE, SECOND, DATEADD, and DATEDIFF. Lookup functions XLOOKUP and VLOOKUP can also be used with compatible field and range values. Unsupported names or argument counts fail validation.

Cross-table references

Formula evaluation includes cross-table lookup support used by linked fields. Configure a linked-record field first; see Linked records. Formula syntax and data availability depend on that field configuration.

Errors and limitations

Use the formula preview or validation action to catch invalid syntax and missing fields. Expressions are bounded by engine limits and can fail for invalid types, unsupported functions, or invalid date values. Excel formulas are not generally executed by imports; only explicitly supported formula translation behavior should be relied on.