Skip to main content
Formula fields calculate results from other fields in the same record. They can handle math operations, text joining, date calculations, and conditional logic. Use them to turn repeated calculation rules into fields.

Use Cases

Formula Basics

Data Types

Before writing a formula, confirm the types of the fields used in the calculation. Different types support different operations and functions.

Reference Fields

In a formula, reference another field by its field name. Wrap the field name in {} and keep it consistent with the actual field name:
Formula editor with a field reference and the field guide

Operators

Functions and Expressions

Common Functions

Functions perform specific operations. For example, SUM calculates a total, LEFT extracts characters from the start of text, TEXTBEFORE extracts text before a delimiter, and TEXTSPLIT splits text by a delimiter. See the formula cheat sheet for more functions.

Text Processing

Logical Conditions

Use the IF function to return different values based on a condition:
When checking whether a field is empty, compare it with BLANK(). For example, IF({Weight}=BLANK(), 1, 2) returns 1 when a number field is empty, and 2 otherwise.

Complex Expressions

A complex formula can include multiple functions, field references, and operators. Use parentheses to control calculation order:

Result Display and Maintenance

Formatting and Interactive Display

Formula results can also use formatting and interactive display settings, such as percentage, progress bar, or icon styles. Available options depend on the formula result type.

Debugging and Optimization

  • Check data types: Confirm that operations and functions use the correct data types.
  • Verify field references: Confirm that field names are written correctly.
  • Test step by step: Break complex formulas into smaller parts and test them separately.
  • Avoid repeated calculations: If the same calculation is used in several places, consider storing the result in a separate field.

Scheduled refresh

Formulas usually recalculate when the fields they reference change. A formula that uses TODAY(), NOW(), FROMNOW(), or TONOW() also changes with time, such as “days until the due date”: even if the record doesn’t change, the result should update the next day. For these fields, click Refresh now in the column header menu to recalculate the whole column at the current time right away. To keep it up to date automatically, turn on Auto-refresh on schedule in the field settings (Business or higher): Scheduled refresh area at the bottom of a formula field's settings, with auto-refresh on schedule turned on and a daily cadence
  • A formula that uses only TODAY() refreshes once a day, using the time zone shown in the settings to decide when the date changes.
  • A formula that uses NOW(), FROMNOW(), or TONOW() refreshes about every 15 minutes and recalculates every record in the table each time. On large tables this can use significant resources; if day precision is enough, use TODAY() instead.
Automatic refresh runs only while the project is in recent use; a project that hasn’t been used for a while catches up the next time someone opens a table. Last refreshed in the field settings shows when the latest refresh ran. If the plan is downgraded, automatic refresh pauses and keeps its setting, then resumes after an upgrade to Business or higher; Refresh now is not affected. Lookup, rollup, conditional lookup, and conditional rollup fields whose filter uses a relative date such as today, current week, or past number of days can also be refreshed now or set to refresh on schedule. They refresh daily, weekly, or monthly, following the shortest period in the filter.

Complexity Limits

When you save a formula, Teable first expands it into the structure that actually takes part in the computation, then checks the size of that structure. If it exceeds a limit, the save is rejected and the message names what went over and the limit that applies — the number of expanded nodes, the nesting depth of the computation, the depth of references between formulas — and the change is not saved. A short formula can still go over: when one formula references another, and that one references a third, the expanded structure grows quickly. Storing intermediate results in their own fields and cutting repeated references and complex branches usually brings it back under the limit. If a saved formula hits a limit while computing, the field reports Formula compilation exceeds the computation limit; results have not been updated in computed field activity. Once the formula is simpler, the next write recomputes the field.
Last modified on November 24, 2026