Reference · 2026-11-19

Airtable formula reference

The 81 functions of Airtable's formula language that Rowflare's formula field runs, each with its syntax and an example. Every "returns" value below was produced by Rowflare's formula engine on one sample record, so you can paste a formula and expect the same answer.

The basics

The sample record

Examples that use fields read this record. Functions that depend on the clock were run at 2026-11-19T09:30:00Z.

FieldValue
{Price}19.99
{Qty}3
{Name}" Ada Lovelace "
{Due}2026-12-04
{Start}2026-11-02
{Tags}["urgent", "web", "urgent", ""]
{Status}"Done"
{Email}"ada@example.com"

Numeric functions

FunctionWhat it doesExampleReturns
ABS(number)Absolute value.ABS(-4.5)4.5
AVERAGE(number, ...)Mean of the numbers; text and blanks are skipped.AVERAGE(2, 4, 9)5
CEILING(number, [significance])Rounds up to the nearest multiple of significance (default 1).CEILING(7.2, 5)10
COUNT(value, ...)Counts the numbers.COUNT(1, "a", 3, BLANK())2
COUNTA(value, ...)Counts non-empty values.COUNTA(1, "a", 3, BLANK())3
COUNTALL(value, ...)Counts every value, empty ones included.COUNTALL(1, "a", 3, BLANK())4
EVEN(number)Rounds away from zero to the nearest even integer.EVEN(3.1)4
EXP(power)e raised to the power.ROUND(EXP(1), 4)2.7183
FLOOR(number, [significance])Rounds down to the nearest multiple of significance (default 1).FLOOR(7.8, 5)5
INT(number)Largest integer less than or equal to the number.INT(-2.5)-3
LOG(number, [base])Logarithm, base 10 unless given.LOG(1000)3
MAX(number, ...)Largest number.MAX(4, 11, 7)11
MIN(number, ...)Smallest number.MIN(4, 11, 7)4
MOD(number, divisor)Remainder after division.MOD(17, 5)2
ODD(number)Rounds away from zero to the nearest odd integer.ODD(4)5
POWER(base, power)Base raised to the power.POWER(2, 10)1024
ROUND(number, [places])Rounds half away from zero to the given decimal places.ROUND({Price} * {Qty}, 1)60
ROUNDDOWN(number, [places])Rounds toward zero.ROUNDDOWN(2.789, 2)2.78
ROUNDUP(number, [places])Rounds away from zero.ROUNDUP(2.781, 2)2.79
SQRT(number)Square root.SQRT(144)12
SUM(number, ...)Adds the numbers.SUM(0.1, 0.2)0.3
VALUE(text)Turns text into a number, ignoring currency signs and separators.VALUE("$1,250.50")1250.5

Text functions

FunctionWhat it doesExampleReturns
CONCATENATE(text, ...)Joins values into one string. The & operator does the same.CONCATENATE("Order ", 42, " ready")"Order 42 ready"
ENCODE_URL_COMPONENT(text)Escapes text for use in a URL.ENCODE_URL_COMPONENT("fish & chips")"fish%20%26%20chips"
FIND(needle, haystack, [start])Position of needle (case-sensitive), 0 when absent.FIND("@", {Email})4
LEFT(text, count)First count characters.LEFT("Rowflare", 3)"Row"
LEN(text)Number of characters.LEN("Rowflare")8
LOWER(text)Lowercase.LOWER("ReadMe")"readme"
MID(text, start, count)count characters starting at position start (1-based).MID("2026-11-19", 6, 2)"11"
REPLACE(text, start, count, replacement)Replaces count characters starting at start.REPLACE("ID-0042", 1, 2, "SKU")"SKU-0042"
REPT(text, times)Repeats text.REPT("*", 4)"****"
SUBSTITUTE(text, old, new, [index])Replaces every occurrence of old, or only the index-th one.SUBSTITUTE("a-b-c", "-", "/", 2)"a-b/c"
T(value)Returns the value if it is text, otherwise empty.T(42)""
TRIM(text)Removes spaces at both ends.TRIM({Name})"Ada Lovelace"
UPPER(text)Uppercase.UPPER("sku-9")"SKU-9"
REGEX_MATCH(text, pattern)True when the regular expression matches.REGEX_MATCH({Email}, "@example\\.com$")TRUE
REGEX_EXTRACT(text, pattern)First match of the regular expression.REGEX_EXTRACT("Order #4471 shipped", "[0-9]+")"4471"
REGEX_REPLACE(text, pattern, replacement)Replaces every match.REGEX_REPLACE("555-123-4567", "[^0-9]", "")"5551234567"

Logical functions

FunctionWhat it doesExampleReturns
AND(value, ...)True when every argument is truthy.AND({Qty} > 0, {Status} = "Done")TRUE
BLANK()An empty value.IF({Qty} > 5, "bulk", BLANK())(empty)
ERROR()Returns an error on purpose, for example to flag bad input.IF({Qty} < 0, ERROR(), {Qty})3 (Qty is 3; a negative Qty gives #ERROR!)
FALSE()The value false.FALSE()FALSE
IF(condition, then, [else])then when the condition is truthy, otherwise else (empty if omitted).IF({Qty} >= 3, "bulk", "single")"bulk"
ISERROR(expression)True when the expression fails.ISERROR(MOD(1, 0))TRUE
NOT(value)Reverses truthiness.NOT({Status} = "Done")FALSE
OR(value, ...)True when any argument is truthy.OR({Qty} = 0, {Status} = "Done")TRUE
SWITCH(expression, pattern, result, ..., [default])Result for the first pattern equal to the expression.SWITCH({Status}, "Todo", 0, "Doing", 50, "Done", 100, -1)100
TRUE()The value true.TRUE()TRUE
XOR(value, ...)True when an odd number of arguments are truthy.XOR(TRUE(), TRUE(), TRUE())TRUE

Date and time functions

FunctionWhat it doesExampleReturns
DATEADD(date, count, unit)Adds count units (days, weeks, months, years, hours, minutes...).DATESTR(DATEADD({Due}, 1, "month"))"2027-01-04"
DATESTR(date)The date as YYYY-MM-DD.DATESTR({Due})"2026-12-04"
DATETIME_DIFF(date1, date2, [unit])date1 minus date2 in the unit (seconds by default).DATETIME_DIFF({Due}, {Start}, "days")32
DATETIME_FORMAT(date, [format])Formats a date with tokens such as YYYY, MMM, D, ddd, HH:mm.DATETIME_FORMAT({Due}, "ddd, MMM D YYYY")"Fri, Dec 4 2026"
DATETIME_PARSE(text, [format])Reads a date from text, with an optional format.DATESTR(DATETIME_PARSE("19/11/2026", "DD/MM/YYYY"))"2026-11-19"
DAY(date)Day of the month.DAY({Due})4
HOUR(date)Hour, 0 to 23.HOUR("2026-11-19T14:05:00Z")14
IS_AFTER(date1, date2)True when date1 is later.IS_AFTER({Due}, {Start})TRUE
IS_BEFORE(date1, date2)True when date1 is earlier.IS_BEFORE({Due}, TODAY())FALSE
IS_SAME(date1, date2, [unit])True when both fall in the same unit (day, month, year...).IS_SAME({Due}, "2026-12-31", "month")TRUE
MINUTE(date)Minute, 0 to 59.MINUTE("2026-11-19T14:05:00Z")5
MONTH(date)Month, 1 to 12.MONTH({Due})12
NOW()Current date and time; the field recalculates as time passes.DATETIME_FORMAT(NOW(), "YYYY-MM-DD HH:mm")"2026-11-19 09:30"
SECOND(date)Second, 0 to 59.SECOND("2026-11-19T14:05:09Z")9
TODAY()Current date.DATESTR(TODAY())"2026-11-19"
TONOW(date)Days from the date until now.TONOW({Start})17
FROMNOW(date)Days from now until the date.FROMNOW({Due})14
WEEKDAY(date, [start day])Day of the week, 0 for Sunday unless a start day is given.WEEKDAY({Due})5
WEEKNUM(date, [start day])Week of the year.WEEKNUM({Due})49
WORKDAY(date, days, [holidays])The date after a number of working days (Monday to Friday), skipping listed holidays.DATESTR(WORKDAY({Start}, 10, "2026-11-26"))"2026-11-16"
WORKDAY_DIFF(start, end, [holidays])Working days between two dates, both ends counted.WORKDAY_DIFF({Start}, {Due}, "2026-11-26")24
YEAR(date)Four-digit year.YEAR({Due})2026

Array functions

FunctionWhat it doesExampleReturns
ARRAYCOMPACT(values)Drops empty items.ARRAYJOIN(ARRAYCOMPACT({Tags}), "|")"urgent|web|urgent"
ARRAYFLATTEN(values)Flattens nested lists into one list.ARRAYJOIN(ARRAYFLATTEN({Tags}), "|")"urgent|web|urgent|"
ARRAYJOIN(values, [separator])Joins items into text, ", " by default.ARRAYJOIN({Tags}, " / ")"urgent / web / urgent / "
ARRAYUNIQUE(values)Keeps the first of each repeated item.ARRAYJOIN(ARRAYUNIQUE({Tags}), "|")"urgent|web|"
ARRAYSLICE(values, start, [end])Items from start to end (1-based, negative counts from the end).ARRAYJOIN(ARRAYSLICE({Tags}, 1, 2), "|")"urgent|web"

Record functions

FunctionWhat it doesExampleReturns
RECORD_ID()The record's id.RECORD_ID()"rec42"
CREATED_TIME()When the record was created.DATESTR(CREATED_TIME())"2026-11-01"
LAST_MODIFIED_TIME([field, ...])When the record was last changed.DATESTR(LAST_MODIFIED_TIME())"2026-11-18"

Compared with Airtable

Function names and argument order follow Airtable's formula field reference (read 2026-11-19). Of the functions listed there, Rowflare does not implement 3: SET_LOCALE, SET_TIMEZONE, TIMESTR. Because there is no SET_TIMEZONE, date parts and DATETIME_FORMAT always work in UTC.

The examples above were run in Rowflare, not in Airtable. Results for the same formula can differ in edge cases, for example rounding of very long decimals; check a formula on a few of your own records after you import a base from Airtable.

Formulas people ask for

The formula field is in every edition of Rowflare, including the open-source one you deploy to your own Cloudflare account. Formulas can read lookup and rollup fields, as the project tracker's Progress field does; for questions that cross several tables, see lookup of a lookup.