> ## 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 formula errors: fix invalid formulas, NaN and circular references
- URL: https://airtables.net/airtable-formula-errors/
- Published: 2026-11-10T17:28:25.000Z
- Updated: 2026-11-23T16:42:54.000Z
- Description: Separate a formula that will not save from one that fails on specific records, then verify the inputs and boundary that caused the error.
- Author: Emma Hayes
- Tags: Formulas

To fix an Airtable formula error, first identify where it fails: while saving the expression, in particular records, or in an API or connector search. Check syntax for a formula that won't save; inspect field types and missing inputs for one that saves but returns an error. I'd preserve the original expression and diagnose in a separate field, because replacing an error with a blank can hide the record that still needs attention.

Start with the symptom below. Then check the [zero-versus-blank example](#zero), the [lookup list that needs a rollup](#lookup) or the [actual formula sent by a search module](#api), depending on where the failure occurs.

## Start with the symptom you can see

Airtable's [formula troubleshooting guide](https://support.airtable.com/articles/4885017007-troubleshooting-common-airtable-formula-errors?ref=airtables.net) covers invalid formulas, `#ERROR!`, `NaN`, infinity, circular references and mixed result types. An error label narrows the investigation; it doesn't identify the offending input by itself.

| Symptom                                 | First useful check                                                                                                                 |
| --------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| “Invalid formula” while saving          | Insert the exact field names; check braces, straight quotes, commas, function names and parentheses.                               |
| Only some records show an error         | Compare a failing record with a working one. Inspect source types, missing inputs and text that should represent a number or date. |
| NaN or infinity                         | Check the divisor before dividing. For date calculations, inspect both date inputs.                                                |
| It fails after another record is linked | A lookup may now contain several values. Decide how those values should be aggregated.                                             |
| Circular reference                      | Trace the dependencies back to the field being edited; an indirect loop still counts.                                              |
| Number or date formatting disappears    | Check whether a branch returns a text label or a formatted string instead of the intended value type.                              |
| API/Make search rejects the formula     | Check the target base and table, complete field names and the expanded expression after values are inserted.                       |
| Search succeeds but finds nothing       | Check the condition, any view filter and array inputs. An empty response isn't necessarily invalid syntax.                         |

## Preserve the original and isolate one expression

Copy the existing formula before editing it. Airtable applies a [formula field to every record in its table](https://support.airtable.com/articles/8772429326-getting-started-with-the-airtable-formula-field?ref=airtables.net), so one change can affect many calculated values. Keep the existing field and its dependents while you diagnose.

With Owner or Creator permissions, use the **+** beside the last field, choose **Formula** and give the diagnostic field a distinct name. Work in the same table as the failing expression. The [formula setup guide](https://airtables.net/airtable-formula-basics/) covers creating and formatting the field.

1. Start with one reference, such as `{Status}`. Insert the field from the editor's picker so its name matches exactly.
2. Add the smallest comparison: `{Status} = "Ready"`.
3. Add the function around the working comparison: `IF({Status} = "Ready", "Send", "Wait")`.
4. Restore the remaining operations one at a time, checking the original failing record after each addition.

If one reference is already wrong, another nested `IF` won't clarify it. Check which table and field hold the fact you need. An Airtable formula reads fields in its own record; values from other records need an appropriate linked-record, lookup or rollup path.

## Fix syntax before trying to catch an error

The [functions reference requires braces around field names containing spaces](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net). These examples use braces for every field to distinguish references from text: `{Status}` reads the field; `"Status"` returns the word.

Replace pasted curly quotes with straight quotes. Pair each function's parentheses in the correct nesting order and separate its arguments with commas. Matching the number of opening and closing parentheses isn't enough if they close the wrong functions. Write `IF(...)`; Airtable documents that `IF (...)`, with a space before the opening parenthesis, is rejected.

Spreadsheet expressions also need translation. Don't paste `=IFERROR(...)` from Excel: Airtable expressions don't begin with `=`, and its current reference provides `IF()` and `ISERROR()` for conditional error handling. Use field names rather than cell addresses. A field reference isn't a function call, so `{Record Created}()` has an extra pair of parentheses.

The [formula builder](https://airtables.net/airtable-formula-builder/) can assemble a simple text, IF or date recipe. It doesn't inspect your base or resolve a circular dependency. Check its field names and input assumptions before using the result.

[![An Airtable formula field editor with an IF expression missing its final parenthesis](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-error-syntax.webp)](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-error-syntax.webp?ref=airtables.net)

A formula with a missing parenthesis fails at save. Fix the expression before checking what it returns on individual records. [View full size](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-error-syntax.webp?ref=airtables.net).

## Inspect the source type, not just the displayed value

A Single select option labelled `2` is still text. Airtable's troubleshooting example shows that multiplying such a field by a Currency field produces an error. Open the source field's configuration and compare an ordinary record with the failing one. A familiar-looking value doesn't establish the type a calculation receives.

Before converting a field type, preserve the table or export its data and retain the original values. If a field must remain text, [VALUE converts a text string to a number](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net), but its documented exceptions include strings containing minus and percent operators. Define the incoming format first. Removing every non-digit character would turn `-12.50` into `1250`, changing both its sign and magnitude.

Dates have a similar boundary. `DATETIME_FORMAT` produces text; `DATETIME_PARSE` interprets text as a date. For a Date text field containing values such as `2026-11-10`, this expression leaves missing input blank and parses an entered value:

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

The format describes the incoming text. It doesn't validate every entered date or repair a malformed value. Airtable's [number-and-text conversion guidance](https://support.airtable.com/articles/6701166968-converting-numbers-and-text-in-airtable-formula-fields?ref=airtables.net) explains why `03/04/2026` can parse successfully as two different dates under month-first and day-first patterns. Confirm the source's order before calculating with it. The [date-formatting guide](https://airtables.net/airtable-datetime-format/) covers the distinction between a date and its readable label.

## Guard the divisor and keep a genuine zero

[Zero divided by zero produces NaN; division of a nonzero number by zero produces infinity](https://support.airtable.com/articles/4885017007-troubleshooting-common-airtable-formula-errors?ref=airtables.net). Checking only whether the numerator is positive leaves the dangerous divisor unchecked.

Say Actual and Goal are Number fields. The rule is: Actual must be entered, zero Actual is valid, and Goal must be positive. I'd make that rule explicit, because “nothing entered” and “no progress” need different follow-up. Use this numeric-or-blank formula:

```
IF(
  AND(
    {Goal} > 0,
    ({Actual} & "") != ""
  ),
  {Actual} / {Goal},
  BLANK()
)
```

A bare `IF({Actual}, ...)` treats numeric zero as false. Airtable's [blank-value FAQ uses conversion to text to distinguish an empty Number field from zero](https://support.airtable.com/articles/5501910359-identifying-blank-values-in-airtable?ref=airtables.net). Here, `{Actual} & ""` yields an empty string for missing input and `"0"` for zero.

| Actual | Goal       | Expected numeric result             | Percent display |
| ------ | ---------- | ----------------------------------- | --------------- |
| 4      | 10         | 0.4                                 | 40%             |
| 0      | 10         | 0                                   | 0%              |
| Empty  | 10         | Blank                               | Blank           |
| 5      | 0 or empty | Blank                               | Blank           |
| 5      | −10        | Blank under this positive-goal rule | Blank           |

Set the result's **Formatting** to Percent. Keep numeric `0` as a number; returning `"0%"` would introduce text. A negative denominator is mathematically usable, but this particular workflow rejects it. If negative goals are meaningful in your base, change the rule deliberately rather than applying this example unchanged.

[![Airtable formula cells show that a valid zero and a guarded blank are different](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-zero-blank.webp)](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-zero-blank.webp?ref=airtables.net)

An amount of zero divided by four gives zero. Guard the divisor so the undefined result stays blank. [View full size](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-guide-formula-zero-blank.webp?ref=airtables.net).

## Require both date inputs before subtracting them

For Start and End fields that are already real Date fields, Airtable documents this blank-safe pattern:

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

The function subtracts Start from End. Its [result is a whole integer in the chosen unit](https://support.airtable.com/articles/7330071120-airtable-formula-field-functions-reference?ref=airtables.net). These expected examples use date-only values with the same date configuration:

| Start      | End        | Expected result |
| ---------- | ---------- | --------------- |
| 2026-11-10 | 2026-11-12 | 2               |
| Empty      | 2026-11-12 | Blank           |
| 2026-11-12 | 2026-11-10 | −2              |

A negative result can be a correct calculation of the wrong business condition. Decide whether End is allowed to precede Start. The [DATETIME\_DIFF guide](https://airtables.net/airtable-datetime-diff/) covers time portions, units and duration formatting; [WORKDAY](https://airtables.net/airtable-workday/) covers a due date that must skip weekends.

## If a lookup contains several numbers, define the aggregation

Airtable explains that a [lookup returns a list of values, or array](https://support.airtable.com/articles/8927322518-lookup-field-overview?ref=airtables.net). A displayed `1, 1` isn't the scalar number `2`. A calculation that seemed plausible with one linked record can expose that mismatch when a second is linked.

Say two Booking records each store a numeric Booked amount of `1`, and an Order links to both. To calculate the total booked amount, add a separate Rollup field named Booked total:

1. Choose **Rollup** as the field type.
2. Select the Order's Bookings linked-record field as the source.
3. Select the numeric Booked amount field on those linked records.
4. Enter `SUM(values)` as the aggregation formula and create the field.

The [rollup reference defines SUM as adding the linked values](https://support.airtable.com/articles/7497685062-rollup-field-overview?ref=airtables.net). Both numeric ones now contribute to a total of `2`. With Sold equal to `2`, the ratio is `1`, displayed as `100%`. Guard Sold before dividing, just as with Goal above.

[![Booked total Rollup field configured with the Bookings link, Booked amount source and SUM(values), above Create field.](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-rollup-booked-total-source.webp)](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-rollup-booked-total-source.webp?ref=airtables.net)

Select the Bookings link, choose its numeric Booked amount field and enter SUM(values). Click Create field to add Booked total. [View full size](https://storage.ghost.io/c/a9/2c/a92c670f-47cf-4c4a-afab-8582761151cb/content/images/2026/11/airtable-rollup-booked-total-source.webp?ref=airtables.net).

Choose the aggregation for the fact, not just to remove the error. Use `AVERAGE(values)` for a mean or `MAX(values)` for the largest value when that is the intended rule. Check which records are linked and whether a rollup condition excludes any. Decide separately whether no bookings means zero or missing information.

`ARRAYJOIN` turns values into text; it doesn't add them. Converting the joined list back to one number won't supply an aggregation rule. The [lookup and rollup guide](https://airtables.net/airtable-lookup-rollup-fields/) explains the relationship and empty-list cases.

## Break a circular reference at its dependency

A circular reference means a field depends on itself, directly or through other fields. For example, Total reads Adjustment while Adjustment reads Total. Adding `IF` or `ISERROR` around either calculation doesn't supply an independent starting fact.

Write the chain of field references until you reach an editable input or return to the starting field. Decide which amount should be entered independently, then make the calculation flow from that input in one direction. Computed primary fields and linked relationships can make the chain less obvious. Preserve those relationships while locating the loop.

## Keep the value and the diagnostic message separate

A formula that returns a number in one branch and `"Missing Info"` in another has mixed output types. It can't retain consistent number formatting. Return a number or `BLANK()` in the calculated field and put the explanation in a separate status field. Likewise, a date formatted into text no longer offers the same date behavior.

[ISERROR detects an expression error; ERROR deliberately produces one](https://support.airtable.com/articles/6048631622-catching-errors-in-airtable-using-logical-functions?ref=airtables.net). If Raw result is an existing calculated field, create a *different* Formula field for this status:

```
IF(ISERROR({Raw result}), "Review inputs", "OK")
```

“OK” means the expression didn't produce an error. It doesn't prove completeness, correct customer links or the right comparison direction. Keep separate checks for required information and business rules.

If downstream readers need a blank instead of an evaluation error, a separate presentation field can use:

```
IF(ISERROR({Raw result}), BLANK(), {Raw result})
```

Keep Raw result and its diagnostic available while fixing the inputs. Don't put that wrapper into Raw result itself, which would introduce a self-reference. Error handling operates on an expression Airtable can evaluate; an invalid expression or circular dependency still needs repair.

## For API or Make searches, inspect the expanded request

Confirm the exact base and table selected by the request. Then compare the expanded formula, after the connector inserts its values, with a temporary Formula field in that same table. Begin with a hardcoded scalar condition such as `{Status} = "Ready"`. Add dynamic values and additional conditions only after that simple expression selects the expected records.

The [filterByFormula guidance requires field names, not field IDs](https://support.airtable.com/articles/1941464361-airtable-web-api-using-filterbyformula-or-sort-parameters?ref=airtables.net). A lookup named `Email (from Customers)` needs that complete name inside the braces. Also check whether you're comparing an array with a scalar; a rollup or helper field may be needed.

For the request to return a record, the formula must evaluate to an included value. Outputs of `0`, `false`, `NaN`, `[]` and `#Error!` are excluded. If a `view` parameter is also supplied, the record must belong to that view *and* satisfy the formula. A successful empty response can reflect the condition or view.

### Escape the inserted value before encoding the parameter

A name containing an apostrophe can close a single-quoted literal early. Airtable's example uses O'Brien: `{Name} = 'O'Brien'` is broken. The escaped version preserves the apostrophe within the value:

```
{Name} = 'O\'Brien'
```

For a single-quoted literal, the documented order is to escape existing backslashes first, then single quotes, assemble the complete formula and finally URL-encode the parameter. Formula escaping and URL encoding solve different problems. Check whether the client or connector already performs URL encoding before adding another layer.

Don't publish a token or real customer values when asking someone to inspect the request. An authentication or access response belongs to the [authorization checks](https://airtables.net/airtable-oauth-vs-token/). Changing formula punctuation won't grant access to a base.

## Verify the original failure and its boundary

Check an ordinary record, the original failing record and the input that exposed the problem. For progress, compare zero Actual with an empty Actual and a zero Goal. For dates, check both present, one absent and reversed order. For a linked calculation, include both one and two linked records.

Inspect the stored result and its formatting. For a search, check both a record that should match and one that should be excluded. A formula that now saves can still select the wrong orders.

Before replacing the original expression, compare dependent formulas, filtered views and automation conditions that read it. Preserve the previous expression for restoration and record the intended rule for the next maintainer. Finish when the original failing record and the boundary cases produce the intended values.