Google Sheets ARRAYFORMULA: Full Column Calculation Without Dragging
ARRAYFORMULA enables single spreadsheet formulas to output an entire matrix or column of calculated results automatically. When new rows are entered, ARRAYFORMULA calculates them instantly without requiring manual formula dragging.
=ARRAYFORMULA(array_formula)Formula Parameters & Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
| array_formula | Expression | Required | A range or mathematical expression using range coordinates (e.g., A2:A * B2:B). |
Real-World Spreadsheet Examples
Explore verified operational formulas used in enterprise reporting and database workflows:
Example 1: Calculate Line Item Totals Down Entire Column
=ARRAYFORMULA(IF(A2:A="", "", B2:B * C2:C * (1 - D2:D)))Example 2: Concatenate First and Last Names with Title Case
=ARRAYFORMULA(IF(A2:A="", "", PROPER(TRIM(A2:A) & " " & TRIM(B2:B))))Example 3: Dynamic Age Calculation from Birthdates
=ARRAYFORMULA(IF(A2:A="", "", DATEDIF(A2:A, TODAY(), "Y")))Common Errors & Solutions
Performance Pro Tips
- Use Ctrl+Shift+Enter (Cmd+Shift+Enter on Mac) while editing any formula to wrap it in ARRAYFORMULA instantly.
- Certain aggregation functions like AND, OR, and SUM do not work inside ARRAYFORMULA; use multiplication `*` for AND, addition `+` for OR.
Frequently Asked Questions
Does ARRAYFORMULA recalculate automatically when data changes?
Yes. Google Sheets recalculates all dependent formulas immediately whenever referenced input cells are modified.
Is this formula compatible with Microsoft Excel?
Modern functions like XLOOKUP, FILTER, UNIQUE, SORT, and LET are natively supported in Excel 365. However, QUERY is unique to Google Sheets and uses the Google Visualization API syntax.
Related Google Sheets Formulas
QUERY
The QUERY function is Google Sheets' most versatile formula, executing a SQL-like Google Visualization API Query Language string across spreadsheet tables to filter, aggregate, group, pivot, and sort data in a single formula.
Data TransformationFILTER
FILTER dynamically outputs only the rows or columns from a source range that satisfy one or more logical conditions. As source data updates, filtered results re-calculate automatically.
Data TransformationCHOOSEROWS
CHOOSEROWS extracts specific rows from an array or range by their index numbers. Supports negative indexing to pull rows from the bottom of a dataset.