Skip to main content
FLO.W 思流Notion Formulas
Basics

Data Types

Text, numbers, booleans, dates, lists, people, pages, and empty values in Notion formulas.

Every value in a formula has a type. Most errors come from mismatched types.

Data typeMeaningCommon sourcesExampleCommon functions
TextTextTitle, text, select, email, URL, phone number"Notion"format(), contains(), replaceAll(), trim()
NumberNumberNumber properties, calculation results12, 3.14round(), sum(), mean()
BooleanBooleanCheckboxes, comparison resultstrue, falseif(), and, or, not
DateDateDate, created time, edited timetoday(), now()dateAdd(), dateBetween(), formatDate()
Date rangeDate rangeDate properties with a start and enddateRange(start, end)dateStart(), dateEnd()
ListListMulti-select, relation, people, rollup, split(), match()[1, 2, 3]map(), filter(), length(), join()
PersonPersonPerson, created by, edited byWorkspace username(), email()
PagePagePages in a relation propertyRelated tasks, related projectsid(), prop()
EmptyEmpty valueUnfilled fields, empty text, empty lists, and similar valuesempty(prop("Notes"))empty(), if()

Type conversion

There are two common conversions you should know well:

/* Number、Date、Boolean to text */format(prop("Amount")) + " yuan"
/* Text to number */toNumber(prop("Text Number")) + 10

Note: formatNumber() returns text, so it cannot be used directly in number calculations afterward. When you need to do math, calculate first and format later.

Checking empty values

empty(value) checks whether a value is empty. Be aware that 0, an empty string "", and an empty list [] may all be treated as empty.

if(empty(prop("Notes")), "Empty", prop("Notes"))

When working with numbers, do not treat 0 and "not filled in" as the same thing. If 0 is a valid result, combine it with whether the property exists, your business rules, or a helper property.


To use these formulas directly in task reminders, project progress, note heatmaps, and reports, continue with FLO.W Notion Template.

Last updated on