The formula reference
A function for the next step.
Find what you need, see its inputs and result, and try it on an example note.
New to this? Start with your first formula.
173 functions
toNumber
Returns a number from a checkbox, or text like "12.5".
toNumber(number | checkbox | text)Numberround
Rounds a number to whole, or to the given decimal places.
round(number, places?)Numberfloor
Rounds a number down to a whole number.
floor(number, step?)Numberceil
Rounds a number up to a whole number.
ceil(number, step?)Numberabs
Returns a number without its minus sign.
abs(number)Numbermin
Returns the smallest of some numbers, or of a list.
min(number, …) or min(list)Numbermax
Returns the largest of some numbers, or of a list.
max(number, …) or max(list)Numbersum
Adds up some numbers, or a list, skipping empty ones.
sum(list) or sum(number, …)Numberaverage
Returns the average of some numbers, or of a list.
average(list) or average(number, …)NumberroundUp
Rounds a number away from zero, to whole or to places.
roundUp(number, places?)NumberroundDown
Rounds a number toward zero, to whole or to places.
roundDown(number, places?)NumberroundTo
Rounds a number to the nearest multiple of a step.
roundTo(number, step)Numbertrunc
Drops the fraction of a number, keeping its sign.
trunc(number)Numbersign
Returns 1, -1 or 0 for a positive, negative or zero number.
sign(number)Numbermod
Returns the remainder, with the sign of the divisor.
mod(number, divisor)Numberpow
Raises a number to a power, the same as ^.
pow(base, exponent)Numbersqrt
Returns the square root of a number.
sqrt(number)Numbercbrt
Returns the cube root of a number.
cbrt(number)Numberexp
Returns e raised to a number.
exp(number)Numberln
Returns the natural logarithm of a number.
ln(number)Numberlog
Returns the logarithm of a number, base 10 or a base you give.
log(number, base?)Numberlog10
Returns the base-10 logarithm of a number.
log10(number)Numberlog2
Returns the base-2 logarithm of a number.
log2(number)Numberpi
Returns π, 3.14159….
pi()Numbere
Returns e, 2.71828….
e()Numberclamp
Keeps a number between a low and a high.
clamp(number, low, high)Numbergcd
Returns the greatest common divisor of whole numbers.
gcd(list) or gcd(number, …)Numberlcm
Returns the least common multiple of whole numbers.
lcm(list) or lcm(number, …)Numberfactorial
Returns the product of the whole numbers up to a number.
factorial(number)NumberisEven
Returns true when a whole number is even.
isEven(number)NumberisOdd
Returns true when a whole number is odd.
isOdd(number)Numberproduct
Multiplies a list of numbers, or several.
product(list) or product(number, …)Numbermedian
Returns the middle number of a list, or of several.
median(list) or median(number, …)Numbermode
Returns the number a list holds most often.
mode(list) or mode(number, …)Numbercount
Counts a list's items that are not empty, or that pass a test.
count(list, item => condition?)Numbervariance
Returns the variance of a sample of numbers.
variance(list) or variance(number, …)Numberstdev
Returns the standard deviation of a sample of numbers.
stdev(list) or stdev(number, …)NumbervariancePopulation
Returns the variance of a whole population of numbers.
variancePopulation(list) or variancePopulation(number, …)NumberstdevPopulation
Returns the standard deviation of a whole population.
stdevPopulation(list) or stdevPopulation(number, …)Numberpercentile
Returns the value below which a fraction of a list falls.
percentile(list, fraction)Numberrank
Returns a number's place in a list, the largest first.
rank(number, list)NumberweightedAverage
Averages a list of values, each by its weight.
weightedAverage(values, weights)NumberformatNumber
Returns a number as text in a style, for joining to other text.
formatNumber(number, style, places?)Numbersin
Returns the sine of an angle in radians.
sin(radians)Numbercos
Returns the cosine of an angle in radians.
cos(radians)Numbertan
Returns the tangent of an angle in radians.
tan(radians)Numberasin
Returns the angle in radians whose sine is a number.
asin(number)Numberacos
Returns the angle in radians whose cosine is a number.
acos(number)Numberatan
Returns the angle in radians whose tangent is a number.
atan(number)Numberatan2
Returns the angle in radians of the point x, y.
atan2(y, x)Numberdegrees
Turns an angle in radians into degrees.
degrees(radians)Numberradians
Turns an angle in degrees into radians.
radians(degrees)Generalcoalesce
Returns the first value that is not empty.
coalesce(value, fallback, …)Logicif
Returns one value when a condition is true, else another.
if(condition, then, else)Logicifs
Returns the value of the first test that is true.
ifs(test, value, otherwise?, …)Logicswitch
Returns the result whose case equals a value.
switch(value, case, result, otherwise?, …)Logicand
Returns true when every value is true.
and(value, …)Logicor
Returns true when any value is true.
or(value, …)Logicnot
Returns the opposite of a condition; empty counts as false.
not(value)LogicisEmpty
Returns true for empty values, empty text and empty lists.
isEmpty(value)Generalformat
Returns any value as text; a row as its title.
format(value)Logicxor
Returns true when exactly one of its values is true.
xor(value, value, …)Logicbetween
Returns true when a value is from a low to a high, both included.
between(value, low, high)GeneraltypeOf
Returns the kind of a value as text.
typeOf(value)GeneralparseNumber
Reads a number written the way a language writes them.
parseNumber(text, locale?)GeneraltoCheckbox
Reads a checkbox from a number or a word.
toCheckbox(value)Listscompact
Removes empty items from a list, keeping zero and false.
compact(list)Listsmap
Returns a list with one result for each item.
map(list, item => …)Listsfilter
Keeps only the items for which a condition is true.
filter(list, item => condition)Listsfind
Returns the first item for which a condition is true.
find(list, item => condition)Listssome
Returns true when a condition is true for any item.
some(list, item => condition)Listsevery
Returns true when a condition is true for every item.
every(list, item => condition)Listsreduce
Folds a list into one value, from a start you give.
reduce(list, (total, item) => …, start)Listsunique
Removes repeated items from a list.
unique(list)Listssort
Sorts a list, with empty items last.
sort(list, order?) or sort(list, item => key, order?)Listsfirst
Returns the first item of a list.
first(list)Listslast
Returns the last item of a list.
last(list)Listsincludes
Returns true when a list holds a value.
includes(list, value)ListsfindLast
Returns the last item of a list that passes a test, or empty.
findLast(list, item => condition)ListsfindIndex
Returns the position of the first item that passes a test.
findIndex(list, item => condition)ListsflatMap
Maps each item to a list and joins the lists into one.
flatMap(list, item => list)Listsflat
Joins a list of lists into one list, one level down.
flat(list)Listsconcat
Joins lists end to end.
concat(list, other, …)Listsat
Returns the item at a position in a list, counted from 0.
at(list, position)ListsuniqueBy
Drops items whose key repeats an earlier item's.
uniqueBy(list, item => key)ListsincludesAny
Returns true when a list holds any of several values.
includesAny(list, values)ListsincludesAll
Returns true when a list holds every one of several values.
includesAll(list, values)Listsintersect
Returns the items two lists share, in the first list's order.
intersect(list, other)Listsunion
Returns the items of two lists, each once.
union(list, other)Listsdifference
Returns the items of a list that another lacks.
difference(list, other)ListsminBy
Returns the item with the least key.
minBy(list, item => key)ListsmaxBy
Returns the item with the greatest key.
maxBy(list, item => key)Listssequence
Returns a list of numbers: a count, from a start, by a step.
sequence(count, start?, step?)Textperson
Names a person on this shelf.
person(name)Textname
Returns a person's name.
name(person)Textlink
Makes a link to an address, or to a note.
link(label, address) or link(row, label?)Textlength
Counts the characters in text, or the items in a list.
length(text) or length(list)Textlower
Returns text in lower case.
lower(text)Textupper
Returns text in upper case.
upper(text)TexttitleCase
Capitalises the first letter of every word.
titleCase(text)Textcapitalize
Capitalises the first letter of a text, leaving the rest.
capitalize(text)Texttrim
Removes spaces from both ends of text.
trim(text)TexttrimStart
Removes white space from the start of a text.
trimStart(text)TexttrimEnd
Removes white space from the end of a text.
trimEnd(text)TextcollapseSpaces
Trims a text and makes each run of white space one space.
collapseSpaces(text)Textcontains
Returns true when one text contains another; case matters.
contains(text, part)TextstartsWith
Returns true when text starts with another text.
startsWith(text, start)TextendsWith
Returns true when a text ends with another; case matters.
endsWith(text, end)TextcontainsAny
Returns true when a text contains any of a list of parts.
containsAny(text, parts)TextcontainsAll
Returns true when a text contains every part of a list.
containsAll(text, parts)Textslice
Takes part of a text or a list, by position from 0.
slice(text, start, end?) or slice(list, start, end?)TexttextBefore
Returns the text before a part, or empty when it is absent.
textBefore(text, part, n?)TexttextAfter
Returns the text after a part, or empty when it is absent.
textAfter(text, part, n?)Texttruncate
Shortens a text to a length, ending it with an ellipsis.
truncate(text, length, end?)TextindexOf
Returns where a part first appears in a text, or a value in a list.
indexOf(text, part) or indexOf(list, value)TextlastIndexOf
Returns where a part last appears in a text, or empty.
lastIndexOf(text, part)Textreplace
Replaces every match of one text with another.
replace(text, find, with)TextreplaceFirst
Replaces the first match of one text with another.
replaceFirst(text, find, with)Textsplit
Splits text into a list at each separator.
split(text, separator, limit?)Textlines
Splits a text into a list of its lines.
lines(text)Textjoin
Joins a list's items into one text, with a separator.
join(list, separator?)Textrepeat
Repeats a text a number of times.
repeat(text, times)TextpadStart
Pads a text at the start until it is a length.
padStart(text, length, filler?)TextpadEnd
Pads a text at the end until it is a length.
padEnd(text, length, filler?)Textreverse
Reverses a text, character by character, or a list.
reverse(text) or reverse(list)TextcharCode
Returns the code of the first character of a text.
charCode(text)TextfromCharCode
Returns the character for a code.
fromCharCode(code)TextencodeUrl
Makes text safe inside a web address.
encodeUrl(text)TextdecodeUrl
Turns %20 and its kin back into the characters they stand for.
decodeUrl(text)TextregexTest
Returns true when a pattern matches somewhere in a text.
regexTest(text, pattern, flags?)TextregexExtract
Returns the first match of a pattern, or one of its groups.
regexExtract(text, pattern, group?, flags?)TextregexMatch
Returns every match of a pattern, as a list of text.
regexMatch(text, pattern, flags?)TextregexReplace
Replaces every match of a pattern.
regexReplace(text, pattern, with, flags?)TextregexSplit
Splits a text at each match of a pattern.
regexSplit(text, pattern, flags?)TextregexEscape
Returns a text as a pattern that matches it exactly.
regexEscape(text)Datetoday
Returns today's date, without a time.
today()Datenow
Returns the current date and time.
now()Datedate
Turns text like 2026-03-15 or 2026-03-15T09:30 into a date.
date(text) or date(year, month, day, hour?, minute?)DatedateAdd
Moves a date by an amount of a unit.
dateAdd(date, amount, unit)DatedateSubtract
Moves a date back by an amount of a unit.
dateSubtract(date, amount, unit)DatedateBetween
Counts whole units from one date to another.
dateBetween(date, from, unit)DatestartOf
Returns the start of a date's day, week, month, quarter or year.
startOf(date, unit)DateendOf
Returns the last day of a date's week, month, quarter or year.
endOf(date, unit)DateisSame
Returns true when two dates fall in the same unit.
isSame(date, other, unit)DateisWeekend
Returns true for a Saturday or a Sunday.
isWeekend(date)Dateworkday
Moves a date by working days, skipping weekends and holidays.
workday(date, workdays, holidays?)DateworkdaysBetween
Counts the working days from one date to another, both included.
workdaysBetween(start, end, holidays?)Dateyear
Returns the year of a date.
year(date)Datequarter
Returns the quarter of the year a date is in, 1 to 4.
quarter(date)Datemonth
Returns the month of a date, 1 to 12.
month(date)Dateday
Returns the day of the month of a date, 1 to 31.
day(date)Datehour
Returns the hour of a date's time, 0 to 23.
hour(date)Dateminute
Returns the minute of a date's time, 0 to 59.
minute(date)Datesecond
Returns the second of an instant, 0 to 59.
second(date)Dateweekday
Returns the day of the week, 1 (Monday) to 7 (Sunday).
weekday(date)Dateweek
Returns the ISO week of the year, 1 to 53.
week(date)DatedayOfYear
Returns the day of the year, 1 to 366.
dayOfYear(date)DatedaysInMonth
Returns how many days a date's month has.
daysInMonth(date)DateformatDate
Returns a date as text, in a style such as "long".
formatDate(date, style or pattern?, zone?)Daterelative
Returns how long ago or how soon a date is, in words.
relative(date)DatedateStart
Returns the start of a date, without its end.
dateStart(date)DatedateEnd
Returns the end of a date span, or the date itself.
dateEnd(date)DatedateRange
Makes a span from a start date to an end date.
dateRange(start, end)Dateduration
Makes a length of elapsed time from hours, minutes or seconds.
duration(amount, unit)DateinDays
Returns a duration as a number of 24-hour days.
inDays(duration)DateinHours
Returns a duration as a number of hours.
inHours(duration)DateinMinutes
Returns a duration as a number of minutes.
inMinutes(duration)DateinSeconds
Returns a duration as a number of seconds.
inSeconds(duration)DateformatDuration
Returns a duration as text, in words or as a clock.
formatDuration(duration, style?)Datezone
Returns a date's time zone as text, empty when it has none.
zone(date)DateinZone
Returns the same moment written in another time zone.
inZone(date, zone)Datetimestamp
Returns a date as milliseconds since 1970.
timestamp(date)DatefromTimestamp
Makes a date from milliseconds since 1970.
fromTimestamp(milliseconds)