How to Use ARRAYFORMULA in Google Sheets
Write one formula that fills an entire column — and keeps filling as new rows arrive — instead of dragging the same formula down forever. This is one of the most useful habits in Google Sheets.
The quick version: instead of dragging =A2*B2 down a thousand rows, write =ARRAYFORMULA(A2:A * B2:B) once. It fills the whole column and keeps filling as rows arrive. Here's how it works.
From one cell to a whole column
Start with the single-row formula — say revenue = quantity × price: =A2*B2. Now swap the single cells for column ranges and wrap it:
=ARRAYFORMULA(A2:A * B2:B)
Put that in the first data row and it computes every row below at once. Add new rows and they fill automatically — nothing to re-drag.
The shortcut
Type the range version (=A2:A*B2:B) and press Ctrl+Shift+Enter. Sheets wraps it in ARRAYFORMULA for you.
Don't fill the blank rows
By default ARRAYFORMULA shows 0 (or errors) on empty rows. Guard it with IF so blanks stay blank:
=ARRAYFORMULA(IF(A2:A="", "", A2:A * B2:B))
Where it shines
Any per-row calculation that would otherwise be dragged: totals, concatenating first + last name (=ARRAYFORMULA(A2:A&" "&B2:B)), tax columns, status flags. One formula, always current.
Analyze your Sheets data with AI
Ask questions about your Google Sheets in plain English and get answers in the cell with =QUIRIZ(). Free to start.
Try Quiriz free →