Mastering Notion Formulas: A Step-by-Step Guide for Efficient Usage

New to Notion?
How to Use Formulas in Notion
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Notion is a powerful all-in-one workspace that offers a wide range of features to help you create and organize your digital environment. One of Notion’s most versatile capabilities is using formulas in databases, allowing you to perform calculations and manipulate data directly within your pages.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Formulas in Notion are evaluated on a per-row basis and are useful for computing values such as totals, averages, dates, and even automating tasks based on specific conditions. For aggregations across rows, consider using Notion’s built-in summary functions or rollups. In this article, we’ll explore the basics of using formulas in Notion and provide several useful examples.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Understanding Formulas in Notion
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Notion formulas are written with a syntax reminiscent of traditional spreadsheet formulas. They let you perform calculations on data within a database and display the results in a dedicated column. Notion uses its own custom formula language with a diverse set of functions and operators that have been enhanced significantly over time.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Using Formulas in Databases
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
To employ formulas in Notion, start by creating a new database or opening an existing one. Within the database properties, add a new column and select the Formula type. Once your formula column is added, you can begin writing custom formulas using Notion’s functions and operators.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Basic Formulas
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Notion formulas support a mix of functions, operators, and values. Here are some examples of basic formulas you can use:
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
- SUM/AGGREGATE: Although a formula column operates on a per-row basis, you can display sums or aggregates at the bottom of the table using the built-in summary functions. For related data in linked databases, rollup properties enable you to sum numbers across related rows.
- AVERAGE: Use the built-in summary functions to calculate the average of a numeric column. For per-row calculations, you might aggregate computed values with rollups.
- COUNT: To count items, Notion provides built-in aggregation at the bottom of the column. For conditional counting within a row, you can combine formula logic with the
if()function. - DATE: To display the current date and time, use the function
now(). Writingnow()in a formula column updates dynamically to show the current timestamp.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Advanced Formulas
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Notion’s formula language now supports a wide range of advanced calculations, including conditional statements, date manipulations, and string operations. Here are some examples:
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
- Conditional Logic with IF: Use
if(condition, truevalue, falsevalue)for condition-based calculations. For example,
​
​
​
​
​
​
​
if(prop("Status") == "Completed", "Done", "Not Done")
​
​
​
​
​
​
​
outputs "Done" if the Status property is "Completed" and "Not Done" otherwise.
​
​
​
​
​
​
​
- Date Differences with dateBetween: To calculate the difference between two dates, use
​
​
​
​
​
​
​
dateBetween(prop("Start Date"), prop("End Date"), "days")
​
​
​
​
​
​
​
which returns the number of days between the Start Date and End Date properties.
​
​
​
​
​
​
​
- Concatenation with concat: To combine strings, use
​
​
​
​
​
​
​
concat(prop("First Name"), " ", prop("Last Name"))
​
​
​
​
​
​
​
which merges the First Name and Last Name properties with a space in between.
​
​
​
​
​
​
​
- Additional Functions: Notion has introduced functions like
dateAdd(),dateSubtract(),round(),abs(), and more. These functions allow for refined numerical calculations and date manipulations, helping you create even more sophisticated workflows.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Implementing Formulas in Workflows
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Using formulas in Notion can greatly enhance your productivity by automating tasks and ensuring data accuracy. Here are some practical examples of how you might implement formulas:
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
- Automatically Calculating Totals
​
​
​
​
​
​
​
Use summary functions or rollups to automatically calculate totals for numerical data. This is perfect for tracking expenses, sales figures, or other metrics.
​
​
​
​
​
​
​
- Conditional Formatting
​
​
​
​
​
​
​
Leverage the if formula to apply conditional logic. For example, you can highlight overdue tasks or categorize items based on status.
​
​
​
​
​
​
​
- Date-Based Automations
​
​
​
​
​
​
​
Implement date-related functions such as now(), dateAdd(), and dateBetween() to set up reminders for upcoming events or automatically update properties based on the current date. For more details on setting reminders, check out this guide.
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Conclusion
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
Formulas in Notion offer a robust way to manipulate and compute data directly in your workspace. Whether you’re performing straightforward arithmetic or automating complex workflows with conditional logic and date manipulations, Notion’s enhanced formula features provide the flexibility you need. By mastering both the basics and advanced applications of formulas, you can unlock new levels of efficiency and organization in your digital workflow.
