Google Sheets Function Guide

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))

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

Related Guides & Tools: Explore Google Sheets QUERY Function Guide, Google Sheets IMPORTRANGE Guide, Google Sheets REGEXEXTRACT Guide, or download starter workbooks from the Templates Pack.

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:

=ARRAYFORMULA(IF(A2:A50="", "", D2:D50 * E2:E50))
A D E F
# Item Qty Price ($) Line Total ($)
2 Workbook License 3 $25.00 $75.00
3