Notion formula cheat sheet
Most functions can be written two ways: length(prop("Name")) or chained, prop("Name").length(). Both work.
Scratchpad
Try anything from this page against a sample row.
Properties
| Formula | What it does |
|---|
prop("Name") | Value of a property in this row |
current.prop("X") | Property of a related page, inside map/filter |
Logic
| Formula | What it does |
|---|
if(c, a, b) | a if c is true, else b |
ifs(c1, a, c2, b, …, else) | First match wins |
and, or, not | Combine conditions. not applies first: not a == b means (not a) == b |
== != > >= < <= | Compare |
empty(x) | True if x is blank |
lets(a, 1, b, 2, a + b) | Name values and reuse them |
Numbers
| Formula | What it does |
|---|
+ - * / % ^ | Math |
round(x) | Nearest whole number |
round(x * 100) / 100 | Round to 2 decimals |
floor / ceil / abs | Down / up / absolute |
min / max / sum / mean | Work on several numbers or a list |
toNumber("42") | Text → number |
Text
| Formula | What it does |
|---|
"a" + "b" | Join text |
format(x) | Anything → text (+ also converts a number when the other side is text) |
length(t) | Number of characters (an emoji counts as 1) |
contains(t, "x") | True if text t contains x, or list t has item x |
replace / replaceAll(t, regex, new) | First / every match |
lower / upper / trim | Change case, strip spaces |
slice(t, start, end) | Part of a text |
split(t, ",") | Text → list |
repeat("■", 5) | Repeat text |
Dates
| Formula | What it does |
|---|
now() / today() | Current date-time / today's date |
dateAdd(d, 7, "days") | Move a date forward |
dateSubtract(d, 1, "months") | Move back |
dateBetween(a, b, "days") | a − b in whole units |
formatDate(d, "MMM D, YYYY") | Date → text |
day(d) / month(d) / year(d) | Parts of a date |
parseDate("2026-11-30") | ISO text → date |
dateStart(r) / dateEnd(r) | Start / end of a date range |
dateRange(start, end) | Build a date range |
Lists
| Formula | What it does |
|---|
map(list, expr) | Transform each item (use current) |
filter(list, cond) | Keep matching items |
join(list, ", ") | List → text |
length(list) | Count items |
first / last / at(i) | Pick an item |
sort / reverse / unique | Reorder, dedupe |
includes(list, x) | True if x is in list |
some / every / find | Any / all / first match |
formatDate tokens
| Token | Example |
YYYY / YY | 2026 / 26 |
MMMM / MMM / MM / M | November / Nov / 11 / 11 |
DD / D / Do | 05 / 5 / 5th |
dddd / ddd | Thursday / Thu |
h:mm A / HH:mm | 3:07 PM / 15:07 |
[text] | Literal text, e.g. "[Week of] MMM D" |
Practice all of it: 15 free exercises →