Docs

Formula language

Not Excel. A small language for the tree. Prefer this subset over half-compatible features.

Literals & operators

Precedence (tight → loose): ^ → * / → + - → & → comparisons.

References

^ is power. Climb with dots. Trailing . on a table field means same-row — not path climb. Path entry uses computed structures (stored nests and formula results).

Formulas never write. To append a record or copy values on purpose, use a slash command (/COPY, /SET, …) or a button.

Syntax

Functions

GroupFunctions
AggregateSUM, COUNT, COUNTA, AVERAGE/AVG, MIN, MAX, SUMIF/SUMIFS, COUNTIF/COUNTIFS, AVERAGEIF/AVERAGEIFS, MINIFS, MAXIFS, SUMPRODUCT
StatsMEDIAN, STDEV, STDEVP, VAR, VARP, PERCENTILE, LARGE, SMALL, RANK, CORREL
MathABS, ROUND, INT, SQRT, POWER/POW, MOD, SIGN, CEILING, FLOOR, LOG, LN, EXP, PI, RAND, RANDBETWEEN
LogicIF, IFS, SWITCH, IFERROR, IFNA, AND, OR, XOR, NOT, TRUE, FALSE
LookupXLOOKUP, VLOOKUP, INDEX, MATCH, CHOOSE, ROW, COLUMN
LambdaLAMBDA, LET — inline LAMBDA(x, x*2)(5); store in a cell/name and call =f(a,b) or =#fn(3); LET(a, 2, a+a)
ArraySEQUENCE (virtual — O(1) memory; SUM(SEQUENCE(n)) is O(1)), TABLE (build tables from lists + LAMBDA columns), ADDCOL, FIELDS (list of field headers from a table or dictionary), RECORDS (record/item count of a table or list), FILTER (keep records/items where include is true), GROUPBY (one row per group with SUM/COUNT/AVERAGE/…), MAKEARRAY, RANDARRAY, MAP, BYROW, BYCOL, REDUCE, SCAN, UNIQUE (list or unique table records / field), SORT (list or table by field), TOCOL, TOROW, HSTACK, VSTACK, TAKE, DROP
TextLEN, LEFT, RIGHT, MID, LOWER, UPPER, TRIM, CONCAT, TEXTJOIN, CHARSPLIT, COUNTCHAR, SUBSTITUTE, REPLACE, FIND, SEARCH, REPT, EXACT, TEXTBEFORE, TEXTAFTER, TEXTSPLIT
Info / convertVALUE, N, ISBLANK, ISNUMBER, ISTEXT, ISLOGICAL, NA

Aggregates flatten nested structures and columns. SUM(Budget.Total) and SUM(Total) (from inside that table’s parent or as a bare column) both sum the column’s computed values. A bare range without an aggregating function is #VALUE.

LAMBDA by reference

Lists & element-wise ops

Scalar functions and operators map over lists (and columns / 1D ranges) when they would otherwise take single values:

Aggregates (SUM, AVERAGE, …) still collapse to one number. Lookups (XLOOKUP, INDEX, …) keep their array semantics.

Errors

#SYNTAX · #CYCLE · #DIV/0 · #VALUE · #NAME · #NUM · #REF · #ERR.