> ## Content Index
> Fetch the complete content index at: https://airtables.net/llms.txt
> Use this file to discover other available public pages before exploring further.

# Airtable formulas explained: syntax, field references and common functions
- URL: https://airtables.net/airtable-formula-basics/
- Published: 2026-11-09T13:31:00.000Z
- Updated: 2026-11-23T17:02:21.000Z
- Description: Airtable formulas read named fields in each record. Braces, quoted text, operators, function groups by job, and a three-record check before you rely on it.
- Author: Emma Hayes
- Tags: Formulas

Create a Formula field and reference the input fields by name, such as `{Quantity} * {Unit price}`. Airtable applies that one expression to each record in the table; you don't drag it down a column. I'd start with inputs already held in the same record, because you can check the arithmetic and the meaning before adding conditions.

The line-total example below shows the whole path: choose the input types, create the field, keep a genuine zero and check a missing value. Then use the [text and logic recipes](#recipes) or [date formulas](#dates) for the next job. A formula calculates a value. Sending an email or changing another field belongs to an [automation workflow](https://airtables.net/airtable-automations-guide/).

## Create a line total from two numeric fields

Use a Line items table where each record represents one item on an order. Keep an Item text field for its name, a Quantity **Number** field and a Unit price **Currency** field. These are scalar numeric inputs, rather than text labels or lookup lists. For the example, select dollars and two decimal places for currency display.

[Formula fields are available on all plans](https://support.airtable.com/articles/8772429326-getting-started-with-the-airtable-formula-field?ref=airtables.net). Owner or Creator permissions give access to field configuration. An Editor can change ordinary record values but doesn't have those same configuration permissions.

1. Open the base and its Line items table.
2. Click the **+** beside the last field and choose **Formula**.
3. Name the new field **Line total**. Keep Quantity and Unit price as the original editable inputs.
4. Insert the two fields from the editor's field picker and put `*` between them:

```
{Quantity} * {Unit price}
```

Open **Formatting**, choose Currency with dollars and two decimal places, then click **Create field**. For Quantity `3` and Unit price `2.50`, the expected result is the number `7.5`, displayed as `$7.50`. Change an input and the formula recalculates; you edit the input rather than typing over the result.

This is a line total, not the total for every item on the order. The distinction matters as soon as an order has two Line item records. The [linked-record section](#relationships) explains where that order total belongs.

[![Airtable Formula field named Line total multiplying Quantity by Unit price](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-basics-create.webp)](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-basics-create.webp?ref=airtables.net)

Put both field references inside braces. Airtable calculates the expression once for each record. [View full size](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-basics-create.webp?ref=airtables.net).

## Read field names, quoted text and operators differently

A field reference supplies the value in the current record. In `{Unit price}`, the braces enclose the field's name. Airtable's [functions reference requires braces for names with spaces](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net) and permits a single-word name without them. I'd keep braces around every reference in a beginner formula: they make inputs easy to distinguish from words you want to print.

| Expression                       | Meaning                                           |
| -------------------------------- | ------------------------------------------------- |
| {Status}                         | Read the Status field in this record.             |
| "Status"                         | Return the literal word Status.                   |
| {Quantity} \* {Unit price}       | Multiply two numeric inputs.                      |
| {Quantity} > 0                   | Compare Quantity with zero; return true or false. |
| {First name} & " " & {Last name} | Join text with an explicit space.                 |

Literal strings accept [straight single or double quotes](https://support.airtable.com/articles/1638647282-the-essentials-of-airtable-formulas?ref=airtables.net). Curly quotes copied from a document aren't interchangeable with them. Commas separate function arguments; parentheses enclose the arguments and can group arithmetic, as in `({Materials} + {Labor}) * 1.1` for numeric fields.

Write the expression without a leading `=`. Airtable uses field names rather than spreadsheet addresses such as A2 or a range such as B2:B20\. The arithmetic operators are `+`, `-`, `*` and `/`; text joining uses `&`. A `+` between two names doesn't ask for a full-name label.

Use the picker instead of retyping a long field name. A familiar-looking value can still have the wrong type: a Single select option labelled `2` is text. The [field-type guide](https://airtables.net/airtable-field-types/) helps distinguish entered numbers, dates, selections and computed values.

## Decide what a missing input should mean

The line-total rule needs one more decision before other people rely on it. Should a missing quantity mean zero, or should the record stay incomplete? I'd leave the result blank until both inputs are entered, because a missing price shouldn't look like a free item.

Replace the simple expression with this guarded version. Quantity is a Number field and Unit price is Currency:

```
IF(
  AND(
    ({Quantity} & "") != "",
    ({Unit price} & "") != ""
  ),
  {Quantity} * {Unit price},
  BLANK()
)
```

Read it from the inside out. Appending `& ""` converts each input to text for the presence check. An entered zero becomes the nonempty string `"0"`; a missing Number value becomes an empty string. Airtable's [blank-value guidance explains why a bare numeric truth test also treats zero as false](https://support.airtable.com/articles/5501910359-identifying-blank-values-in-airtable?ref=airtables.net).

`AND` requires both checks to pass. `IF` then chooses the multiplication or `BLANK()`. The checks use text temporarily, but the multiplication still reads the original numeric fields.

| Quantity | Unit price | Expected result | Dollar display |
| -------- | ---------- | --------------- | -------------- |
| 3        | 2.50       | Number 7.5      | $7.50          |
| 0        | 2.50       | Number 0        | $0.00          |
| Empty    | 2.50       | Blank           | Blank          |

A zero Unit price is also an entered value under this rule. If your workflow forbids free items or negative quantities, add that validation deliberately. Completeness and acceptable business values are different questions.

[![Airtable Line total example distinguishes a zero quantity from an empty quantity](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-basics-guard.webp)](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-basics-guard.webp?ref=airtables.net)

A quantity of zero produces a zero total. When quantity is empty, the guarded formula leaves the result blank. [View full size](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-basics-guard.webp?ref=airtables.net).

## Choose the value type before its display

Currency formatting makes the numeric result readable. It doesn't turn `7.5` into a text label. A later formula can still multiply that number. Appending `& ""` to the final result would instead convert it to text, as Airtable's [number-and-text conversion examples](https://support.airtable.com/articles/6701166968-converting-numbers-and-text-in-airtable-formula-fields?ref=airtables.net) show.

Keep a calculated amount numeric or blank. Returning `"Missing price"` from one branch and a number from another introduces mixed output types and prevents consistent numeric formatting. Put the explanation in a separate status field.

Display precision and rounding are separate choices. If the calculation rule requires rounding to two decimal places, use `ROUND({Quantity} * {Unit price}, 2)` inside the successful branch. [ROUND changes the returned value](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net); choosing two display decimals shouldn't substitute for deciding which value later calculations must use.

The [Formatting options also include single-select styling for text and checkbox styling for recognized Boolean results](https://support.airtable.com/articles/1638647282-the-essentials-of-airtable-formulas?ref=airtables.net). Define the allowed text options and a fallback: an unmatched output can appear blank when no fallback is set. These styles still display a computed result. They don't create an editable selection or checkbox.

[![Airtable Line total Formula field displays a number as currency with two decimal places](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-numeric-format.webp)](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-numeric-format.webp?ref=airtables.net)

Use Currency formatting for display while keeping the value numeric for later calculations. [View full size](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-numeric-format.webp?ref=airtables.net).

## Use a small recipe for the next job

### Join two names into one label

For two ordinary text fields, this expression adds a space and removes whitespace from the outside of the resulting label:

```
TRIM(
  {First name} & " " & {Last name}
)
```

Ada and Lovelace produce `Ada Lovelace`. With only Ada entered, the outer space is removed. `TRIM` doesn't collapse every repeated space inside a name. `CONCATENATE({First name}, " ", {Last name})` performs the join too; separators aren't supplied automatically. The [text-joining guide](https://airtables.net/airtable-concatenate-text/) covers optional middle names, punctuation and lookup lists.

A readable name isn't a uniqueness guarantee. Keep a separate identifier when two people or items can share the same label.

### Check whether a date has been entered

For a real Due date field, create a separate Date check Formula field:

```
IF(
  {Due date},
  "Date entered",
  "Needs date"
)
```

An empty Due date returns Needs date. Both a future date and a past date return Date entered. This checks presence, not whether the record is overdue. [IF selects the first outcome when the condition is true and the second otherwise](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net). The [IF guide](https://airtables.net/airtable-if-formula/) covers compound conditions and boundary values.

### Map a priority to a defined instruction

For a single-select Priority field, a text-output mapping can be:

```
SWITCH(
  {Priority},
  "High", "Review today",
  "Normal", "Queue",
  "Set priority"
)
```

High returns Review today; Normal returns Queue. An empty Priority or an unlisted option returns Set priority. That final default makes an incomplete mapping visible. These are example workflow rules, not deadlines inferred by Airtable. Use the [SWITCH guide](https://airtables.net/airtable-switch-formula/) when the mapping itself becomes the main task.

## Keep date calculations separate from date labels

A Date field already holds a date value. For a date-only Start field, add seven calendar days with:

```
IF(
  {Start},
  DATEADD({Start}, 7, 'days'),
  BLANK()
)
```

A Start of November 10, 2026 gives November 17, 2026\. Missing Start stays blank. Choose the result's date formatting after creating the expression. [DATEADD](https://airtables.net/airtable-dateadd/) adds calendar units; a deadline that skips weekends and listed holidays needs [WORKDAY](https://airtables.net/airtable-workday/).

For two real Date fields with the same date-only configuration, calculate End minus Start:

```
IF(
  AND({Start}, {End}),
  DATETIME_DIFF({End}, {Start}, 'days'),
  BLANK()
)
```

November 10 to November 12 returns `2`; reversing those inputs returns `-2`. Either date missing leaves the result blank. The [reference specifies whole integers for DATETIME\_DIFF units](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net). The [interval guide](https://airtables.net/airtable-datetime-diff/) handles time portions, fractional hours and duration formatting.

Imported text needs a different operation. For Date text containing `2026-11-10`, use a separate Parsed date field:

```
IF(
  {Date text},
  DATETIME_PARSE({Date text}, 'YYYY-MM-DD'),
  BLANK()
)
```

The pattern describes the incoming text. It doesn't fix a malformed date or settle an ambiguous one: `03/04/2026` can mean March 4 or April 3\. Confirm the source's order. `DATETIME_FORMAT({Parsed date}, 'MMM D, YYYY')` creates readable *text* for a label; retain Parsed date for calculations. The [date-formatting guide](https://airtables.net/airtable-datetime-format/) covers blank-safe labels, time zones and format tokens.

`TODAY()` supplies the current date; `NOW()` includes time. Airtable [documents recalculation, base-load and periodic refresh behavior](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net), so neither is a continuously ticking clock. A formula saying Send reminder doesn't send anything; configure the actual action in an automation.

## Use linked records when the fact lives elsewhere

A formula can't fetch another record by using an Excel-style absolute address. Airtable's [formula-field guide limits direct references to the same record](https://support.airtable.com/articles/8772429326-getting-started-with-the-airtable-formula-field?ref=airtables.net). Use a linked-record relationship and an appropriate computed field to bring other records' information into that record.

For an order total, link the Order to its Line item records. In an Order Rollup field, select that Line items link, select the numeric Line total field and use `SUM(values)`. The [rollup sums the values from the linked records](https://support.airtable.com/articles/7497685062-rollup-field-overview?ref=airtables.net). Check that all intended items are linked and that no rollup condition excludes one.

`SUM({Materials}, {Labor})` in an ordinary Formula field adds two fields in *one record*. It doesn't sum those columns across the whole table. A lookup can return an array: displayed `1, 1` isn't automatically the number `2`. Use the [lookup and rollup guide](https://airtables.net/airtable-lookup-rollup-fields/) to choose a list, total, count or other aggregation that matches the fact.

A calculated value also isn't a frozen snapshot. If changing a source price mustn't change an accepted historical amount, keep that historical fact in its own stored field. Write down which value should stay live before connecting more formulas to it.

## Choose a function by the result you need

| Job                     | Start with                        | Check                                                |
| ----------------------- | --------------------------------- | ---------------------------------------------------- |
| Choose between outcomes | IF, AND, OR                       | Required inputs and true/false boundaries.           |
| Map known options       | SWITCH                            | Default for missing or unlisted options.             |
| Join or clean text      | &, CONCATENATE, TRIM              | Separators, optional values and internal spaces.     |
| Calculate numbers       | Arithmetic, ROUND, SUM            | Numeric input, rounding rule and record scope.       |
| Work with dates         | DATEADD, DATETIME\_DIFF           | Real date input, unit and subtraction order.         |
| Parse or label a date   | DATETIME\_PARSE, DATETIME\_FORMAT | Incoming text pattern versus output text.            |
| Inspect a text pattern  | REGEX\_MATCH, REGEX\_EXTRACT      | What counts as a match and what happens without one. |
| Identify this record    | RECORD\_ID                        | A record ID doesn't search other records.            |

The [official reference includes a Formula Playground base](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net) with function examples. For a simple text, IF or date expression, the site's [formula builder](https://airtables.net/airtable-formula-builder/) inserts the field names you provide. It doesn't connect to your base or establish that its input types match your data.

## Check the rule before other fields depend on it

Use a separate Formula field while developing a replacement, and keep the previous expression. A formula field applies the same rule to every record. An exception for one record needs a condition or a separate editable input, rather than a different formula typed into that result cell.

For example, a numeric Manual total can override Line total in a *separate* Final total Formula field:

```
IF(
  ({Manual total} & "") != "",
  {Manual total},
  {Line total}
)
```

This preserves a deliberate zero override. Keep Manual total editable and Line total calculated; don't make either depend on Final total and create a loop.

If a formula won't save, check exact field names, straight quotes, commas and nested parentheses. Write `IF(...)` without a space before the opening parenthesis. If it saves but fails on some records, inspect those inputs and their types. The [formula-error guide](https://airtables.net/airtable-formula-errors/) covers zero divisors, blank dates, lookup arrays, circular references and connector searches.

For the line-total rule, check the three records above, then try a missing price and an entered zero price. For a condition, include a value exactly at its threshold. For dates, include a reversed interval. Read the actual result and its display before checking any filtered view or automation that relies on it.

Open the field's dropdown, choose **Edit field description** and name the inputs, output type and missing-value policy. Click **Save description**. “Quantity × Unit price; numeric currency; blank until both entered” tells the next maintainer more than “total formula.” Keep that description and the expected cases beside the expression when handing over the base.