Rollup field overview

Plan AvailabilityAll plan types
Required permissionsOwners/Creators - Can add, delete, duplicate, rename, and customize fields
Platform(s)Web/Browser, Mac app, and Windows app (with some additional limited support on mobile)

A rollup field performs calculations, creates aggregates leveraging formula functions on specific cells from records that are linked together. A simple example in Airtable would look like this:

  1. Records from a marketing campaign table tracking a percentage of email open rates are connected via a linked record field to a table tracking different marketing campaign project types.

  2. In the campaign project types table, all of the email marketing campaigns are linked to a single “Email campaign” record. Other marketing campaign type records are also present.

  3. A rollup field is added in the campaign project types table to roll up the values in the email open rate field. The rollup aggregation formula is AVERAGE(values) so that all of the email open rates for every connected email campaign are rolled up. As more records are linked (or unlinked) over time, the rollup value will dynamically update.

NOTE

We strongly recommend naming your rollup field anything other than "Values." If you title your field "Values," a new rollup field is created that attempts to create a new field to aggregate data named "Values." But if a field named "Values" already exists, the rollup field will use the existing field instead of creating a new one.

  1. Visit your Airtable homepage.

  2. Create or open your preferred base.

  3. Add or edit a field.

  4. Search for and select Rollup.

  5. Click Rollup.

    1. A configuration window opens, allowing you to set up and customize your rollup field.

  6. Click the icon under the “Select rollup source” section and choose your preferred source (The table containing the values that you want to roll up.

  7. Click the icon under the “Articles by category field you want to roll up” and choose your preferred field.

    1. After selecting the preferred field you want to roll up, Airtable populates an aggregation formula in the field below the “Aggregation formula which rolls up the values in each linked record” section. To modify replace or modify that formula, check out the Inserting rollup functions in Airtable rollup fields section.

    2. In addition, you can optionally limit which kinds of records are used in your rollup field. To limit record usage, check out the Limiting record usage in Airtable rollup fields section below.

  8. Click Create field.

  1. Click the icon to the left of “Only include linked records from the Articles by category table that meet certain conditions.”

  1. Click the ⌄ icons and select your preferred filtering options.

  2. Click Create field or Save.

NOTE

Only records that meet your selected conditions are used to produce a value in the rollup field. Check out our Conditional counts, lookups, and rollups support article to learn more.

After selecting the preferred field you want to roll up, Airtable populates an aggregation formula in the field below the “Aggregation formula which rolls up the values in each linked record” section.

  1. Click inside the field below the “Aggregation formula which rolls up the values in each linked record” section and delete the existing formula.

  1. Enter your preferred aggregation formula.

  2. Click Create field or Save.

Name

Description

Examples

AND

Returns true if all the values are true

IF(AND(values>100, values<1000))

ARRAYCOMPACT

Removes empty strings and null values from the array. Keeps "false" and strings that contain one or more blank characters.

ARRAYCOMPACT(values)

=> [1, 2, false, 5] when values are [1, 2, false, null, 5]

ARRAYFLATTEN

Flattens the array by removing any array nesting. All items become elements of a single array. Use when you have a lookup of a lookup for example.

ARRAYFLATTEN(values)

=> [1, 2, 3, false] when values are [[1, 2, "", 3],[false]]

ARRAYJOIN

Join all the values into a single comma-separated string.

ARRAYJOIN(values, "; ")

=> 1; 2; 3 when values are [1, 2, 3]

ARRAYSLICE

Returns a subset of the array from the first index number—starting from 1. Optionally specify an end index to stop. Use negative numbers to begin to count from the end of the array.

ARRAYSLICE(values, start,[end])

ARRAYSLICE(values, 2, 3) => ["B", "C"] when values are ["A", "B", "C", "D"]

  • To get the first item: ARRAYSLICE(values, 1, 1)

  • To get the first two items: ARRAYSLICE(values, 1, 2)

  • To get the last item: ARRAYSLICE(values, -1)

  • To get the last two items: ARRAYSLICE(values, -2)

ARRAYUNIQUE

Return only unique items.

ARRAYUNIQUE(values)

=> "[1, 2, 3]" when values are [1, 2, 3, 3, 2, 1]

AVERAGE

Mean average of the values.

AVERAGE(values)

CONCATENATE

Joins together the text values into a single text value.

CONCATENATE(values)

COUNT

Count only non-empty numeric values. If you want to count all records, use COUNTALL.

COUNT(values)

COUNTA

Count the number of non-empty values. This function counts both numeric and text values.

COUNTA(values)

COUNTALL

Count the number of linked records. Choosing any column of the linked table will produce the same result. This function counts all values including blank records.

COUNTALL(values)

MAX

Returns the largest of the given numbers.

MAX(values)

MIN

Returns the smallest of the given numbers.

MIN(values)

OR

Returns true if any one of the values is true.

OR(values=BLANK(), values=0)

SUM

Sum together the values.

SUM(values)

XOR

Returns true if and only if odd number of values are true.

XOR(values)

Does filtering affect rollup fields?

By default, any filtering conditions applied in a table's view will not affect a rollup of those records in another table. A rollup field will roll up data from all records in the linked table, regardless of whether or not those records have been filtered in that table's views.

If you want to use a rollup field but have it only aggregate values from certain linked records in each cell, you can use a conditional rollup.

How do I format a rollup field's output?

To learn more about formatting, check out our Number-based fields in Airtable support article.