Google Sheets ARRAYFORMULA: Apply Formulas Down Whole Columns
Use =ARRAYFORMULA(...) to run a single formula across an entire range at once—ideal for form responses, expense logs, and dynamic tables without dragging fill handles.
Sample Line-Item Sheet Used in This Guide
Suppose columns A:D on a sheet contain line items where you want Col E to show line totals and Col F to flag large orders:
| Col A: Item | Col B: Qty | Col C: Unit Price ($) | Col D: Status |
|---|---|---|---|
| SEO Audit | 2 | $150.00 | Paid |
| Template Setup | 1 | $120.00 | Pending |
| Speed Tune-Up | 3 | $90.00 | Paid |
| Hosting Check | 0 | $60.00 | Pending |
1. Row-by-Row Math Across a Range
Instead of typing =B2*C2 in cell E2 and dragging down 200 rows, put one ARRAYFORMULA in E2 and skip empty rows with an A2:A="" check:
=ARRAYFORMULA(IF(A2:A="", "", B2:B * C2:C))
- Why
IF(A2:A="", "", ...)matters: Without a blank check on columnA, an open-ended range likeB2:B * C2:Cevaluates down to row 1,000 and leaves hundreds of0s in your sheet. - Open-ended vs. bounded ranges:
A2:Aworks cleanly when the formula sits in a side column (likeE2), as long as no data sits below it in that column.
2. ARRAYFORMULA With IF Conditions
You can evaluate status or threshold rules across every row at once in column F:
=ARRAYFORMULA(IF(A2:A="", "", IF(D2:D="Paid", "Cleared", "Follow Up")))
Note that inside ARRAYFORMULA, use * for AND logic and + for OR logic rather than nested AND(...)/OR(...) functions, which collapse arrays into a single value.
3. ARRAYFORMULA With VLOOKUP & Lookups
To look up prices or categories for an entire column of codes in A2:A against a lookup table in $H$2:$I$50:
=ARRAYFORMULA(IF(A2:A="", "", IFERROR(VLOOKUP(A2:A, $H$2:$I$50, 2, FALSE), "Not Found")))
Wrapping the lookup in IFERROR(..., "Not Found") prevents a single missing code from leaving #N/A in your output column.
4. Common ARRAYFORMULA Errors & Fixes
#REF!("Array result was not expanded because it would overwrite data"): Something is typed in a cell below or to the right of your formula. Clear the blocking cells so the array can expand.#VALUE!(Array arguments of different sizes): Make sure paired ranges share the same starting row and column span (for example,B2:Bpaired withC2:C).- Need step-by-step error help? Use our interactive Error Debugger or pair this with the Google Sheets QUERY Guide and Google Sheets IMPORTRANGE Guide.
5. Preventing Blank-Row Clutter With IF(...,"",...)
A common mistake with ARRAYFORMULA is filling down formulas into hundreds of empty rows where dates or amounts haven't been entered yet. Guard the calculation with a blank check on the key column:
| A | D | E | F | |
|---|---|---|---|---|
| # | Item | Qty | Price ($) | Line Total ($) |
| 2 | Workbook License | 3 | $25.00 | $75.00 |
| 3 |