Get AI summaries of any video or article — Sign up free
MUST-KNOW Notion Formulas for Beginners | Date, Text, If, Calculations, and More! thumbnail

MUST-KNOW Notion Formulas for Beginners | Date, Text, If, Calculations, and More!

5 min read

Based on The Organized Notebook's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Use the `style` function in a Formula property to apply bold/underline/italics/code/strike-through and color choices to another property’s value.

Briefing

Notion formulas don’t have to be intimidating: beginners can start by using a handful of built-in functions to format text, compute date differences, build progress-style metrics, and generate conditional messages—then scale up to counting related records. The payoff is practical automation inside a database, from “how many days left?” to “good job” when a checkbox is ticked.

The first formula technique focuses on styling. By adding a Formula property and using the `style` function, users can apply formatting and colors directly to another property’s value. Valid formatting styles include bold, underline, italics, code, and strike-through, while colors range across gray through red. The transcript shows how to wrap a property (like `name`) inside `style(...)`, then supply a style keyword (e.g., bold) and optionally a color and background (using an underscore prefix for background). The same approach can format other property types too—such as turning a multi-select tag into a consistently styled label.

Next comes date math, built around date properties and functions like `date between`, `date add`, `date range`, and `format date`. `date between` calculates the number of days separating two dates, with the larger (more current) date placed first and the older date second. A simple example demonstrates returning “5” when dates are the 12th and 17th, and the formula can be extended to output human-readable text like “5 days.” For forward-looking tracking, `date add` supports adding time intervals such as one week to a date—useful for subscription renewals or recurring schedules. `date range` constructs a combined range from a start and end date, while `format date now` with `HHmm a` outputs the current time in a readable format including AM/PM.

For numeric progress, the transcript uses multiple number properties—pages read and total pages—to compute a percentage via division. That percentage can then be displayed as a progress bar or ring by switching the formula’s number format to percent. The same calculation pattern supports more complex equations, including scaling values (such as multiplying by 100,000) when needed.

Conditional logic arrives through `if` statements tied to Boolean values like checkboxes. When a completion checkbox is true, the formula returns a message such as “good job”; when false, it returns blank. Finally, formulas can summarize relationships. After creating a relation between two databases (e.g., tasks and subtasks), the formula uses `length` on the related set to count how many subtasks belong to each task, producing a simple number (like “2”) without listing every related record.

Taken together, these beginner-friendly patterns—`style`, date functions, percentage calculations, `if` logic, and `length` over relations—form a practical foundation for building more complex Notion automations.

Cornell Notes

Beginners can use Notion formulas to do more than calculations: they can style text, compute date differences, format dates, show progress percentages, generate conditional messages, and count related records. Text styling uses the `style` function with valid formatting options (bold, underline, italics, code, strike-through) plus color choices and optional background colors. Date functions like `date between`, `date add`, `date range`, and `format date now` help track timelines, subscriptions, and readable timestamps. Numeric formulas can convert “read vs total” into a percent that renders as a progress bar or ring. With `if` and relation-based `length`, formulas can react to checkboxes and summarize related database entries.

How does the `style` function let a Notion formula change the appearance of another property’s value?

A Formula property can call `style(...)` and pass in a property reference (like `name`) plus formatting and color parameters. The transcript lists valid formatting styles such as `B` (bold), `U` (underline), `I` (italics), `C` (code), and `s` (strike-through). Colors include gray, brown, orange, yellow, green, blue, purple, pink, and red. Background colors can be added with an underscore prefix (e.g., `_pink`) so the output can be bold + green + underlined + a pink background, depending on the arguments used.

What’s the practical difference between `date between` and `date add` in Notion formulas?

`date between` returns the number of days separating two dates, and the transcript emphasizes ordering: the more current (larger) date goes first, the older date second. For example, using date 2 (17th) and date 1 (12th) yields 5. `date add` shifts a date forward by an interval—like adding 1 week to `date2`—which is useful for “next valid date” scenarios such as subscriptions or recurring weekly tracking.

How can a formula turn a raw date into a readable timestamp?

Use `format date now` and supply a formatting pattern. The transcript shows using `HHmm a` to output hours and minutes plus AM/PM. This converts a date-time value into a user-friendly string that updates with “now.”

How do multiple number properties become a progress bar or ring in Notion?

Create number properties such as “pages read” and “total pages,” then compute `pages read / total pages` in a formula to produce a percentage. After the formula is created, the property’s number format can be changed to percent, and Notion can render it as a progress bar or ring. The transcript’s example uses 200 pages read out of 500 total to demonstrate the percentage approach.

How does an `if` statement work with a checkbox in Notion?

A checkbox acts like a Boolean (true/false). The formula uses `if(condition, value_if_true, value_if_false)`. In the transcript, when the completion checkbox is checked (true), the formula returns the text “good job.” When unchecked (false), it returns a blank result, so the message appears only after completion.

How can a formula count related records between two databases?

After creating a relation property between databases (e.g., tasks ↔ subtasks), the formula can reference the related set (like `subtask`) and apply `length` to count the items in that relation. The transcript shows two subtasks linked to one task, and the formula returns `2`—optionally adding context text like “2 sub tasks” instead of showing only the number.

Review Questions

  1. When using `date between`, what ordering of the two dates is required to get a positive day count?
  2. What arguments would you include in a `style` function call to make a property value bold and underlined, and how would you add a background color?
  3. How does `length` over a relation differ from listing related items, and what does it return?

Key Points

  1. 1

    Use the `style` function in a Formula property to apply bold/underline/italics/code/strike-through and color choices to another property’s value.

  2. 2

    Add optional background colors in `style` by using an underscore prefix before the color name (e.g., `_pink`).

  3. 3

    Compute day differences with `date between`, placing the more current date first and the older date second.

  4. 4

    Track future dates with `date add` (e.g., add 1 week to a date) and display readable ranges with `date range`.

  5. 5

    Format timestamps using `format date now` with patterns like `HHmm a` for hours/minutes plus AM/PM.

  6. 6

    Turn “part-to-whole” metrics into progress visuals by dividing two number properties and switching the formula’s number format to percent.

  7. 7

    Use `if` with checkbox Booleans for conditional text, and use `length` on a relation to count related database entries.

Highlights

`style` can transform a plain property value into colored, formatted text using built-in style keywords and a selectable color palette.
`date between` returns the number of days between two dates, but the formula depends on putting the later date first.
`format date now` with `HHmm a` produces a clean, human-readable time including AM/PM.
A progress bar or ring can be driven by a formula that calculates `pages read / total pages` and outputs a percent.
Counting related records is as simple as applying `length` to a relation set (e.g., returning 2 subtasks for a task).

Topics

  • Notion Formulas
  • Text Styling
  • Date Calculations
  • Progress Percentages
  • Conditional Logic
  • Relations Counting