Browse the docs

Formula functions

Every formula function with its syntax, what it returns and a worked example on the Fernhill Accounts table, plus operators and error codes.

See tables on the product page
On this page

Write a formula

  1. 1

    Add a Formula field

    Add a field → Formula, and give it a Field name such as “Days to renewal”.

  2. 2

    Write the expression

    Type the expression, or use the Fields and Functions lists under it to insert at the cursor. A field is written in braces: {Renews}.

  3. 3

    Read the live check

    A status line checks as you type: it reads “Returns a number”, or names the exact problem, such as “#REF! no field is named {Renewal}”. Create field waits until it reads correctly.

  4. 4

    Format the result

    When it returns a number, a Format section appears: Number, Decimal, Percent or Currency, with decimal places.

Syntax

  • {Field name}

    Means
    A field of this record; capitals and spaces don’t matter
    Example
    {MRR}, {Onboarding call}
  • "text" or 'text'

    Means
    A piece of text
    Example
    "Trial"
  • 12, 1.5, .5

    Means
    A number
    Example
    {MRR} * 12
  • TRUE, FALSE, NULL

    Means
    Yes, no and empty
    Example
    IF({Paid}, TRUE, FALSE)
  • + - * / % ^

    Means
    Add, subtract, multiply, divide, remainder, power
    Example
    ({MRR} - 500) * 12
  • &

    Means
    Join text
    Example
    {Name} & " (" & {Plan} & ")"
  • = == != <> ≠

    Means
    Equal and not equal
    Example
    {Status} <> "Active"
  • < <= ≤ > >= ≥

    Means
    Order; dates compare by day, text alphabetically
    Example
    {Renews} <= TODAY()
The typographic forms ×, ÷ and − work too. Function names can be written in any case.

Functions

Examples use the Fernhill Accounts table — Name, Status, Plan, Owner, MRR, Renews and Onboarding call — on 6 October 2026, plus a few fields you might add, such as Seats and Tags. Dates are worked out in UTC.

Logic

  • IF(condition, then, else?)

    Returns
    One value when the condition holds, another when not
    Example on Accounts
    IF({Status} = "Churn risk", "Call this week", "") → A nudge on the rows at risk
  • IFERROR(value, fallback)

    Returns
    The fallback when the value is an error
    Example on Accounts
    IFERROR({MRR} / {Seats}, "n/a") → n/a instead of #DIV/0!
  • AND(a, b, …)

    Returns
    True when every argument is true
    Example on Accounts
    AND({Status} = "Trial", {MRR} > 500) → true for Baxter & Vine
  • OR(a, b, …)

    Returns
    True when any argument is true
    Example on Accounts
    OR({Status} = "Trial", {Status} = "Churn risk") → true for rows that need attention
  • NOT(value)

    Returns
    True when the value is false
    Example on Accounts
    NOT({Status} = "Active") → true for trials
  • ISBLANK(value)

    Returns
    True when the value is empty
    Example on Accounts
    IF(ISBLANK({Owner}), "Unassigned", "") → Flags rows without an owner
  • BLANK()

    Returns
    An empty value
    Example on Accounts
    IF({MRR} = 0, BLANK(), {MRR} * 12) → Empty instead of $0

Numbers

  • ABS(number)

    Returns
    The number without its sign
    Example on Accounts
    ABS({MRR} - 2000) → 460 for Northlight Coffee
  • AVG(a, b, …)

    Returns
    The average of the numbers
    Example on Accounts
    AVG({Q3 MRR}, {MRR}) → The mean of the two
  • CEIL(number, digits?)

    Returns
    Rounds up, to whole or to the given digits
    Example on Accounts
    CEIL({MRR} / 100) → 16 for $1,540
  • COUNT(a, b, …)

    Returns
    How many arguments are not empty
    Example on Accounts
    COUNT({Tags}) → How many tags are set
  • FLOOR(number, digits?)

    Returns
    Rounds down, to whole or to the given digits
    Example on Accounts
    FLOOR({MRR} / 100) → 15 for $1,540
  • MAX(a, b, …)

    Returns
    The largest number
    Example on Accounts
    MAX({MRR}, 1000) → 1,540 for Northlight Coffee
  • MIN(a, b, …)

    Returns
    The smallest number
    Example on Accounts
    MIN({MRR}, 1000) → 790 for Baxter & Vine
  • MOD(number, divisor)

    Returns
    The remainder after dividing
    Example on Accounts
    MOD({Seats}, 5) → Seats over a block of five
  • POWER(base, exponent)

    Returns
    The base raised to the exponent, like ^
    Example on Accounts
    ROUND({MRR} * POWER(1.05, 12), 0) → MRR after a year of 5% monthly growth
  • ROUND(number, digits?)

    Returns
    Rounds to whole or to the given digits
    Example on Accounts
    ROUND({MRR} * 12, -2) → 18,500 for $1,540
  • SQRT(number)

    Returns
    The square root
    Example on Accounts
    SQRT({Seats}) → The square root
  • SUM(a, b, …)

    Returns
    The total of the numbers
    Example on Accounts
    SUM({MRR}, {Add-ons}) → Total monthly revenue
  • VALUE(text)

    Returns
    The number a text holds
    Example on Accounts
    VALUE("1540") * 12 → 18,480

Text

  • CONCAT(a, b, …)

    Returns
    Joins values into one text, like &
    Example on Accounts
    CONCAT({Name}, " · ", {Plan}) → Northlight Coffee · Core
  • CONTAINS(text, part)

    Returns
    True when the text or list holds the part
    Example on Accounts
    CONTAINS({Name}, "Legal") → true for Quill Legal
  • JOIN(list, ", ")

    Returns
    A list as text with the separator between
    Example on Accounts
    JOIN({Tags}, " / ") → Retail / EU
  • LEFT(text, count?)

    Returns
    The first characters of the text
    Example on Accounts
    LEFT({Name}, 1) → N
  • LEN(text)

    Returns
    How many characters the text has
    Example on Accounts
    LEN({Name}) → 17 for Northlight Coffee
  • LOWER(text)

    Returns
    The text in lower case
    Example on Accounts
    LOWER({Plan}) → core
  • MID(text, start, count)

    Returns
    Characters from a position, counting from 1
    Example on Accounts
    MID({Name}, 1, 5) → North
  • REPLACE(text, find, with)

    Returns
    Replaces every match in the text
    Example on Accounts
    REPLACE({Name}, " & ", " and ") → Baxter and Vine
  • RIGHT(text, count?)

    Returns
    The last characters of the text
    Example on Accounts
    RIGHT({Plan}, 3) → ale for Scale
  • TEXT(value)

    Returns
    Any value as text
    Example on Accounts
    "MRR: " & TEXT({MRR}) → MRR: 1540
  • TRIM(text)

    Returns
    The text without leading and trailing spaces
    Example on Accounts
    TRIM({Name}) → Without stray spaces
  • UPPER(text)

    Returns
    The text in upper case
    Example on Accounts
    UPPER(LEFT({Plan}, 1)) → G

Dates

  • DATE(year, month, day)

    Returns
    A date from its parts
    Example on Accounts
    DATE(YEAR(TODAY()), 12, 31) → 31 December this year
  • DATEADD(date, amount, "days")

    Returns
    Moves a date by years, months, weeks, days or hours
    Example on Accounts
    DATEADD({Renews}, 1, "year") → The next renewal
  • DATEDIFF(start, end, "days")

    Returns
    Whole units from start to end
    Example on Accounts
    DATEDIFF(TODAY(), {Renews}, "days") → 22 for Baxter & Vine on 6 Oct 2026
  • DAY(date)

    Returns
    The day of the month, 1 to 31
    Example on Accounts
    DAY({Renews}) → 14 for 14 Nov
  • FORMATDATE(date, "YYYY-MM-DD")

    Returns
    A date as text in the pattern you give
    Example on Accounts
    FORMATDATE({Renews}, "DD/MM/YYYY") → 14/11/2026
  • HOUR(date)

    Returns
    The hour of the day, 0 to 23
    Example on Accounts
    HOUR({Created time}) < 9 → true for early arrivals
  • MONTH(date)

    Returns
    The month, 1 to 12
    Example on Accounts
    MONTH({Renews}) → 11 for 14 Nov
  • NOW()

    Returns
    The current date and time
    Example on Accounts
    DATEDIFF({Created time}, NOW(), "hours") → Age in hours
  • TODAY()

    Returns
    Today's date
    Example on Accounts
    {Renews} < TODAY() → true when the renewal has passed
  • WEEKDAY(date)

    Returns
    The day of the week, 0 for Sunday
    Example on Accounts
    WEEKDAY({Onboarding call}) → 1 for a Monday
  • YEAR(date)

    Returns
    The year
    Example on Accounts
    YEAR({Renews}) → 2026

Tip: Date units

DATEADD and DATEDIFF take "year", "month", "week", "day", "hour", "minute" or "second", singular or plural. Month and year steps follow the calendar. FORMATDATE understands YYYY, MM, DD, HH, mm and ss.

Errors

An error is a value, not a crash: the cell shows the code, and hovering it shows the whole message. Wrap a risky part in IFERROR to show something else.

  • #ERROR!

    When
    The formula can’t be read, or a function got the wrong number of arguments
    Example
    ROUND()
  • #NAME?

    When
    No function has that name
    Example
    FOO(1)
  • #REF!

    When
    No field has that name
    Example
    {Renewal} + 1
  • #VALUE!

    When
    A value of the wrong kind
    Example
    "abc" * 2
  • #DIV/0!

    When
    Dividing by zero
    Example
    {MRR} / 0
  • #NUM!

    When
    A number or date that can’t exist
    Example
    DATE(2026, 13, 40)
  • #CYCLE!

    When
    The formula refers back to itself, directly or through another formula
    Example
    A → B → A

How formulas behave

  • A formula is worked out every time the table is read, so TODAY() and NOW() are always current.
  • A formula can use another formula, a lookup or a rollup: SUM({Line totals}) adds up a lookup.
  • Empty counts as 0 in sums and as empty text when joining; a number written as text, such as “7”, counts as 7.
  • A formula is never typed into; it fills itself on every row, and imports skip it.

Limit: Formulas live on tables

Formula fields belong to tables. Tasklists use built-in and custom fields without formulas.