Guide Reference Generated from the app’s code
Formula functions
Every function a formula can call: 123 of them, in 10 groups. A formula refers to columns by name in square brackets ([Amount]), writes text in double quotes ("North") and dates between hashes (#2026-01-31#). EMPTY is a cell with no value. For how formulas fit into steps, see Working with steps.
How to read the examples#
Every example reads the same small table, called Orders, the one the formula bar’s help uses. Its results were computed by running each formula through the formula engine on this table when the page was generated, so they are what the app gives. An example that looks at other rows (a running total, a rank) gives one value per row, listed from row 1 to row 6. RUNDATE() is the date the run started; on this page it is 2026-11-25. The parameter region is "North".
Spaces at the start or end of a value are shown as ·.
| Row | Id | Customer | Region | Order Date | Shipped | Amount | Quantity | Discount | Notes | Active | Tags | Address | Code | Payload |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | Acme Ltd | North | 2026-01-05 | 2026-01-06 09:30:00 | 1200.50 | 3 | 0.1 | Rush order | TRUE | [“urgent”, “b2b”] | {city: “Leeds”, postcode: “LS1 4AP”} | AB-1234 | {“sku”: “X1”, “qty”: 3} |
| 2 | 2 | beta corp | South | 2026-01-17 | 2026-01-19 14:00:00 | 80.00 | 1 | 0 | empty | FALSE | [“b2c”] | {city: “Bristol”, postcode: “BS1 5TR”} | cd-0042 | {“sku”: “Y7”, “qty”: 1} |
| 3 | 3 | Acme Ltd | North | 2026-02-03 | 2026-02-03 16:45:00 | 450.25 | 2 | 0.05 | ··call first· | TRUE | [] | {city: “Leeds”, postcode: “LS2 7HY”} | AB-0007 | {“sku”: “X1”, “qty”: 2} |
| 4 | 4 | Cobalt & Sons | East | 2026-02-28 | empty | empty | 0 | empty | "" |
empty | empty | empty | empty | empty |
| 5 | 5 | beta corp | South | 2026-03-15 | 2026-03-16 08:05:00 | 99.99 | 5 | 0.2 | Gift wrap | TRUE | [“b2c”, “gift”] | {city: “Bristol”, postcode: “BS8 1QU”} | cd-1001 | {“sku”: “Z3”, “qty”: 5} |
| 6 | 6 | Delta | North | 2026-03-31 | 2026-04-02 11:15:00 | 310.00 | 4 | 0.1 | Repeat customer | FALSE | [“b2b”] | {city: “York”, postcode: “YO1 7HH”} | EF-2026 | {“sku”: “X1”, “qty”: 4} |
Operators#
| Operator | What it does | Example |
|---|---|---|
+ - * |
Add, subtract, multiply. Decimals stay exact; a date plus a whole number moves it by days. | [Amount] * [Quantity] |
/ |
Divide. Two whole numbers or decimals give an exact decimal (10 places); dividing by zero is a row error. | [Amount] / [Quantity] |
% |
Remainder, with the sign of the left side (MOD has the sign of the divisor). | [Id] % 2 |
^ |
Raise to a power. | 2 ^ 10 |
& |
Join as text. EMPTY counts as “”, numbers and dates are written as text. | [Customer] & " (" & [Region] & ")" |
= <> < <= > >= |
Compare. Text compares exactly, matching case. Comparing with EMPTY gives EMPTY. | [Amount] >= 1000 |
AND OR |
Both / either condition. Three-valued: FALSE AND EMPTY is FALSE, TRUE AND EMPTY is EMPTY. | [Active] AND [Amount] > 100 |
NOT |
The opposite of a condition (NOT EMPTY is EMPTY). | NOT [Active] |
IN |
Equal to one of a list of values; NOT IN for none of them. | [Region] IN ("North", "East") |
BETWEEN |
Between two values, both included. | [Order Date] BETWEEN #2026-01-01# AND #2026-01-31# |
IS EMPTY |
The value is EMPTY (IS NOT EMPTY: it has one). | [Notes] IS EMPTY |
. |
A field of a record. | [Address].city |
WITHIN / ORDERED BY |
After an across-rows function: the group and the order. | RUNNINGTOTAL([Amount]) WITHIN ([Region]) ORDERED BY ([Order Date]) |
#…# |
A date or date-time: #2026-01-31#, #2026-01-31T09:30#. | [Order Date] >= #2026-01-01# |
{…} |
A pipeline parameter, bound as a value. | [Region] = {region} |
Contents#
- Logic: AND, COALESCE, IF, IFEMPTY, IFERROR, IFS, ISBLANK, ISEMPTY, OR, SWITCH
- Text: CONCAT, CONTAINS, ENDSWITH, FIND, LEFT, LEN, LOWER, MID, PAD, PATTERN, PROPER, REGEXEXTRACT, REGEXMATCH, REGEXREPLACE, REPEAT, REPLACE, RIGHT, SIMILARITY, SPLIT, STARTSWITH, SUBSTITUTE, TEXTJOIN, TRIM, UPPER
- Numbers: ABS, BAND, CEILING, DIV, EXP, FLOOR, LN, LOG, MAX, MIN, MOD, MROUND, POWER, ROUND, ROUNDDOWN, ROUNDUP, SIGN, SQRT
- Dates and times: AGE, DATE, DATEADD, DATEDIFF, DAY, ENDOF, EOMONTH, FISCALPERIOD, FISCALYEAR, FORMATDATE, ISOWEEK, MONTH, NETWORKDAYS, NOW, PARSEDATE, RUNDATE, STARTOF, TODAY, TOZONE, WEEKDAY, WORKDAY, YEAR
- Conversion: TEXT, TOBOOL, TODATE, TODECIMAL, TONUMBER, VALUE
- Lists and records: COUNTITEMS, FIELD, ITEM, JOINLIST, JSONPATH, KEYS, LIST
- Across rows: CUMEDIST, DENSERANK, FIRSTVALUE, LASTVALUE, MOVINGAVERAGE, MOVINGSUM, NEXT, NTILE, PERCENTCHANGE, PREVIOUS, RANK, ROWNUMBER, RUNNINGCOUNT, RUNNINGTOTAL, SHAREOFTOTAL
- Group totals: AVERAGE, COUNTDISTINCT, COUNTROWS, MAXOF, MEDIAN, MINOF, TOTAL
- More calculations: MOVING, NETWORKDAYSINTL, NEXTNONEMPTY, PERCENTILEOF, PREVIOUSNONEMPTY, REVERSE, RUNNINGMAX, RUNNINGMIN, SOUNDEX, STDEV, WORKDAYINTL
- Parameters and context: FILENAME, PARAM, ROWID
Logic#
Choose between values, test conditions and handle EMPTY values and errors.
AND#
AND(condition, …)
TRUE when every condition is TRUE. The same as writing a AND b AND c. Follows three-valued logic like the AND operator: any FALSE gives FALSE; otherwise an EMPTY condition gives EMPTY.
| Parameter | Takes |
|---|---|
condition |
TRUE or FALSE; can be repeated |
Example:
AND([Active], [Amount] > 100)on row 1, where[Active]isTRUEand[Amount]is1200.50, givesTRUE(true/false)
COALESCE#
COALESCE(value, …)
The first value that is not EMPTY.
| Parameter | Takes |
|---|---|
value |
any value; can be repeated |
Examples:
COALESCE([Notes], [Region])on row 2, where[Notes]isEMPTYand[Region]is"South", gives"South"(text)COALESCE([Notes], [Region])on row 1, where[Notes]is"Rush order"and[Region]is"North", gives"Rush order"(text)
IF#
IF(condition, then, otherwise)
One value when a condition is true, another when it is not. When the condition is EMPTY (for example a comparison with an empty cell) it counts as not true, so the third value is used. For more than two outcomes use IFS.
| Parameter | Takes | What it is |
|---|---|---|
condition |
TRUE or FALSE | |
then |
any value | The value when the condition is TRUE |
otherwise |
any value | The value when it is FALSE or EMPTY |
Examples:
IF([Amount] > 1000, "Large", "Small")on row 1, where[Amount]is1200.50, gives"Large"(text)IF([Amount] > 1000, "Large", "Small")on row 4, where[Amount]isEMPTY, gives"Small"(text)
Amount is EMPTY here
IFEMPTY#
IFEMPTY(value, fallback)
The value, or a fallback when it is EMPTY. The same as COALESCE(value, fallback).
Also found by: IFNULL, NVL.
| Parameter | Takes |
|---|---|
value |
any value |
fallback |
any value |
Example:
IFEMPTY([Amount], 0)on row 4, where[Amount]isEMPTY, gives0.00(decimal)
IFERROR#
IFERROR(value, fallback)
The value, or a fallback for rows where working it out fails (division by zero, text that is not a number). Catches the row errors of the formula inside it, which would otherwise be handled by the step’s “on error” setting. An EMPTY value is not an error.
| Parameter | Takes |
|---|---|
value |
any value |
fallback |
any value |
Examples:
IFERROR([Amount] / [Quantity], 0)on row 4, where[Amount]isEMPTYand[Quantity]is0, gives0.0000000000(decimal)
Quantity is 0 hereIFERROR(VALUE("12.5"), 0)gives12.5000000000(decimal)
IFS#
IFS(condition, value, …, [otherwise])
The value of the first condition that is true, checked in order. Write pairs of condition and value, and optionally a last value for when none is true; without it the result is EMPTY. Conditions that are EMPTY count as not true.
Also found by: CASE.
| Parameter | Takes | What it is |
|---|---|---|
condition |
TRUE or FALSE; can be repeated | |
value |
any value; can be repeated | |
otherwise |
any value; optional | Used when no condition is TRUE |
Examples:
IFS([Amount] >= 1000, "Large", [Amount] >= 100, "Medium", "Small")on row 1, where[Amount]is1200.50, gives"Large"(text)IFS([Amount] >= 1000, "Large", [Amount] >= 100, "Medium", "Small")on row 3, where[Amount]is450.25, gives"Medium"(text)IFS([Region] = "North", 1, [Region] = "South", 2)on row 4, where[Region]is"East", givesEMPTY(whole number)
ISBLANK#
ISBLANK(value)
TRUE when the value is EMPTY, “” or only spaces.
| Parameter | Takes |
|---|---|
value |
a single value |
Examples:
ISBLANK([Notes])on row 4, where[Notes]is"", givesTRUE(true/false)ISBLANK([Notes])on row 3, where[Notes]is" call first ", givesFALSE(true/false)
ISEMPTY#
ISEMPTY(value)
TRUE when the value is EMPTY. The same as value IS EMPTY. Text that is “” or only spaces is not EMPTY; use ISBLANK to treat it as empty too.
Also found by: ISNULL.
| Parameter | Takes |
|---|---|
value |
any value |
Examples:
ISEMPTY([Notes])on row 2, where[Notes]isEMPTY, givesTRUE(true/false)ISEMPTY([Notes])on row 4, where[Notes]is"", givesFALSE(true/false)
Notes is “” here: blank, but not EMPTY
OR#
OR(condition, …)
TRUE when any condition is TRUE. The same as writing a OR b OR c. Any TRUE gives TRUE; otherwise an EMPTY condition gives EMPTY.
| Parameter | Takes |
|---|---|
condition |
TRUE or FALSE; can be repeated |
Example:
OR([Region] = "East", [Amount] > 1000)on row 1, where[Region]is"North"and[Amount]is1200.50, givesTRUE(true/false)
SWITCH#
SWITCH(value, match, result, …, [default])
Compares a value with a list of matches and gives the result of the first that matches. Matches are written in the formula. EMPTY can be a match (it matches an EMPTY value). Without a default, a value that matches nothing gives EMPTY.
| Parameter | Takes |
|---|---|
value |
any value |
match |
any value; can be repeated; written as it is, not a column |
result |
any value; can be repeated |
default |
any value; optional |
Examples:
SWITCH([Region], "North", "N", "South", "S", "Other")on row 1, where[Region]is"North", gives"N"(text)SWITCH([Region], "North", "N", "South", "S", "Other")on row 4, where[Region]is"East", gives"Other"(text)SWITCH([Notes], EMPTY, "No notes", "Has notes")on row 2, where[Notes]isEMPTY, gives"No notes"(text)
Text#
Cut, join, search, clean and compare text.
CONCAT#
CONCAT(value, …)
The values joined into one text, EMPTY values left out. Numbers and dates are written as text. The & operator does the same for two values.
| Parameter | Takes |
|---|---|
value |
a single value; can be repeated |
Examples:
CONCAT([Customer], " (", [Region], ")")on row 1, where[Customer]is"Acme Ltd"and[Region]is"North", gives"Acme Ltd (North)"(text)CONCAT([Notes], "!")on row 2, where[Notes]isEMPTY, gives"!"(text)
CONTAINS#
CONTAINS(text, search, [match case])
TRUE when the text contains the search text. Ignores case unless match case is TRUE.
| Parameter | Takes | What it is |
|---|---|---|
text |
text | |
search |
text | |
match case |
TRUE or FALSE; optional, default FALSE; written as it is, not a column |
TRUE to match case |
Examples:
CONTAINS([Notes], "ORDER")on row 1, where[Notes]is"Rush order", givesTRUE(true/false)CONTAINS([Notes], "ORDER", TRUE)on row 1, where[Notes]is"Rush order", givesFALSE(true/false)
ENDSWITH#
ENDSWITH(text, suffix, [match case])
TRUE when the text ends with the suffix. Ignores case unless match case is TRUE.
| Parameter | Takes | What it is |
|---|---|---|
text |
text | |
suffix |
text | |
match case |
TRUE or FALSE; optional, default FALSE; written as it is, not a column |
TRUE to match case |
Example:
ENDSWITH([Customer], "LTD")on row 1, where[Customer]is"Acme Ltd", givesTRUE(true/false)
FIND#
FIND(search, text, [start])
Where one text first appears in another (1 is the first character), or 0 when it does not. Matches case. With a start position, the search begins there.
Also found by: SEARCH, POSITION.
| Parameter | Takes |
|---|---|
search |
text |
text |
text |
start |
a whole number; optional |
Examples:
FIND("-", [Code])on row 1, where[Code]is"AB-1234", gives3(whole number)FIND("e", [Customer], 5)on row 1, where[Customer]is"Acme Ltd", gives0(whole number)FIND("a", [Customer], 3)on row 2, where[Customer]is"beta corp", gives4(whole number)
LEFT#
LEFT(text, count)
The first characters of a text.
| Parameter | Takes |
|---|---|
text |
text |
count |
a whole number |
Example:
LEFT([Customer], 4)on row 1, where[Customer]is"Acme Ltd", gives"Acme"(text)
LEN#
LEN(text)
The number of characters in a text.
Also found by: LENGTH.
| Parameter | Takes |
|---|---|
text |
text |
Examples:
LEN([Customer])on row 1, where[Customer]is"Acme Ltd", gives8(whole number)LEN([Notes])on row 4, where[Notes]is"", gives0(whole number)
LOWER#
LOWER(text)
The text in small letters.
| Parameter | Takes |
|---|---|
text |
text |
Example:
LOWER([Customer])on row 1, where[Customer]is"Acme Ltd", gives"acme ltd"(text)
MID#
MID(text, start, count)
Characters from the middle of a text: from a position (1 is the first), this many.
Also found by: SUBSTRING, SUBSTR.
| Parameter | Takes |
|---|---|
text |
text |
start |
a whole number |
count |
a whole number |
Example:
MID([Code], 4, 2)on row 1, where[Code]is"AB-1234", gives"12"(text)
PAD#
PAD(text, length, [character], [side])
The text made up to a length with a character on the left (or right). Longer text is kept whole.
Also found by: LPAD, RPAD.
| Parameter | Takes |
|---|---|
text |
text |
length |
a whole number |
character |
text; optional, default " "; written as it is, not a column |
side |
text; optional, default "left"; written as it is, not a column; one of "left", "right" |
Examples:
PAD(TEXT([Id]), 5, "0")on row 1, where[Id]is1, gives"00001"(text)PAD([Region], 7, ".", "right")on row 1, where[Region]is"North", gives"North.."(text)PAD([Customer], 3)on row 1, where[Customer]is"Acme Ltd", gives"Acme Ltd"(text)
PATTERN#
PATTERN(text)
The letter/digit shape of a text: every letter becomes A, every digit 9 (AB-1234 → AA-9999). The same shape the profile’s patterns and the “has pattern” filter use.
Also found by: SHAPE.
| Parameter | Takes |
|---|---|
text |
text |
Example:
PATTERN([Code])on row 1, where[Code]is"AB-1234", gives"AA-9999"(text)
PROPER#
PROPER(text)
Each word with a capital first letter and the rest small. Words are separated by spaces.
Also found by: INITCAP, TITLE.
| Parameter | Takes |
|---|---|
text |
text |
Example:
PROPER([Customer])on row 2, where[Customer]is"beta corp", gives"Beta Corp"(text)
REGEXEXTRACT#
REGEXEXTRACT(text, pattern, [group])
The part of the text that matches a regular expression (or one of its groups), “” when none does.
| Parameter | Takes |
|---|---|
text |
text |
pattern |
text; written as it is, not a column |
group |
a whole number; optional; written as it is, not a column |
Examples:
REGEXEXTRACT([Code], "\d+")on row 1, where[Code]is"AB-1234", gives"1234"(text)REGEXEXTRACT([Code], "([A-Z]+)-(\d+)", 2)on row 1, where[Code]is"AB-1234", gives"1234"(text)
REGEXMATCH#
REGEXMATCH(text, pattern, [match case])
TRUE when part of the text matches a regular expression. Ignores case unless match case is TRUE. Uses RE2 syntax: \d a digit, \s a space, [A-Z] a range, ^ and $ the start and end.
| Parameter | Takes | What it is |
|---|---|---|
text |
text | |
pattern |
text; written as it is, not a column | |
match case |
TRUE or FALSE; optional, default FALSE; written as it is, not a column |
TRUE to match case |
Example:
REGEXMATCH([Code], "^[a-z]{2}-\d{4}$")on row 1, where[Code]is"AB-1234", givesTRUE(true/false)
REGEXREPLACE#
REGEXREPLACE(text, pattern, replacement)
The text with every match of a regular expression replaced. \1 in the replacement is the first group.
| Parameter | Takes |
|---|---|
text |
text |
pattern |
text; written as it is, not a column |
replacement |
text |
Example:
REGEXREPLACE([Code], "\d", "#")on row 1, where[Code]is"AB-1234", gives"AB-####"(text)
REPEAT#
REPEAT(text, count)
The text repeated a number of times.
Also found by: REPT.
| Parameter | Takes |
|---|---|
text |
text |
count |
a whole number |
Example:
REPEAT("*", [Quantity])on row 1, where[Quantity]is3, gives"***"(text)
REPLACE#
REPLACE(text, start, count, new)
The text with some characters replaced, by position: from start, this many, by the new text. To replace by content use SUBSTITUTE.
| Parameter | Takes |
|---|---|
text |
text |
start |
a whole number |
count |
a whole number |
new |
text |
Example:
REPLACE([Code], 1, 2, "XY")on row 1, where[Code]is"AB-1234", gives"XY-1234"(text)
RIGHT#
RIGHT(text, count)
The last characters of a text.
| Parameter | Takes |
|---|---|
text |
text |
count |
a whole number |
Example:
RIGHT([Code], 4)on row 1, where[Code]is"AB-1234", gives"1234"(text)
SIMILARITY#
SIMILARITY(text, other)
How alike two texts are, from 0 (nothing alike) to 1 (the same), by Jaro-Winkler similarity. Matches case: compare LOWER(…) of both to ignore it.
Also found by: FUZZY, JAROWINKLER.
| Parameter | Takes |
|---|---|
text |
text |
other |
text |
Example:
SIMILARITY("Acme", [Customer])on row 1, where[Customer]is"Acme Ltd", gives0.9(float)
SPLIT#
SPLIT(text, separator)
SPLIT(text, separator, n)
The parts of a text between separators, as a list; or just part n. A part beyond the last gives “”. An EMPTY separator leaves the text whole.
| Parameter | Takes |
|---|---|
text |
text |
separator |
text |
n |
a whole number |
Examples:
SPLIT([Code], "-")on row 1, where[Code]is"AB-1234", gives["AB", "1234"](list of text)SPLIT([Code], "-", 2)on row 1, where[Code]is"AB-1234", gives"1234"(text)
STARTSWITH#
STARTSWITH(text, prefix, [match case])
TRUE when the text starts with the prefix. Ignores case unless match case is TRUE.
| Parameter | Takes | What it is |
|---|---|---|
text |
text | |
prefix |
text | |
match case |
TRUE or FALSE; optional, default FALSE; written as it is, not a column |
TRUE to match case |
Example:
STARTSWITH([Code], "ab")on row 1, where[Code]is"AB-1234", givesTRUE(true/false)
SUBSTITUTE#
SUBSTITUTE(text, old, new)
The text with every occurrence of one text replaced by another (matching case).
| Parameter | Takes |
|---|---|
text |
text |
old |
text |
new |
text |
Example:
SUBSTITUTE([Code], "-", "/")on row 1, where[Code]is"AB-1234", gives"AB/1234"(text)
TEXTJOIN#
TEXTJOIN(separator, value, …)
The values joined with a separator between them, EMPTY values left out.
Also found by: CONCAT_WS.
| Parameter | Takes |
|---|---|
separator |
text |
value |
a single value; can be repeated |
Example:
TEXTJOIN(", ", [Customer], [Notes], [Region])on row 2, where[Customer]is"beta corp"and[Notes]isEMPTYand[Region]is"South", gives"beta corp, South"(text)
TRIM#
TRIM(text)
The text without spaces at the start and end. Spaces between words are kept as they are.
| Parameter | Takes |
|---|---|
text |
text |
Example:
TRIM([Notes])on row 3, where[Notes]is" call first ", gives"call first"(text)
UPPER#
UPPER(text)
The text in capital letters.
| Parameter | Takes |
|---|---|
text |
text |
Example:
UPPER([Region])on row 1, where[Region]is"North", gives"NORTH"(text)
Numbers#
Round, compare and transform numbers.
ABS#
ABS(number)
The number without its sign.
| Parameter | Takes |
|---|---|
number |
a number |
Example:
ABS(-[Amount])on row 1, where[Amount]is1200.50, gives1200.50(decimal)
BAND#
BAND(number, width)
The start of the band of a given width the number falls in (BAND(1234, 100) is 1200). The same as FLOOR(number, width).
Also found by: BIN, BUCKET.
| Parameter | Takes |
|---|---|
number |
a number |
width |
a number |
Example:
BAND([Amount], 100)on row 1, where[Amount]is1200.50, gives1200(whole number)
CEILING#
CEILING(number)
CEILING(number, multiple)
The smallest whole number (or multiple) that is not less than the number.
Also found by: CEIL.
| Parameter | Takes |
|---|---|
number |
a number |
multiple |
a number |
Examples:
CEILING(2.1)gives3(decimal)CEILING([Amount], 100)on row 1, where[Amount]is1200.50, gives1300(whole number)
DIV#
DIV(dividend, divisor)
Whole-number division, cut towards zero (7 DIV 2 is 3). Dividing by zero is a row error.
Also found by: QUOTIENT.
| Parameter | Takes |
|---|---|
dividend |
a whole number |
divisor |
a whole number |
Examples:
DIV(7, 2)gives3(whole number)DIV(-7, 2)gives-3(whole number)
EXP#
EXP(number)
e raised to the number.
| Parameter | Takes |
|---|---|
number |
a number |
Example:
EXP(0)gives1.0(float)
FLOOR#
FLOOR(number)
FLOOR(number, multiple)
The largest whole number (or multiple) that is not more than the number.
| Parameter | Takes |
|---|---|
number |
a number |
multiple |
a number |
Examples:
FLOOR(-2.1)gives-3(decimal)FLOOR([Amount], 100)on row 1, where[Amount]is1200.50, gives1200(whole number)
LN#
LN(number)
The natural logarithm. Zero or a negative number is a row error.
| Parameter | Takes |
|---|---|
number |
a number |
Example:
LN(EXP(2))gives2.0(float)
LOG#
LOG(number, [base])
The logarithm, base 10 unless another base is given. Zero or a negative number is a row error.
Also found by: LOG10.
| Parameter | Takes |
|---|---|
number |
a number |
base |
a number; optional |
Examples:
LOG(1000)gives3.0(float)LOG(8, 2)gives3.0(float)
MAX#
MAX(value, …)
The largest of the values on this row, EMPTY ones left out. MAXOF gives the largest in a group.
Also found by: GREATEST.
| Parameter | Takes |
|---|---|
value |
a value that can be ordered; can be repeated |
Example:
MAX([Order Date], #2026-02-01#)on row 1, where[Order Date]is2026-01-05, gives2026-02-01(date)
MIN#
MIN(value, …)
The smallest of the values on this row, EMPTY ones left out. MINOF gives the smallest in a group.
Also found by: LEAST.
| Parameter | Takes |
|---|---|
value |
a value that can be ordered; can be repeated |
Examples:
MIN([Amount], 500)on row 1, where[Amount]is1200.50, gives500.00(decimal)MIN([Amount], 500)on row 4, where[Amount]isEMPTY, gives500.00(decimal)
MOD#
MOD(dividend, divisor)
The remainder after division, with the sign of the divisor (as in a spreadsheet). Dividing by zero is a row error. The % operator keeps the sign of the dividend instead: -7 % 3 is -1, MOD(-7, 3) is 2.
| Parameter | Takes |
|---|---|
dividend |
a number |
divisor |
a number |
Examples:
MOD(-7, 3)gives2(whole number)MOD([Amount], 100)on row 1, where[Amount]is1200.50, gives0.50(decimal)
MROUND#
MROUND(number, multiple)
The number rounded to the nearest multiple of another (half away from zero).
| Parameter | Takes |
|---|---|
number |
a number |
multiple |
a number |
Example:
MROUND([Amount], 0.25)on row 5, where[Amount]is99.99, gives100.00(decimal)
POWER#
POWER(base, exponent)
A number raised to a power. The same as base ^ exponent.
Also found by: POW.
| Parameter | Takes |
|---|---|
base |
a number |
exponent |
a number |
Example:
POWER(2, [Quantity])on row 1, where[Quantity]is3, gives8.0(float)
ROUND#
ROUND(number, [places])
The number rounded to a number of decimal places (half away from zero). Negative places round to tens, hundreds and so on. Decimals stay exact.
| Parameter | Takes | What it is |
|---|---|---|
number |
a number | |
places |
a whole number; optional, default 0; written as it is, not a column |
Decimal places (default 0) |
Examples:
ROUND([Amount], 1)on row 1, where[Amount]is1200.50, gives1200.5(decimal)ROUND(2.345, 2)gives2.35(decimal)ROUND([Amount], -2)on row 1, where[Amount]is1200.50, gives1200(decimal)
ROUNDDOWN#
ROUNDDOWN(number, [places])
The number cut towards zero to a number of decimal places.
Also found by: TRUNC.
| Parameter | Takes |
|---|---|
number |
a number |
places |
a whole number; optional, default 0; written as it is, not a column |
Examples:
ROUNDDOWN(2.349, 2)gives2.34(decimal)ROUNDDOWN(-2.349, 2)gives-2.34(decimal)
ROUNDUP#
ROUNDUP(number, [places])
The number rounded away from zero to a number of decimal places.
| Parameter | Takes |
|---|---|
number |
a number |
places |
a whole number; optional, default 0; written as it is, not a column |
Examples:
ROUNDUP(2.341, 2)gives2.35(decimal)ROUNDUP(-2.341, 2)gives-2.35(decimal)ROUNDUP([Amount])on row 1, where[Amount]is1200.50, gives1201(decimal)
SIGN#
SIGN(number)
1 for a positive number, -1 for a negative one, 0 for zero.
| Parameter | Takes |
|---|---|
number |
a number |
Example:
SIGN([Quantity] - 2)on row 1, where[Quantity]is3, gives1(whole number)
SQRT#
SQRT(number)
The square root. A negative number is a row error.
| Parameter | Takes |
|---|---|
number |
a number |
Example:
SQRT([Quantity] + 6)on row 1, where[Quantity]is3, gives3.0(float)
Dates and times#
Build, take apart, move and compare dates and date-times.
AGE#
AGE(date, [as of])
Completed years from a date (a birth date, a start date) to today, or to another date.
Its value depends on when the formula runs.
| Parameter | Takes |
|---|---|
date |
a date or date-time |
as of |
a date or date-time; optional |
Example:
AGE(#1990-06-15#, #2026-06-14#)gives35(whole number)
DATE#
DATE(year, month, day)
The date with this year, month and day. As in a spreadsheet, a month or day beyond the end rolls over: DATE(2026, 2, 30) is 2 March 2026, DATE(2026, 13, 1) is 1 January 2027, and day 0 is the last day of the month before.
Also found by: MAKEDATE, DATEFROMPARTS.
| Parameter | Takes |
|---|---|
year |
a whole number |
month |
a whole number |
day |
a whole number |
Examples:
DATE(YEAR([Order Date]), 2, 28)on row 1, where[Order Date]is2026-01-05, gives2026-02-28(date)DATE(2026, 2, 30)gives2026-03-02(date)
DATEADD#
DATEADD(date, amount, unit)
The date moved by a number of days, weeks, months, quarters, years, hours, minutes or seconds. A negative amount moves back. Months clamp to the month’s end. Adding hours to a date gives a date-time.
Also found by: EDATE.
| Parameter | Takes |
|---|---|
date |
a date or date-time |
amount |
a whole number |
unit |
text; written as it is, not a column; one of "day", "week", "month", "quarter", "year", "hour", "minute", "second" |
Examples:
DATEADD([Order Date], 1, "month")on row 1, where[Order Date]is2026-01-05, gives2026-02-05(date)DATEADD(#2026-01-31#, 1, "month")gives2026-02-28(date)DATEADD([Order Date], [Quantity], "day")on row 1, where[Order Date]is2026-01-05and[Quantity]is3, gives2026-01-08(date)DATEADD([Shipped], -30, "minute")on row 1, where[Shipped]is2026-01-06 09:30:00, gives2026-01-06 09:00:00(date-time)
DATEDIFF#
DATEDIFF(start, end, unit)
The number of whole days, weeks, months, quarters, years, hours, minutes or seconds from start to end. Negative when end is before start. Only complete units count: 15 January to 14 March is 1 month.
Also found by: DATEDIF.
| Parameter | Takes |
|---|---|
start |
a date or date-time |
end |
a date or date-time |
unit |
text; written as it is, not a column; one of "day", "week", "month", "quarter", "year", "hour", "minute", "second" |
Examples:
DATEDIFF([Order Date], [Shipped], "day")on row 1, where[Order Date]is2026-01-05and[Shipped]is2026-01-06 09:30:00, gives1(whole number)DATEDIFF(#2026-01-15#, #2026-03-14#, "month")gives1(whole number)
DAY#
DAY(date)
The day of the month, 1 to 31.
| Parameter | Takes |
|---|---|
date |
a date or date-time |
Example:
DAY([Order Date])on row 1, where[Order Date]is2026-01-05, gives5(whole number)
ENDOF#
ENDOF(date, unit)
The last day of the week (Sunday), month, quarter or year the date is in.
| Parameter | Takes |
|---|---|
date |
a date |
unit |
text; written as it is, not a column; one of "week", "month", "quarter", "year" |
Examples:
ENDOF([Order Date], "quarter")on row 1, where[Order Date]is2026-01-05, gives2026-03-31(date)ENDOF([Order Date], "week")on row 1, where[Order Date]is2026-01-05, gives2026-01-11(date)
EOMONTH#
EOMONTH(date, [months])
The last day of the month, optionally a number of months later (or earlier).
| Parameter | Takes |
|---|---|
date |
a date or date-time |
months |
a whole number; optional |
Examples:
EOMONTH([Order Date])on row 1, where[Order Date]is2026-01-05, gives2026-01-31(date)EOMONTH([Order Date], 1)on row 1, where[Order Date]is2026-01-05, gives2026-02-28(date)
FISCALPERIOD#
FISCALPERIOD(date, [start month])
The month of the fiscal year, 1 to 12, for a year starting in a given month.
| Parameter | Takes |
|---|---|
date |
a date or date-time |
start month |
a whole number; optional, default 1; written as it is, not a column |
Example:
FISCALPERIOD([Order Date], 4)on row 1, where[Order Date]is2026-01-05, gives10(whole number)
FISCALYEAR#
FISCALYEAR(date, [start month])
The fiscal year of a date, named by the calendar year it ends in, for a year starting in a given month.
| Parameter | Takes | What it is |
|---|---|---|
date |
a date or date-time | |
start month |
a whole number; optional, default 1; written as it is, not a column |
1 for January … 12 |
Examples:
FISCALYEAR([Order Date], 4)on row 1, where[Order Date]is2026-01-05, gives2026(whole number)FISCALYEAR(#2026-05-01#, 4)gives2027(whole number)
FORMATDATE#
FORMATDATE(date, format)
A date as text in a format such as “dd/MM/yyyy” or “d MMM yyyy”. yyyy year, MM month (M without a leading zero, MMM Jan, MMMM January), dd day (d), EEE Mon, EEEE Monday, HH hours (00-23), hh hours (01-12) with a for AM/PM, mm minutes, ss seconds. Text in single quotes is kept as written.
| Parameter | Takes |
|---|---|
date |
a date, time or date-time |
format |
text; written as it is, not a column |
Examples:
FORMATDATE([Order Date], "dd/MM/yyyy")on row 1, where[Order Date]is2026-01-05, gives"05/01/2026"(text)FORMATDATE([Order Date], "d MMM yyyy")on row 1, where[Order Date]is2026-01-05, gives"5 Jan 2026"(text)FORMATDATE([Shipped], "yyyy-MM-dd HH:mm")on row 1, where[Shipped]is2026-01-06 09:30:00, gives"2026-01-06 09:30"(text)
ISOWEEK#
ISOWEEK(date)
The ISO week number, 1 to 53 (weeks start on Monday; week 1 has the year’s first Thursday).
Also found by: WEEKNUM.
| Parameter | Takes |
|---|---|
date |
a date or date-time |
Example:
ISOWEEK([Order Date])on row 1, where[Order Date]is2026-01-05, gives2(whole number)
MONTH#
MONTH(date)
The month of a date, 1 to 12.
| Parameter | Takes |
|---|---|
date |
a date or date-time |
Example:
MONTH([Order Date])on row 3, where[Order Date]is2026-02-03, gives2(whole number)
NETWORKDAYS#
NETWORKDAYS(start, end)
The number of working days (Monday to Friday) from start to end, both included. Negative when end is before start.
Also found by: WORKDAYS.
| Parameter | Takes |
|---|---|
start |
a date |
end |
a date |
Examples:
NETWORKDAYS([Order Date], #2026-01-16#)on row 1, where[Order Date]is2026-01-05, gives10(whole number)NETWORKDAYS([Order Date], [Order Date])on row 2, where[Order Date]is2026-01-17, gives0(whole number)
NOW#
NOW()
The date and time now, as a wall-clock date-time on this computer.
Its value depends on when the formula runs.
Example:
NOW() > #2026-01-01T00:00#givesTRUE(true/false)
PARSEDATE#
PARSEDATE(text, format)
Reads a date (or date-time) from text in a given format. Text that does not fit is a row error. The format uses the same letters as FORMATDATE. A format with a time part gives a date-time.
Also found by: STRPTIME.
| Parameter | Takes |
|---|---|
text |
text |
format |
text; written as it is, not a column |
Examples:
PARSEDATE("05/01/2026", "dd/MM/yyyy")gives2026-01-05(date)PARSEDATE("2026-01-06 09:30", "yyyy-MM-dd HH:mm")gives2026-01-06 09:30:00(date-time)
RUNDATE#
RUNDATE()
The date the run started: the same on every row and every step of a run. While designing it is the date of the preview.
Its value depends on when the formula runs.
Example:
RUNDATE() >= #2026-01-01#givesTRUE(true/false)
STARTOF#
STARTOF(date, unit)
The first day of the day, week (Monday), month, quarter or year the date is in.
Also found by: DATETRUNC.
| Parameter | Takes |
|---|---|
date |
a date or date-time |
unit |
text; written as it is, not a column; one of "day", "week", "month", "quarter", "year" |
Examples:
STARTOF([Order Date], "month")on row 1, where[Order Date]is2026-01-05, gives2026-01-01(date)STARTOF([Order Date], "week")on row 2, where[Order Date]is2026-01-17, gives2026-01-12(date)STARTOF([Shipped], "day")on row 1, where[Shipped]is2026-01-06 09:30:00, gives2026-01-06 00:00:00(date-time)
TODAY#
TODAY()
Today’s date, when the formula runs. Changes from day to day; for a value fixed for the whole run use RUNDATE.
Its value depends on when the formula runs.
Example:
TODAY() >= #2026-01-01#givesTRUE(true/false)
TOZONE#
TOZONE(date-time, zone)
Attaches a time zone to a wall-clock date-time, or gives the wall-clock time of an instant in a zone. TOZONE([Local time], “Europe/Paris”) reads a wall-clock time as Paris time, giving an instant. TOZONE([Instant], “Asia/Tokyo”) gives the wall-clock time in Tokyo.
Also found by: TIMEZONE, ATZONE.
| Parameter | Takes |
|---|---|
date-time |
a date or date-time |
zone |
text; written as it is, not a column |
Example:
TOZONE(TOZONE([Shipped], "UTC"), "Europe/Paris")on row 1, where[Shipped]is2026-01-06 09:30:00, gives2026-01-06 10:30:00(date-time)
WEEKDAY#
WEEKDAY(date)
The day of the week: 1 for Monday … 7 for Sunday.
Also found by: DAYOFWEEK.
| Parameter | Takes |
|---|---|
date |
a date or date-time |
Examples:
WEEKDAY([Order Date])on row 1, where[Order Date]is2026-01-05, gives1(whole number)WEEKDAY([Order Date])on row 2, where[Order Date]is2026-01-17, gives6(whole number)
WORKDAY#
WORKDAY(date, days)
The working day (Monday to Friday) a number of working days after the date (before, when negative). The start day itself is not counted; from a weekend the count starts at the nearest working day.
| Parameter | Takes |
|---|---|
date |
a date |
days |
a whole number |
Examples:
WORKDAY([Order Date], 5)on row 1, where[Order Date]is2026-01-05, gives2026-01-12(date)WORKDAY([Order Date], 5)on row 2, where[Order Date]is2026-01-17, gives2026-01-23(date)WORKDAY([Order Date], -1)on row 1, where[Order Date]is2026-01-05, gives2026-01-02(date)
YEAR#
YEAR(date)
The year of a date.
| Parameter | Takes |
|---|---|
date |
a date or date-time |
Example:
YEAR([Order Date])on row 1, where[Order Date]is2026-01-05, gives2026(whole number)
Conversion#
Turn text into numbers, dates and TRUE/FALSE, and values into text.
TEXT#
TEXT(value)
TEXT(number, format)
A value as text; numbers optionally in a format such as “#,##0.00” or “0%”. Formats: “0”, “0.0”, “0.00”, “#,##0”, “#,##0.00”, “0%”, “0.0%” (percentages multiply by 100). Dates are written as yyyy-mm-dd; use FORMATDATE for other date formats.
Also found by: TOSTRING, STR.
| Parameter | Takes |
|---|---|
value |
a single value |
number |
a number |
format |
text; written as it is, not a column; one of "0", "0.0", "0.00", "#,##0", "#,##0.00", "0%", "0.0%" |
Examples:
TEXT([Amount], "#,##0.00")on row 1, where[Amount]is1200.50, gives"1,200.50"(text)TEXT([Discount], "0%")on row 1, where[Discount]is0.1, gives"10%"(text)TEXT([Order Date])on row 1, where[Order Date]is2026-01-05, gives"2026-01-05"(text)TEXT([Id])on row 1, where[Id]is1, gives"1"(text)
TOBOOL#
TOBOOL(text)
TOBOOL(number)
TRUE or FALSE from text (true/false, yes/no, y/n, 1/0, any case) or from a number (0 is FALSE).
Also found by: TOBOOLEAN.
| Parameter | Takes |
|---|---|
text |
text |
number |
a number |
Examples:
TOBOOL("Yes")givesTRUE(true/false)TOBOOL([Quantity])on row 4, where[Quantity]is0, givesFALSE(true/false)
TODATE#
TODATE(text, [order])
TODATE(date-time)
Reads a date from text (yyyy-mm-dd, or in the given order “dmy”, “mdy” or “ymd”), or the date of a date-time. With an order, separators /, - and . and month names are understood. Text that does not convert is a row error.
Also found by: DATEVALUE.
| Parameter | Takes |
|---|---|
text |
text |
order |
text; optional; written as it is, not a column; one of "dmy", "mdy", "ymd" |
date-time |
a date or date-time |
Examples:
TODATE("2026-01-05")gives2026-01-05(date)TODATE("05/01/2026", "dmy")gives2026-01-05(date)TODATE([Shipped])on row 1, where[Shipped]is2026-01-06 09:30:00, gives2026-01-06(date)
TODECIMAL#
TODECIMAL(number, [places])
A number as an exact decimal, optionally rounded to a number of places. Use it on floats in money calculations, so the result stays exact.
| Parameter | Takes |
|---|---|
number |
a number |
places |
a whole number; optional; written as it is, not a column |
Examples:
TODECIMAL([Discount])on row 1, where[Discount]is0.1, gives0.1000000000(decimal)TODECIMAL(1 / 3, 2)gives0.33(decimal)
TONUMBER#
TONUMBER(text, [style])
Reads a number written with thousands marks and a decimal mark, given by example (“1.234,56”). Styles: “1,234.56” (the default), “1.234,56”, “1 234,56”, “1’234.56”. Text that is not a number is a row error.
Also found by: NUMBERVALUE, PARSENUMBER.
| Parameter | Takes |
|---|---|
text |
text |
style |
text; optional, default "1,234.56"; written as it is, not a column; one of "1,234.56", "1.234,56", "1 234,56", "1'234.56" |
Examples:
TONUMBER("1.234,56", "1.234,56")gives1234.5600000000(decimal)TONUMBER("12,345.6")gives12345.6000000000(decimal)
VALUE#
VALUE(text)
Reads a number written plainly in text (“12.30”, “-5”, “1E3”). Anything else is a row error. For thousands marks and decimal commas use TONUMBER. The result is an exact decimal.
| Parameter | Takes |
|---|---|
text |
text |
Examples:
VALUE("12.30")gives12.3000000000(decimal)VALUE(RIGHT([Code], 4))on row 1, where[Code]is"AB-1234", gives1234.0000000000(decimal)
Lists and records#
Build and read lists, records and JSON text.
COUNTITEMS#
COUNTITEMS(list)
COUNTITEMS(text, separator)
The number of items in a list, or of parts of a text split by a separator.
| Parameter | Takes |
|---|---|
list |
a list |
text |
text |
separator |
text |
Examples:
COUNTITEMS([Tags])on row 1, where[Tags]is["urgent", "b2b"], gives2(whole number)COUNTITEMS("a,b,c", ",")gives3(whole number)
FIELD#
FIELD(record, name)
A field of a record, by name. The same as [Record].name, for names that need quoting.
| Parameter | Takes |
|---|---|
record |
a record |
name |
text; written as it is, not a column |
Example:
FIELD([Address], "city")on row 1, where[Address]is{city: "Leeds", postcode: "LS1 4AP"}, gives"Leeds"(text)
ITEM#
ITEM(list, position)
The item at a position in a list (1 is the first, -1 the last); EMPTY beyond the end.
| Parameter | Takes |
|---|---|
list |
a list |
position |
a whole number |
Examples:
ITEM([Tags], 1)on row 1, where[Tags]is["urgent", "b2b"], gives"urgent"(text)ITEM([Tags], -1)on row 1, where[Tags]is["urgent", "b2b"], gives"b2b"(text)ITEM([Tags], 1)on row 3, where[Tags]is[], givesEMPTY(text)
The list is empty here
JOINLIST#
JOINLIST(list, separator)
The items of a list joined into one text with a separator, EMPTY items left out. An EMPTY separator joins with a comma.
Also found by: ARRAY_TO_STRING.
| Parameter | Takes |
|---|---|
list |
a list |
separator |
text; written as it is, not a column |
Examples:
JOINLIST([Tags], ", ")on row 1, where[Tags]is["urgent", "b2b"], gives"urgent, b2b"(text)JOINLIST([Tags], ", ")on row 3, where[Tags]is[], gives""(text)
JSONPATH#
JSONPATH(json, path)
A value from JSON text, by path (“$.sku”, “$.items[0].name”), as text; EMPTY when the path is not there.
Also found by: JSON_EXTRACT, JSONVALUE.
| Parameter | Takes |
|---|---|
json |
text |
path |
text; written as it is, not a column |
Examples:
JSONPATH([Payload], "$.sku")on row 1, where[Payload]is"{\"sku\": \"X1\", \"qty\": 3}", gives"X1"(text)JSONPATH([Payload], "$.colour")on row 1, where[Payload]is"{\"sku\": \"X1\", \"qty\": 3}", givesEMPTY(text)
KEYS#
KEYS(record)
KEYS(json)
The field names of a record, or the keys of a JSON object written as text, as a list.
| Parameter | Takes |
|---|---|
record |
a record |
json |
text |
Examples:
KEYS([Address])on row 1, where[Address]is{city: "Leeds", postcode: "LS1 4AP"}, gives["city", "postcode"](list of text)KEYS([Payload])on row 1, where[Payload]is"{\"sku\": \"X1\", \"qty\": 3}", gives["sku", "qty"](list of text)
LIST#
LIST(item, …)
A list of the values.
Also found by: ARRAY.
| Parameter | Takes |
|---|---|
item |
a single value; can be repeated |
Example:
LIST([Region], [Customer])on row 1, where[Region]is"North"and[Customer]is"Acme Ltd", gives["North", "Acme Ltd"](list of text)
Across rows#
Calculations that look at other rows: running totals, ranks, previous and next values. WITHIN sets the group, ORDERED BY the order.
CUMEDIST#
CUMEDIST() [WITHIN (…)] ORDERED BY (…)
The share of rows in the group ordered at or before this one, from just above 0 to 1.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: PERCENTILE.
Example:
CUMEDIST() ORDERED BY ([Quantity])on rows 1 to 6 gives0.6666666666666666,0.3333333333333333,0.5,0.16666666666666666,1.0,0.8333333333333334(float)
DENSERANK#
DENSERANK() [WITHIN (…)] ORDERED BY (…)
Like RANK, but without gaps after ties (1, 1, 2).
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required.
Example:
DENSERANK() ORDERED BY ([Customer])on rows 1 to 6 gives1,4,1,2,4,3(whole number)
Text orders capitals first
FIRSTVALUE#
FIRSTVALUE(value) [WITHIN (…)] ORDERED BY (…)
The value on the first row of the group, by ORDERED BY.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required.
| Parameter | Takes |
|---|---|
value |
any value |
Example:
FIRSTVALUE([Customer]) WITHIN ([Region]) ORDERED BY ([Order Date])on rows 1 to 6 gives"Acme Ltd","beta corp","Acme Ltd","Cobalt & Sons","beta corp","Acme Ltd"(text)
LASTVALUE#
LASTVALUE(value) [WITHIN (…)] ORDERED BY (…)
The value on the last row of the group, by ORDERED BY.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required.
| Parameter | Takes |
|---|---|
value |
any value |
Example:
LASTVALUE([Customer]) WITHIN ([Region]) ORDERED BY ([Order Date])on rows 1 to 6 gives"Delta","beta corp","Delta","Cobalt & Sons","beta corp","Delta"(text)
MOVINGAVERAGE#
MOVINGAVERAGE(number, rows) [WITHIN (…)] ORDERED BY (…)
The average of this row and the rows before it in the group: a window of a given number of rows. Near the start of a group the window is shorter. EMPTY values are left out of the average.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: ROLLINGAVERAGE.
| Parameter | Takes |
|---|---|
number |
a number |
rows |
a whole number; written as it is, not a column |
Example:
MOVINGAVERAGE([Quantity], 3) ORDERED BY ([Order Date])on rows 1 to 6 gives3.0000000000,2.0000000000,2.0000000000,1.0000000000,2.3333333333,3.0000000000(decimal)
MOVINGSUM#
MOVINGSUM(number, rows) [WITHIN (…)] ORDERED BY (…)
The total of this row and the rows before it in the group: a window of a given number of rows.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: ROLLINGSUM.
| Parameter | Takes |
|---|---|
number |
a number |
rows |
a whole number; written as it is, not a column |
Example:
MOVINGSUM([Quantity], 2) ORDERED BY ([Order Date])on rows 1 to 6 gives3,4,3,2,5,9(whole number)
NEXT#
NEXT(value, [rows]) [WITHIN (…)] ORDERED BY (…)
The value on the row after in the group (or a number of rows after); EMPTY on the last row.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: LEAD.
| Parameter | Takes |
|---|---|
value |
any value |
rows |
a whole number; optional; written as it is, not a column |
Example:
NEXT([Order Date]) WITHIN ([Region]) ORDERED BY ([Order Date])on rows 1 to 6 gives2026-02-03,2026-03-15,2026-03-31,EMPTY,EMPTY,EMPTY(date)
NTILE#
NTILE(buckets) [WITHIN (…)] ORDERED BY (…)
Which of n equal-sized buckets the row falls in by ORDERED BY: 1 to n (4 for quartiles).
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: QUARTILE, DECILE.
| Parameter | Takes |
|---|---|
buckets |
a whole number; written as it is, not a column |
Example:
NTILE(3) ORDERED BY ([Amount])on rows 1 to 6 gives3,1,2,3,1,2(whole number)
PERCENTCHANGE#
PERCENTCHANGE(number) [WITHIN (…)] ORDERED BY (…)
The change from the previous row as a fraction of it (0.1 is 10% more); EMPTY when that is 0 or EMPTY.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: PCTCHANGE.
| Parameter | Takes |
|---|---|
number |
a number |
Example:
PERCENTCHANGE([Quantity]) ORDERED BY ([Order Date])on rows 1 to 6 givesEMPTY,-0.6666666667,1.0000000000,-1.0000000000,EMPTY,-0.2000000000(decimal)
PREVIOUS#
PREVIOUS(value, [rows]) [WITHIN (…)] ORDERED BY (…)
The value on the row before in the group (or a number of rows before); EMPTY on the first row.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: LAG.
| Parameter | Takes |
|---|---|
value |
any value |
rows |
a whole number; optional; written as it is, not a column |
Examples:
PREVIOUS([Amount]) WITHIN ([Region]) ORDERED BY ([Order Date])on rows 1 to 6 givesEMPTY,EMPTY,1200.50,EMPTY,80.00,450.25(decimal)PREVIOUS([Id], 2) ORDERED BY ([Order Date])on rows 1 to 6 givesEMPTY,EMPTY,1,2,3,4(whole number)
RANK#
RANK() [WITHIN (…)] ORDERED BY (…)
The rank of the row in its group by ORDERED BY: ties share a rank and leave a gap (1, 1, 3). ORDERED BY ([Amount] DESC) ranks the largest first. EMPTY values come last.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required.
Example:
RANK() ORDERED BY ([Amount] DESC)on rows 1 to 6 gives1,5,2,6,4,3(whole number)
ROWNUMBER#
ROWNUMBER() [WITHIN (…)] ORDERED BY (…)
The position of the row in its group by ORDERED BY: 1, 2, 3 …
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required.
Example:
ROWNUMBER() WITHIN ([Region]) ORDERED BY ([Order Date])on rows 1 to 6 gives1,1,2,1,2,3(whole number)
RUNNINGCOUNT#
RUNNINGCOUNT([value]) [WITHIN (…)] ORDERED BY (…)
How many rows (or non-EMPTY values) there are from the first row of the group to this one.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required.
| Parameter | Takes |
|---|---|
value |
any value; optional |
Examples:
RUNNINGCOUNT() ORDERED BY ([Order Date])on rows 1 to 6 gives1,2,3,4,5,6(whole number)RUNNINGCOUNT([Notes]) ORDERED BY ([Order Date])on rows 1 to 6 gives1,1,2,3,4,5(whole number)
RUNNINGTOTAL#
RUNNINGTOTAL(number) [WITHIN (…)] ORDERED BY (…)
The total of the values from the first row of the group to this one. EMPTY values add nothing; before any value the total is EMPTY.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: CUMSUM.
| Parameter | Takes |
|---|---|
number |
a number |
Example:
RUNNINGTOTAL([Amount]) WITHIN ([Region]) ORDERED BY ([Order Date])on rows 1 to 6 gives1200.50,80.00,1650.75,EMPTY,179.99,1960.75(decimal)
SHAREOFTOTAL#
SHAREOFTOTAL(number) [WITHIN (…)] [ORDERED BY (…)]
The value as a share of its group’s total (0.25 is a quarter); EMPTY when the total is 0.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order. Also found by: PERCENTOFTOTAL.
| Parameter | Takes |
|---|---|
number |
a number |
Examples:
SHAREOFTOTAL([Quantity])on rows 1 to 6 gives0.2000000000,0.0666666667,0.1333333333,0.0000000000,0.3333333333,0.2666666667(decimal)SHAREOFTOTAL([Quantity]) WITHIN ([Region])on rows 1 to 6 gives0.3333333333,0.1666666667,0.2222222222,EMPTY,0.8333333333,0.4444444444(decimal)
Group totals#
Totals, counts and averages of a whole group, on every row of it. WITHIN sets the group.
AVERAGE#
AVERAGE(number) [WITHIN (…)]
The average of the values in the group, EMPTY values left out.
A group total: every row of the group gets the same value. WITHIN (columns) sets the group (the whole table when left out). Also found by: AVG, MEAN.
| Parameter | Takes |
|---|---|
number |
a number |
Examples:
AVERAGE([Quantity]) WITHIN ([Region])on rows 1 to 6 gives3.0000000000,3.0000000000,3.0000000000,0.0000000000,3.0000000000,3.0000000000(decimal)AVERAGE([Amount])gives428.1480000000on every row (decimal)
COUNTDISTINCT#
COUNTDISTINCT(value) [WITHIN (…)]
The number of different values in the group, EMPTY not counted.
A group total: every row of the group gets the same value. WITHIN (columns) sets the group (the whole table when left out). Also found by: COUNTUNIQUE.
| Parameter | Takes |
|---|---|
value |
a single value |
Example:
COUNTDISTINCT([Customer]) WITHIN ([Region])on rows 1 to 6 gives2,1,2,1,1,2(whole number)
COUNTROWS#
COUNTROWS() [WITHIN (…)]
The number of rows in the group.
A group total: every row of the group gets the same value. WITHIN (columns) sets the group (the whole table when left out). Also found by: COUNT.
Example:
COUNTROWS() WITHIN ([Region])on rows 1 to 6 gives3,2,3,1,2,3(whole number)
MAXOF#
MAXOF(value) [WITHIN (…)]
The largest value in the group (a number, date or text).
A group total: every row of the group gets the same value. WITHIN (columns) sets the group (the whole table when left out).
| Parameter | Takes |
|---|---|
value |
a value that can be ordered |
Example:
MAXOF([Amount]) WITHIN ([Region])on rows 1 to 6 gives1200.50,99.99,1200.50,EMPTY,99.99,1200.50(decimal)
MEDIAN#
MEDIAN(number) [WITHIN (…)]
The middle value of the group (the average of the two middle ones when there is an even number).
A group total: every row of the group gets the same value. WITHIN (columns) sets the group (the whole table when left out).
| Parameter | Takes |
|---|---|
number |
a number |
Examples:
MEDIAN([Amount])gives310.000on every row (decimal)MEDIAN([Amount]) WITHIN ([Region])on rows 1 to 6 gives450.250,89.995,450.250,EMPTY,89.995,450.250(decimal)
MINOF#
MINOF(value) [WITHIN (…)]
The smallest value in the group (a number, date or text).
A group total: every row of the group gets the same value. WITHIN (columns) sets the group (the whole table when left out).
| Parameter | Takes |
|---|---|
value |
a value that can be ordered |
Example:
MINOF([Order Date]) WITHIN ([Region])on rows 1 to 6 gives2026-01-05,2026-01-17,2026-01-05,2026-02-28,2026-01-17,2026-01-05(date)
TOTAL#
TOTAL(number) [WITHIN (…)]
The total of the values in the group.
A group total: every row of the group gets the same value. WITHIN (columns) sets the group (the whole table when left out). Also found by: SUM, SUMIF.
| Parameter | Takes |
|---|---|
number |
a number |
Examples:
TOTAL([Amount])gives2140.74on every row (decimal)TOTAL([Amount]) WITHIN ([Region])on rows 1 to 6 gives1960.75,179.99,1960.75,EMPTY,179.99,1960.75(decimal)
More calculations#
Working days by a holiday calendar, running minimum and maximum, the previous and next non-empty value, moving figures, percentiles, and text read backwards or by sound.
MOVING#
MOVING(how, value, before, [after]) [WITHIN (…)] ORDERED BY (…)
A moving mean, sum, min, max, median, count or standard deviation over rows before and after this one. MOVING(“max”, [Sales], 2, 1) takes the largest of the two rows before, this row and the row after, in the order of ORDERED BY. EMPTY values are left out. Near the ends of a group the window is shorter.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: ROLLING.
| Parameter | Takes | What it is |
|---|---|---|
how |
text; written as it is, not a column; one of "mean", "sum", "min", "max", "median", "count", "stddev" |
|
value |
a number | |
before |
a whole number; written as it is, not a column | Rows before this one |
after |
a whole number; optional, default 0; written as it is, not a column |
Rows after this one |
Examples:
MOVING("max", [Quantity], 1, 1) ORDERED BY ([Order Date])on rows 1 to 6 gives3,3,2,5,5,5(whole number)MOVING("median", [Amount], 2) ORDERED BY ([Order Date])on rows 1 to 6 gives1200.500,640.250,450.250,265.125,275.120,204.995(decimal)
NETWORKDAYSINTL#
NETWORKDAYSINTL(start, end, weekend, [holidays], [extra working days])
The number of working days from start to end, both included, by a weekend mask and holidays. Negative when end is before start. The weekend, holidays and extra working days are as in WORKDAYINTL.
Also found by: NETWORKDAYS.INTL.
| Parameter | Takes | What it is |
|---|---|---|
start |
a date | |
end |
a date | |
weekend |
text | Seven 1/0 for Monday … Sunday, 1 a day off: “0000011” is Saturday and Sunday |
holidays |
a list of date; optional | Days off, as LIST(#2026-12-25#, …) |
extra working days |
a list of date; optional | Days that are working days after all |
Examples:
NETWORKDAYSINTL([Order Date], #2026-01-16#, "0000011", LIST(#2026-01-06#))on row 1, where[Order Date]is2026-01-05, gives9(whole number)NETWORKDAYSINTL([Order Date], #2026-01-16#, "0000001")on row 1, where[Order Date]is2026-01-05, gives11(whole number)
NEXTNONEMPTY#
NEXTNONEMPTY(value, [rows]) [WITHIN (…)] ORDERED BY (…)
The next value after this row in the group that is not EMPTY (or the nth such value).
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required.
| Parameter | Takes |
|---|---|
value |
any value |
rows |
a whole number; optional; written as it is, not a column |
Example:
NEXTNONEMPTY([Notes]) ORDERED BY ([Order Date])on rows 1 to 6 gives" call first "," call first ","","Gift wrap","Repeat customer",EMPTY(text)
PERCENTILEOF#
PERCENTILEOF(number, fraction) [WITHIN (…)]
The value a fraction of the way through the group in order (0.25 is the first quartile), interpolated. The fraction is kept between 0 and 1. Decimals stay exact.
A group total: every row of the group gets the same value. WITHIN (columns) sets the group (the whole table when left out). Also found by: PERCENTILE.INC, QUANTILECONT.
| Parameter | Takes |
|---|---|
number |
a number |
fraction |
a number; written as it is, not a column |
Example:
PERCENTILEOF([Amount], 0.25)gives99.99000000on every row (decimal)
PREVIOUSNONEMPTY#
PREVIOUSNONEMPTY(value, [rows]) [WITHIN (…)] ORDERED BY (…)
The last value before this row in the group that is not EMPTY (or the nth such value).
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required.
| Parameter | Takes |
|---|---|
value |
any value |
rows |
a whole number; optional; written as it is, not a column |
Example:
PREVIOUSNONEMPTY([Amount]) ORDERED BY ([Order Date])on rows 1 to 6 givesEMPTY,1200.50,80.00,450.25,450.25,99.99(decimal)
REVERSE#
REVERSE(text)
The characters of a text in reverse order.
| Parameter | Takes |
|---|---|
text |
text |
Example:
REVERSE([Code])on row 1, where[Code]is"AB-1234", gives"4321-BA"(text)
RUNNINGMAX#
RUNNINGMAX(value) [WITHIN (…)] ORDERED BY (…)
The largest value from the first row of the group to this one; EMPTY values are left out.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: CUMMAX.
| Parameter | Takes |
|---|---|
value |
a value that can be ordered |
Example:
RUNNINGMAX([Quantity]) WITHIN ([Region]) ORDERED BY ([Order Date])on rows 1 to 6 gives3,1,3,0,5,4(whole number)
RUNNINGMIN#
RUNNINGMIN(value) [WITHIN (…)] ORDERED BY (…)
The smallest value from the first row of the group to this one; EMPTY values are left out.
Across rows: it looks at other rows of its group. WITHIN (columns) sets the group (the whole table when left out); ORDERED BY (columns) sets the order and is required. Also found by: CUMMIN.
| Parameter | Takes |
|---|---|
value |
a value that can be ordered |
Example:
RUNNINGMIN([Amount]) ORDERED BY ([Order Date])on rows 1 to 6 gives1200.50,80.00,80.00,80.00,80.00,80.00(decimal)
SOUNDEX#
SOUNDEX(text)
The American Soundex code of a name: its first letter and three digits for how it sounds. Robert and Rupert are both R163. Only the letters A to Z count; text without any gives EMPTY.
| Parameter | Takes |
|---|---|
text |
text |
Examples:
SOUNDEX([Customer])on row 1, where[Customer]is"Acme Ltd", gives"A254"(text)SOUNDEX("Robert")gives"R163"(text)
STDEV#
STDEV(number) [WITHIN (…)]
The (sample) standard deviation of the values in the group; EMPTY values are left out.
A group total: every row of the group gets the same value. WITHIN (columns) sets the group (the whole table when left out). Also found by: STDDEV, STDEV.S.
| Parameter | Takes |
|---|---|
number |
a number |
Example:
STDEV([Quantity]) WITHIN ([Region])on rows 1 to 6 gives1.0,2.8284271247461903,1.0,EMPTY,2.8284271247461903,1.0(float)
WORKDAYINTL#
WORKDAYINTL(date, days, weekend, [holidays], [extra working days])
The working day a number of working days after the date, by a weekend mask and holidays. The weekend is seven 1/0 for Monday … Sunday, 1 a day off (“0000011” is Saturday and Sunday, “0000110” Friday and Saturday). Holidays are days off too; extra working days count even on a day off. 0 days gives the date, or the working day before it.
Also found by: WORKDAY.INTL.
| Parameter | Takes | What it is |
|---|---|---|
date |
a date | |
days |
a whole number | |
weekend |
text | Seven 1/0 for Monday … Sunday, 1 a day off: “0000011” is Saturday and Sunday |
holidays |
a list of date; optional | Days off, as LIST(#2026-12-25#, …) |
extra working days |
a list of date; optional | Days that are working days after all |
Examples:
WORKDAYINTL([Order Date], 5, "0000011", LIST(#2026-01-06#))on row 1, where[Order Date]is2026-01-05, gives2026-01-13(date)WORKDAYINTL([Order Date], 1, "0000110")on row 2, where[Order Date]is2026-01-17, gives2026-01-18(date)
Parameters and context#
Pipeline parameters, and where a row came from.
FILENAME#
FILENAME()
The name of the file the row was read from (for sources that read several files).
Example:
FILENAME()on row 1 gives"orders-2026-01.csv"(text)
PARAM#
PARAM(name, [part])
The value of a pipeline parameter: the same as {name}. For a date range, its “from” or “to” date.
| Parameter | Takes | What it is |
|---|---|---|
name |
text; written as it is, not a column | |
part |
text; optional; written as it is, not a column; one of "from", "to" |
For a date range: “from” or “to” |
Example:
[Region] = PARAM("region")on row 1, where[Region]is"North", givesTRUE(true/false)
With the parameter region set to “North”
ROWID#
ROWID()
The row’s identity: stable through every step that keeps rows, so a row can be traced back.
Example:
ROWID()on row 2 gives2(whole number)