How to use ARRAYFORMULA in Google Sheets

Updated · DeskHowTo

In Google Sheets (verified 2026-10-24), type =ARRAYFORMULA(A2:A*B2:B) in a single cell to calculate a whole column without dragging fill handles.

Wrap IF to skip blanks: =ARRAYFORMULA(IF(A2:A="",,A2:A*B2:B)). Clear cells below the formula — ARRAYFORMULA needs room to expand.

Jump to

Applies to Google Sheets on web and mobile (enter formulas on web for ease). Excel Microsoft 365 often spills dynamically without ARRAYFORMULA; the Sheets wrapper is still essential for many ranges.

Fill a column with one formula

Basic array multiply

  1. Click the first result cell (e.g. C2).
  2. Enter =ARRAYFORMULA(A2:A*B2:B) and press Enter.
  3. Results fill down automatically for populated rows.

Skip blank rows

  1. Use =ARRAYFORMULA(IF(A2:A="",,A2:A*B2:B)).
  2. Or limit ranges (A2:A100) if open-ended columns feel slow.
  3. Keep header row above the formula cell.

Combine with other functions

  1. ARRAYFORMULA works with IF, LEN, SPLIT patterns and many unary ops.
  2. Press Ctrl+Shift+Enter in some locales as a shortcut that wraps ARRAYFORMULA.
  3. Avoid putting another formula in the spill column — it causes #REF!.

Our take: one formula, fewer breakages

Dragging 5,000 row formulas invites accidental overwrites. ARRAYFORMULA keeps logic in one cell you can audit. For heavy QUERY/filter work, see Sheets QUERY.

If it fails

  • #REF!: delete leftover values in the column below.
  • Slow sheet: avoid whole-column refs on huge sparse sheets — bound the range.
  • Different Excel behaviour: Excel 365 auto-spills many formulas; Sheets still wants ARRAYFORMULA for open ranges.
  • Permissions: editors can change the master formula — protect the cell if needed.

Frequently asked questions

What does ARRAYFORMULA do?

It lets one formula return results for a range of rows or columns.

Do I need ARRAYFORMULA in Excel?

Microsoft 365 often spills automatically; Sheets still uses ARRAYFORMULA widely.

Why #REF! under my formula?

Another value is blocking the array output — clear those cells.

Can ARRAYFORMULA do VLOOKUP?

Yes for many patterns, though modern XLOOKUP/MAP alternatives may be clearer.

Is ARRAYFORMULA the same as QUERY?

No — QUERY is a mini SQL language; ARRAYFORMULA expands element-wise formulas.

Sources checked: Google Docs Editors Help: ARRAYFORMULA. Verified October 2026.