Skip to main content
Formula Columns allow you to calculate values dynamically based on other columns. They are essential for pricing, analytics, and decision-making workflows.
Formula column shown in a grid with calculated margin values

1. What is a formula column?

A Formula Column automatically computes values using:
  • Other columns (e.g. {Price}, {Unit Cost})
  • Functions (e.g. SUM, IF, ROUND)
  • Operators (+, -, *, /)
Unlike standard columns, values are not manually entered - they are always calculated.
Formula column add dialog

2. How to create a formula column

Step 1: Add column

  • Click Columns → Add Column

Step 2: Select type

  • Select Formula

Step 3: Configure column

1. Name

Give a clear business name:
  • Margin %
  • Revenue
  • Price Index

2. Display format

Select how results are shown:

3. Build formula

You have three ways:

3. Build formulas

3.1 Manual input

Type directly:

3.2 Insert column references

  • Click Insert column reference
  • Select fields from the list
Insert column reference picker
Example:

3.3 Insert functions

  • Click Insert function
  • Select from the list
Example:

Math and numeric functions

Functions list in the formula editor

ROUND(value, digits)

Rounds a number to a specified number of decimals. Example:

TRUNC(value, digits)

Truncates a number without rounding. Example:

PRODUCT(value1, value2, ...)

Multiplies values. Example:

POWER(base, exponent)

Raises a number to a power. Example:

RAND()

Generates a random number between 0 and 1. Example:

Aggregation functions

SUM(range)

Returns sum of values.

SUMIF(range, condition)

Conditional sum.

MIN(range)

Returns smallest value.

MAX(range)

Returns largest value.

AVERAGE(range)

Returns average.

MEDIAN(range)

Returns median value.

Counting functions

COUNT(range)

Counts numeric values.

COUNTA(range)

Counts non-empty values.

COUNTBLANK(range)

Counts empty cells.

COUNTIF(range, condition)

Counts values matching condition.

Logical functions

IF(condition, value_if_true, value_if_false)

Conditional logic.
String outputs from IF() pair well with Conditional color highlighting. Classify a row in a formula column, then map each classification to a color in the column header menu.

Text functions

CONCAT(value1, value2, ...)

Joins text values.

Date and time functions

NOW()

Returns current date and time.

TODAY()

Returns current date.

Operators (core syntax)

Arithmetic

Comparison

4. Use AI to generate formulas

Step 1: Enable AI

  • Toggle AI ON
AI toggle in the formula editor

Step 2: Describe logic

Example inputs:
  • “Margin”
  • “Revenue = price times quantity”
  • “Discount percent”

Step 3: Generate

  • Click Generate by AI
The system will:
  • Create the formula
  • Validate the syntax

5. Validation and feedback

After writing a formula:
  • Formula is valid - ready to use.
  • Errors - fix syntax or references.
Common issues:
  • Missing {} around columns
  • Invalid function usage
  • Division by zero (logic issue)

6. Key concepts

6.1 Row-level calculation

Formulas work per row. Example:
Calculates revenue per product.

6.2 Column references

Always use {}. Correct:
Wrong:

6.3 Functions

Used for:
  • Aggregation
  • Logic
  • Transformation
Example:

7. Common use cases

Pricing

Margin %
Price Gap vs Competitor

Revenue

Revenue

Classification

Price Tier

Promotions

Discount %

8. Best practices

Naming

  • Use business terms, not technical ones
  • Prefer:
    • Gross Margin %
    • Net Revenue

Simplicity

  • Avoid overly complex formulas
  • Break into multiple columns if needed

Reusability

  • Build intermediate columns:
    • Margin
    • Revenue
  • Then reuse in other formulas

Performance

  • Avoid heavy nested formulas on large datasets
  • Prefer simpler expressions

9. Limitations

  • Some column types do not support aggregation
  • Text fields cannot be used in numeric calculations
  • No multi-row / window functions (yet)
  1. Ensure base data exists (Price, Cost, etc.)
  2. Create core metrics:
    • Revenue
    • Margin
  3. Add derived insights:
    • Classification
    • Flags
  4. Refine with AI or manual tuning

11. Troubleshooting