Plan availability | All plan types |
Permissions |
|
Platform(s) | Web/Browser, Mac app, and Windows app |
Finding the sum of fields in Airtable overview
Note
If your goal is to quickly view a field's total without using it in another formula, toggle on the “Sum function” in the summary bar at the bottom of a grid view. No additional fields are needed.
Because formulas in Airtable apply only to fields within the same record, it's not possible to create a standalone formula in one record that references values across other records. Instead, summing field values requires a combination of a linked record field and a rollup field.
There are 2 approaches depending on the goal:
Sum all records in a field — Link every record to a single calculation record, then use a rollup field to total them
Sum a subset of records — Link only the relevant records to a calculation record, then roll up just those values
Finding the sum of fields in Airtable
Step 1: Create a linked record field in the Values table
Open your Airtable home screen.
Open the base that contains the records that you want to sum.
Click + at the end of the field headers in the “Values” table to add a new field.
Select “Linked to another table” as the field type.
Choose Create a new table and name it “Calc” (short for Calculation).
Click Save.
Step 2: Link every record to a single record in the Calc table
In the “Values” table, click the first cell in the new linked record field.
Click + to create a new linked record and name it “All.”
Click the second cell in the linked record field.
Select the “All” record.
Repeat for each remaining record or use the fill handle to populate all cells with the “All” record.
Step 3: Add a rollup field in the Calc table
Navigate to the “Calc” table.
Click + to add a new field.
Select “Rollup” as the field type.
Under "Linked table field to summarize," select the linked record field from the “Values” table.
Under "Summarize by," choose the number field to total.
In the formula box, enter “SUM(values).”
Click Save.
The rollup field in the “All” record now displays the total of every value in the linked number field.
Sum a subset of records
Note
A single record in the “Values” table can be linked to more than 1 record in the “Calc” table, which allows the same value to appear in multiple calculations.
To calculate the total of only certain records, link those records to a separate record in the Calc table rather than the All record.
In the “Calc” table, create a new record and give it a descriptive name (for example, “Q1 Total”).
In the “Values” table, click the linked record field for each record to include in the subset.
Select the new record (“Q1 Total”)) instead of “All.”
The rollup field in the Calc table will display a separate total for each calculation record.
FAQs
Can I use the rollup field for calculations other than SUM?
Yes. The rollup field supports functions like AVERAGE(values), MAX(values), MIN(values), and COUNT(values), among others. Replace SUM(values) in step 3 with the preferred function. For a full list of available functions, see the rollup field overview.
Can I use the resulting sum in another formula?
Yes. Once the rollup field is created in the Calc table, it can be referenced in a formula field within the same table like any other field.
Does this work if the number field has empty cells?Owner/Creator - Have access to all field configuration options
Editor - Can sort, filter, group, or hide a field within a view
Commenter/Read-only - Can copy a field's URL
Yes. Empty cells are treated as zero and don't affect the sum.