Uploaded by mohanniroula22

Notion Formulas

advertisement
LO
N
W
O
D
SO
W
AD
IN
S.
WSOGROUPBUY.IN
W
SO
D
O
W
N
LO
AD
S.
IN
WSOGROUPBUY.IN
WHAT’S NEW ?
WSOGROUPBUY.IN
NEW EDITOR
W
SO
D
O
W
N
LO
AD
S.
IN
Size adapts to content
Line break
Indentation
Variables
Comments
Dot notation
Examples
Result
Errors
WSOGROUPBUY.IN
W
SO
D
O
W
N
LO
AD
S.
Let & Lets
Styles
Link
parseDate
If & Ifs
IN
NEW FUNCTIONS
BUT THE MOST IMPORTANT
IMPROVEMENT
LISTS
WSOGROUPBUY.IN
LISTS ?
LO
AD
S.
IN
Relations and other properties
that contain multiple values
O
W
N
Incredible new possibilities
W
SO
D
map, first, last, contains, sort,
filter, join, concat,sum...
You can even replace most rollups
thanks to those, and even do
rollups of rollups (finally !)
WSOGROUPBUY.IN
W
SO
D
O
W
N
LO
AD
S.
IN
EXAMPLE 1
WSOGROUPBUY.IN
W
SO
D
O
W
N
LO
AD
S.
IN
EXAMPLE 2
WSOGROUPBUY.IN
W
SO
D
O
W
N
LO
AD
S.
IN
EXAMPLE 3
W
SO
D
O
W
N
LO
AD
S.
IN
WSOGROUPBUY.IN
ALL FUNCTIONS
Operator WSOGROUPBUY.INConditions
IN
!
W
N
LO
AD
S.
!true
Returns
W
SO
D
O
false
Boolean
Returns the opposite of a given value
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.INConditions
IN
!=
W
N
LO
AD
S.
3+2 != 6
Returns
W
SO
D
O
true
Boolean
Checks that two values aren't the same
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.IN
Math
IN
%
W
N
LO
AD
S.
7%3
Returns
W
SO
D
O
1
Number
Returns the remainder of the first argument
divided by the second
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.INConditions
IN
&&
W
N
LO
AD
S.
7==4+3 && 6==3+3
Returns
W
SO
D
O
true
Boolean
Logical AND: returns true if all operators are
deemed true
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.IN
IN
*
W
N
LO
AD
S.
7*3
Returns
W
SO
D
O
21
Number
Multiplies two arguments
NotionSpells.com is the place to learn about formulas in Notion
Math
Operator WSOGROUPBUY.IN
IN
+
Returns
Number, Text
W
SO
O
13
D
W
N
LO
AD
S.
8+5
Adds two numbers or concats two strings
NotionSpells.com is the place to learn about formulas in Notion
Math
Operator WSOGROUPBUY.IN
Math
IN
W
N
LO
AD
S.
20-12
Returns
W
SO
D
O
8
Number
Subtracts the second argument from the first
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.IN
IN
/
W
N
LO
AD
S.
24/6
Returns
W
SO
D
O
4
Number
Divides the first argument by the second
NotionSpells.com is the place to learn about formulas in Notion
Math
Operator WSOGROUPBUY.IN
Math
IN
<
W
N
LO
AD
S.
7 < 4+3
Returns
W
SO
D
O
false
Boolean
Checks if the first argument is strictly less than
the second argument
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.IN
Math
IN
<=
W
N
LO
AD
S.
7 <= 4+3
Returns
W
SO
D
O
true
Boolean
Checks if the first argument is less than or equal
to the second argument
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.IN
IN
==
W
N
LO
AD
S.
7 == 4+3
Returns
W
SO
D
O
true
Boolean
Checks if arguments are equal
NotionSpells.com is the place to learn about formulas in Notion
Math
Operator WSOGROUPBUY.IN
Math
IN
>
W
N
LO
AD
S.
7 > 4+3
Returns
W
SO
D
O
false
Boolean
Checks if the first argument is strictly greater
than the second argument
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.IN
Math
IN
>=
W
N
LO
AD
S.
7 >= 4+3
Returns
W
SO
D
O
true
Boolean
Checks if the first argument is greater than or
equal to the second argument
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.INConditions
S.
W
N
LO
AD
7==4+3?"true":"false”
IN
?:
D
SO
All
W
Returns
O
true
Returns the value of the second argument if the
first argument is deemed true, of the value of the
third argument if the first argument is deemed
false
NotionSpells.com is the place to learn about formulas in Notion
Operator WSOGROUPBUY.IN
Math
IN
^
W
N
LO
AD
S.
4^3
Returns
W
SO
D
O
64
Number
Raises the first argument to the power of the
second argument
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
abs
W
N
LO
AD
S.
abs(-10)
Returns
W
SO
D
O
10
Number
Returns the absolute value of a number
NotionSpells.com is the place to learn about formulas in Notion
Math
Function WSOGROUPBUY.IN
IN
add
W
N
LO
AD
S.
add(5, 10)
Returns
W
SO
D
O
15
Number
Adds two numbers and returns their sum
NotionSpells.com is the place to learn about formulas in Notion
Math
Operator WSOGROUPBUY.INConditions
IN
and
W
N
LO
AD
S.
4+3==7 and 3+3==6
Returns
W
SO
D
O
true
Boolean
Returns true if all arguments are deemed true
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
at
W
N
LO
AD
S.
let(yummy,["beer", "fries", "chocolate"],
at(yummy,1))
Returns
W
SO
D
O
fries
All
Returns the value to the index specified in a list
of values
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
cbrt
W
N
LO
AD
S.
cbrt(64)
Returns
W
SO
D
O
4
Number
Returns a number's cubic root
NotionSpells.com is the place to learn about formulas in Notion
Math
Function WSOGROUPBUY.IN
Math
IN
ceil
W
N
LO
AD
S.
ceil(0.4)
Returns
W
SO
D
O
1
Number
Returns smallest whole number greater than or
equal to a number
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
concat
W
N
LO
AD
S.
concat(["beer", "peket"],["fries",
"chocolate"])
Returns
W
SO
D
O
beer,peket,fries,chocolate
List
Returns the concatenation of multiple lists
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Conditions, Strings
IN
contains
W
N
LO
AD
S.
contains("KreaCity", "reaCi")
Returns
W
SO
D
O
true
Boolean
Returns "true" if the second argument is
contained within the first argument
NotionSpells.com is the place to learn about formulas in Notion
Property WSOGROUPBUY.INProperties
IN
Created By
W
N
LO
AD
S.
"Written by " + prop("Created
By").name()
Returns
W
SO
D
O
Written by Vincent Ertveld
People
Returns a bloc's author as a list. To fetch the
details, name() or email() must be added
NotionSpells.com is the place to learn about formulas in Notion
Property WSOGROUPBUY.IN
Dates
IN
Created Time
W
SO
D
O
W
N
LO
AD
S.
prop("Created Time").formatDate
("MM/DD/YYYY") + ”(US)”
or
" + prop("Created Time").formatDate
("DD/MM/YYYY") + ”(ISO)”
10/16/2023 (US)
or
16/10/2023 (ISO)
Returns Date
Date/Time of a block's creation
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
date
W
N
LO
AD
S.
date(now())
Returns
W
SO
D
O
7 (because September 7 2023)
Number
In a date, returns a month's day (from 1 to 31)
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
dateAdd
W
N
LO
AD
S.
now().dateAdd(1, "days")
Date
W
Returns
SO
D
O
@september 8 2023 16:30
Adds a quantity to a given date The last
argument can be of the following units: "years",
"quarters", "months", "weeks", "days", "hours",
"minutes", "seconds" ou "milliseconds".
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
dateBetween
W
N
LO
AD
S.
dateBetween(prop(”Recruitment”),
now(), "days")
D
SO
Number
W
Returns
O
332
Calculates the difference between two dates in
milliseconds The last argument can be of the
following units: "years", "quarters", "months",
"weeks", "days", "hours", "minutes", "seconds" ou
"milliseconds".
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
dateEnd
W
N
LO
AD
S.
dateEnd(prop(”theRangeOfDates”))
Returns
W
SO
D
O
@december 31 2023 23:59
Date
Fetches the end of a range of dates
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
dateRange
W
N
LO
AD
S.
dateRange(now(), parseDate("2023-1231"))
Returns
W
SO
D
O
@september 7 2023 16:30 →
december 31 2023 23:59
Date
Returns a range of dates created from start and
end dates
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
dateStart
W
N
LO
AD
S.
dateStart(prop(”theRangeOfDates”))
Returns
W
SO
D
O
@september 7 2023 16:30
Date
Fetches the start of a range of dates
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
dateSubtract
W
N
LO
AD
S.
now().dateSubstract(1, "days")
Date
W
Returns
SO
D
O
@september 6 2023 16:30
Subtract a quantity to a given date The last
argument can be of the following units: "years",
"quarters", "months", "weeks", "days", "hours",
"minutes", "seconds" ou "milliseconds".
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
day
W
N
LO
AD
S.
day(now())
Returns
W
SO
D
O
4 (because Thursday)
Number
Returns a date's weekday between 1 (Monday)
and 7 (Sunday)
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Math
IN
divide
W
N
LO
AD
S.
divide(5, 10)
Returns
W
SO
D
O
0.5
Number
Divides two numbers and returns their quotient
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
e
W
N
LO
AD
S.
e()
Returns
W
SO
D
O
2.718281828459045
Number
The base of the natural logarithm
NotionSpells.com is the place to learn about formulas in Notion
Math
Function WSOGROUPBUY.INProperties
IN
email
W
N
LO
AD
S.
"Send to " + prop("Created By").email()
Returns
W
SO
D
O
Send to info@krea.city
Text
Returns the email address associated to the
Notion account
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.INConditions
IN
empty
W
N
LO
AD
S.
empty(0)
Returns
W
SO
D
O
true
Boolean
When the value is empty, returns "true"
0, "" and [] are considered empty values
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
every
W
N
LO
AD
S.
every(["dark chocolate", "milk
chocolate", "beer"],
current.contains("chocolate"))
Returns
W
SO
D
O
false
Boolean
Returns "true" if the expression returns "true" for
all entries of a list, and "false" if it doesn't
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Math
IN
exp
W
N
LO
AD
S.
exp(5)
Returns
W
SO
D
O
148.4131591025766
Number
Returns E^x, where x is the argument and E is
Euler's number (2.718…), the base of a natural
logarithm
NotionSpells.com is the place to learn about formulas in Notion
Native
WSOGROUPBUY.INConditions
S.
W
N
LO
AD
if(3+4==8, true, false)
IN
false
Returns
W
SO
D
O
false
Boolean
Returns the native constant false
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
filter
W
N
LO
AD
S.
filter(["dark chocolate", "milk
chocolate", "beer"],
current.contains("chocolate"))
Returns
W
SO
D
O
dark chocolate,milk chocolate
List
Returns the values of the first argument that
returned "true" when the second argument is
executed on the expression
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
find
W
N
LO
AD
S.
find(["dark chocolate", "milk
chocolate", "beer"],
current.contains("chocolate"))
Returns
W
SO
D
O
dark chocolate
All
Returns the first element of the list for which the
second argument returns true
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
findIndex
W
N
LO
AD
S.
findIndex(["dark chocolate", "milk
chocolate", "beer"],
current.contains("milk"))
Returns
W
SO
D
O
1
Number
Returns the index of the first element of the list
for which the second argument returns "true"
Please note that the counting starts from 0
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
first
W
N
LO
AD
S.
first(["dark chocolate", "milk
chocolate", "beer"])
Returns
W
SO
D
O
dark chocolate
All
Returns the first element of a list
NotionSpells.com is the place to learn about formulas in Notion
Lists
Function WSOGROUPBUY.IN
IN
flat
W
N
LO
AD
S.
flat([["beer", "peket"],["fries",
"chocolate"]])
Returns
W
SO
D
O
beer,peket,fries,chocolate
List
Turns a list of lists into a single list
NotionSpells.com is the place to learn about formulas in Notion
Lists
Function WSOGROUPBUY.IN
Math
IN
floor
W
N
LO
AD
S.
floor(0.4)
Returns
W
SO
D
O
0
Number
Returns the biggest whole number less than or
equal to a number
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
format
W
N
LO
AD
S.
format(2O23/09/07)
Returns
W
SO
D
O
"2023/09/07"
Text
Formats an entry as a string
NotionSpells.com is the place to learn about formulas in Notion
Strings
Function WSOGROUPBUY.IN
Dates
IN
formatDate
W
O
D
SO
Text
N
09/07/2023
Returns
=
LO
AD
S.
formatDate(now(), "MM/DD/YYYY")
"08/08/2023”
W
Formats a date according to a customized
format string which contain tokens representing
parts of the date, such as: "yyyy" for year, "MM"
for month, "dd" for day, ""HH" for hour, "mm" for
minute,... Include literal characters in the format
string by simply putting them in quotes
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
fromTimestamp
W
N
LO
AD
S.
fromTimestamp(1694037600000)
Date
W
Returns
SO
D
O
@7 septembre 2023 00:00
Returns a date established from a Unix
timestamp in milliseconds, equal to the number
of milliseconds elapsed since January 1st 1970
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates
IN
hour
W
N
LO
AD
S.
hour(parseDate("2023-07-09T16:30"))
Returns
W
SO
D
O
16
Number
Returns a date's time
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.INProperties
IN
id
W
N
LO
AD
S.
id()
Returns
W
SO
D
O
329702be95ee4515b2fa0e55e58c51
60
Text
Returns the current page's id
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.INConditions
S.
W
N
LO
AD
if(3+4==8, true, false)
IN
if
Returns
W
SO
D
O
false
All
Switches between two options depending on
another value
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.INConditions
ifs
All
W
Returns
SO
yummy
D
O
W
N
LO
AD
S.
IN
ifs(
["peket", "beer"].contains("wine"), "health",
["beer", "chocolate"].contains ("chocolate"),
"yummy"
)
Checks if one or several conditions are met.
Returns the first true result's corresponding
value. Can be used to replace several nested IF
instructions
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Conditions, Lists
IN
includes
W
N
LO
AD
S.
includes(["dark chocolate", "milk
chocolate", "beer"], "beer")
Returns
W
SO
D
O
true
Boolean
Returns "true" if the specified value is contained
within the list, and "false" if it is not
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
join
W
N
LO
AD
S.
join(["beer", "peket", "fries",
"chocolate"], " :-: ")
Returns
W
SO
D
O
beer :-: peket :-: fries :-: chocolate
Text
Returns the elements of a list by linking them via
the second argument
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
last
W
N
LO
AD
S.
last(["dark chocolate", "milk
chocolate", "beer"])
Returns
W
SO
D
O
beer
All
Returns a list's last element
NotionSpells.com is the place to learn about formulas in Notion
Lists
Property WSOGROUPBUY.INProperties
IN
Last Edited By
W
N
LO
AD
S.
"Edited by " +prop("Last Edited
By").name()
Returns
W
SO
D
O
Edited by Vincent Ertveld
People
Returns the name of the last person who edited
the item
NotionSpells.com is the place to learn about formulas in Notion
Property WSOGROUPBUY.IN
Dates, Properties
IN
Last Edited Time
Returns
O
W
SO
D
09/07/2023
W
N
LO
AD
S.
formatDate(prop("Last Edited
Time"),"MM/DD/YYYY")
Date
Returns the Date/Time at which an item has last
been edited
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists, Strings
IN
length
W
N
LO
AD
S.
length(["chocolat noir", "chocolat au
lait", "bière"])
Returns
W
SO
D
O
3
Number
Returns the length of a string or a list
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN Variables
let
D
O
W
N
LO
AD
S.
IN
let(
Day, formatDate(now(), "MM/DD/YYYY"),
"Now : "+Day
)
Returns
W
SO
Now: 09/07/2023
All
Introduces a variable named after the first
argument and the value of the second argument,
then returns the result of the expression that can
use the variable
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN Variables
lets
LO
AD
S.
IN
lets(
Day, now(),
Tomorrow, dateAdd(Day,1,"days"),
W
N
"Today "+Day+ " and tomorrow "+Tomorrow
D
O
)
W
SO
Today @september 7 2023 16:30 and
tomorrow @september 8 2023 16:30
Returns
All
Introduces different variables and returns the
result of an expression that can use these
variables
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Strings, Style
IN
link
W
N
LO
AD
S.
link("KreaCity", "https://krea.city")
"Notion"
Returns
W
SO
D
O
https://krea.city
Text
Creates a link from a label and a URL
NotionSpells.com is the place to learn about formulas in Notion
=
Function WSOGROUPBUY.IN
IN
ln
W
N
LO
AD
S.
ln(10)
Returns
W
SO
D
O
2.302585092994046
Number
Returns a number's natural logarithm
NotionSpells.com is the place to learn about formulas in Notion
Math
Function WSOGROUPBUY.IN
IN
log10
W
N
LO
AD
S.
log10(100000)
Returns
W
SO
D
O
5
Number
Returns a number's decimal logarithm
NotionSpells.com is the place to learn about formulas in Notion
Math
Function WSOGROUPBUY.IN
IN
log2
W
N
LO
AD
S.
log2(32)
Returns
W
SO
D
O
5
Number
Returns a number's binary logarithm
NotionSpells.com is the place to learn about formulas in Notion
Math
Function WSOGROUPBUY.IN
Strings
IN
lower
W
N
LO
AD
S.
lower(”Jean-Christophe Porkchop”)
Returns
W
SO
D
O
“jean-christophe porkchop”
Text
Returns a string in lowercase
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
map
W
N
LO
AD
S.
map(["dark chocolate", "milk
chocolate", "beer"], current.upper())
Returns
W
SO
D
O
DARK CHOCOLATE,MILK
CHOCOLATE,BEER
List
Returns a list of the results of the second
argument's running on each element of the first
argument
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Regex, Strings
W
N
LO
AD
S.
match("32 : 4 = 8", "\d+")
IN
match
Returns
W
SO
D
O
["32", "4", “8”]
List
Returns all strings of text correponding to a
regular expression
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN Numbers
IN
max
W
N
LO
AD
S.
max(1, 2, 3)
Returns
W
SO
D
O
3
Number
Returns the biggest number
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN Numbers
IN
min
W
N
LO
AD
S.
min(1, 2, 3)
Returns
W
SO
D
O
1
Number
Returns the smallest number
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
minute
W
N
LO
AD
S.
minute(parseDate("2023-0907T16:30"))
Returns
W
SO
D
O
30
Number
Returns a date's minute
NotionSpells.com is the place to learn about formulas in Notion
Dates
Function WSOGROUPBUY.IN
Dates
IN
month
W
N
LO
AD
S.
minute(parseDate("2023-0907T16:30"))
Returns
W
SO
D
O
9
Number
Divides two numbers and returns their remainder
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.INProperties
IN
name
W
N
LO
AD
S.
"Author : " + prop("Created By").name()
Returns
W
SO
D
O
Author : Vincent Ertveld
Text
Returns the Person's name
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
now
W
N
LO
AD
S.
now()
Returns
W
SO
D
O
@september 7 2023 16:30
Date
Returns the current time and date
NotionSpells.com is the place to learn about formulas in Notion
Dates
Function WSOGROUPBUY.IN
Dates
IN
parseDate
W
N
LO
AD
S.
parseDate("2023-09-07T16:30")
Returns
W
SO
D
O
@september 7 2023 16:30
All
Analyzes a date according to the ISO 8601
standard
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Math
IN
pi
W
N
LO
AD
S.
pi()
Returns
W
SO
D
O
3.141592653589793
Number
The ratio of the circumference of any circle to the
diameter of that circle
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
repeat
Returns
O
D
W
SO
:-~-::-~-::-~-:
W
N
LO
AD
S.
repeat(":-~-:",3)
Text
Repeats a text a number of times
NotionSpells.com is the place to learn about formulas in Notion
Strings
Function WSOGROUPBUY.IN
Regex, Strings
IN
replace
W
N
LO
AD
S.
replace("The second arrived after a
second, "second", "other")
Returns
W
SO
D
O
The other arrived after a second
Text
Replaces a regular expression's first
corresponding value with a new value
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Regex, Strings
IN
replaceAll
W
N
LO
AD
S.
replaceAll("I have 4 cats and 2 birds",
"\d", "3")
Returns
W
SO
D
O
I have 3 cats and 3 birds
Text
Replaces all matches of a regular expression by a
new value
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
reverse
W
N
LO
AD
S.
reverse(["dark chocolate", milk
chocolate", "beer"])
Returns
W
SO
D
O
beer,dark chocolate,milk chocolate
List
Reverses a list of elements' order
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Math
IN
round
W
N
LO
AD
S.
round(0.65)
Returns
W
SO
D
O
1
Number
Returns the value of an round number to the
closest whole number
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Math
IN
sign
W
N
LO
AD
S.
sign(-10)
Returns
W
SO
D
O
-1
Number
Returns the sign of x, indicating if x is positif,
negative or equal to 0
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
slice
W
N
LO
AD
S.
slice(["beer","chocolate","fries","peket"]
, 1, 3)
Returns
W
SO
D
O
chocolate,fries
List
Returns a portion of the list of entries starting
with the start index (included) and ending with
the end index (optional and exclusive).
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Conditions, Lists
IN
some
W
N
LO
AD
S.
some(["dark chocolate", "milk
chocolate", "beer"],
current.contains("beer"))
Returns
W
SO
D
O
true
Boolean
Returns "true" if the provided expression returns
"true" for all entries of the list, and "false" if it
does not
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
sort
W
N
LO
AD
S.
sort(["dark chocolate", "milk
chocolate", "beer"])
Returns
W
SO
D
O
beer,dark chocolate,milk chocolate
List
Returns a list of entries' sorted version
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists, Strings
IN
split
W
N
LO
AD
S.
split("Krea City", " ")
Returns
W
SO
D
O
["Krea","City"]
List
Returns the string divided into a list using the
specified separator
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
sqrt
W
N
LO
AD
S.
sqrt(49)
Returns
W
SO
D
O
7
Number
Returns a number's positive square root
NotionSpells.com is the place to learn about formulas in Notion
Math
Function WSOGROUPBUY.IN
Strings, Style
IN
style
W
N
LO
AD
S.
style("Notion", "b", "u", “blue”)
Returns
W
SO
D
O
Notion
Text
Adds format style to a data input
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Strings
IN
substring
W
N
LO
AD
S.
substring("Chap. 2 - Lists- Vincent",9,
-10)
Returns
W
SO
D
O
Lists
Text
Extracts a portion of a string, defining the start
index (inclusive) and the end index (optional,
exclusive, possibly negative)
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.INLists, Math
IN
sum
W
N
LO
AD
S.
sum([1, 2, 3], 4, 5)
Returns
W
SO
D
O
15
Number
Adds a list of numbers
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Conditions, Strings
S.
W
N
LO
AD
test("KreaCity", "\d")
IN
test
Returns
W
SO
D
O
false
Boolean
Checks if a string matches with a regular
expression
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Dates, Numbers
IN
timestamp
W
N
LO
AD
S.
timestamp(now())
Returns
W
SO
D
O
1694037600000
Number
Returns a whole number from a Unix timestamp
in milliseconds, equal to the number of
milliseconds elapsed since January 1st 1970
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN Numbers
IN
toNumber
W
N
LO
AD
S.
toNumber("345")
Returns
W
SO
D
O
345
Number
Displays a number from text
NotionSpells.com is the place to learn about formulas in Notion
Native
WSOGROUPBUY.INConditions
S.
W
N
LO
AD
if(3+4==7, true, false)
IN
true
Returns
W
SO
D
O
true
Boolean
Returns the native constant true
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Lists
IN
unique
W
N
LO
AD
S.
unique(["Vincent", "Benoît", "Lucie",
"Vincent", "Lucie", "Vincent"])
Returns
W
SO
D
O
Vincent,Benoît,Lucie
List
Returns a list of unique values within a list a
entries
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
Strings, Style
IN
unstyle
Returns
O
D
W
SO
"Krea.City"
W
N
LO
AD
S.
unstyle("Krea.City", "b", "pink")
Text
Deletes a data input's format style If no style is
specified, all styles will be deleted
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
upper
W
N
LO
AD
S.
upper(”remember to do”)
Returns
W
SO
D
O
“REMEMBER TO DO”
Text
Returns a string in uppercase
NotionSpells.com is the place to learn about formulas in Notion
Strings
Function WSOGROUPBUY.IN
Dates
IN
week
W
N
LO
AD
S.
week(parseDate("2023-09-07T16:30"))
Returns
W
SO
D
O
36
Number
Returns the numerical representation of a date's
month, between 1 and 53
NotionSpells.com is the place to learn about formulas in Notion
Function WSOGROUPBUY.IN
IN
year
W
N
LO
AD
S.
year(now())
Returns
W
SO
D
O
2023
Number
Returns a date's year
NotionSpells.com is the place to learn about formulas in Notion
Dates
Operator WSOGROUPBUY.INConditions
IN
||
W
N
LO
AD
S.
7==4+3 || 6==3+4
Returns
W
SO
D
O
true
Boolean
Logical OR : returns true if at least one operand is
deemed true
NotionSpells.com is the place to learn about formulas in Notion
Date Formats
WSOGROUPBUY.IN
Date : 2/1/1903, 17h 4 minutes and 6 seconds
dddd : Sunday (full day name)
Z : +01:00 (timezone)
DDDD : 032 (day in the year, 3 positions)
s : 6 (seconds, 1 or 2 positions)
Do : 1st (ordinal day of the month)
ss : 06 (seconds, 2 positions)
DDDo : 32nd (day in the year, ord.)
LO
AD
S.
IN
A : PM (AM/PM)
SO
D
hh : 05 (h, 2 positions, 12h)
O
h : 5 (h, 1 ou 2 positions, 12h)
W
mm : 04 (minutes, 2 positions)
wo : 5th (week, ordinal)
ww : 05 (week, 2 positions)
M : 2 (month, 1 or 2 positions)
Mo : 2nd (month, ordinal)
W
H : 17 (h, 1 ou 2 positions, 24h)
w : 5 (week, 1 or 2 positions)
N
m : 4 (minutes, 1 or 2 positions)
HH : 17 (h, 2 positions, 24h)
MM : 02 (month, 2 positions)
d : 0 (weekday’s index)
MMM : Feb (month, 3 letters)
D : 1 (day, 1 or 2 positions)
MMMM : February (full month)
dd : Su (day, 2 letters)
Q : 1 (quarter)
DD : 01 (day, 2 positions)
Qo : 1st (quarter, ordinal)
ddd : Sun (day, 3 letters)
YY : 03 (year, 2 positions)
DDD : 32 (day in the year)
YYYY : 1903 (year, full)
NotionSpells.com is the place to learn about formulas in Notion
Download