---
title: "ARRAYFORMULA in Google Sheets: syntax and examples | PracticeExcel"
description: "How to use ARRAYFORMULA in Google Sheets: one formula that fills a whole column. With examples and practice."
canonical_url: "https://practiceexcelonline.com/sheets/functions/arrayformula"
locale: en
meta:
  "og:description": "How to use ARRAYFORMULA in Google Sheets: one formula that fills a whole column. With examples and practice."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVJSQVlGT1JNVUxBIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBBUlJBWUZPUk1VTEEgaW4gR29vZ2xlIFNoZWV0czogb25lIGZvcm11bGEgdGhhdCBmaWxscyBhIHdob2xlIGNvbHVtbi4gV2l0aCBleGFtcGxlcyBhbmQgcHJhY3RpY2Uu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_ARRAYFORMULA(array__formula)%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2FycmF5Zm9ybXVsYSI%2Cs_v4E4385oglPzjFXU.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "ARRAYFORMULA in Google Sheets: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVJSQVlGT1JNVUxBIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBBUlJBWUZPUk1VTEEgaW4gR29vZ2xlIFNoZWV0czogb25lIGZvcm11bGEgdGhhdCBmaWxscyBhIHdob2xlIGNvbHVtbi4gV2l0aCBleGFtcGxlcyBhbmQgcHJhY3RpY2Uu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_ARRAYFORMULA(array__formula)%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2FycmF5Zm9ybXVsYSI%2Cs_v4E4385oglPzjFXU.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **ARRAYFORMULA in Google Sheets**

Lets one formula work on whole ranges at once, so the result fills a whole column.

=

ARRAYFORMULA(

## **Syntax**

```
ARRAYFORMULA(array_formula)
```

<dl><dt>**array_formula **</dt>
<dd>The formula that works on ranges, such as A2:A10*B2:B10.</dd></dl>

## **Examples**

D1=ARRAYFORMULA(A2:A4\*B2:B4)

|  | A | B | C | D |
| --- | --- | --- | --- | --- |
| 1 | Qty | Price |  | **10** |
| 2 | 2 | 5 |  | **12** |
| 3 | 3 | 4 |  | **7.5** |
| 4 | 1 | 7.5 |  | |

D1=ARRAYFORMULA(SUM(A2:A4\*B2:B4))

|  | A | B | C | D |
| --- | --- | --- | --- | --- |
| 1 | Qty | Price |  | **29.5** |
| 2 | 2 | 5 |  | |
| 3 | 3 | 4 |  | |
| 4 | 1 | 7.5 |  | |

## **Practice ARRAYFORMULA**

- [**1****One formula for a whole column**→](https://practiceexcelonline.com/sheets/practice/arrayformula/arrayformula-multiply-columns)
- [**2****IF for every row**→](https://practiceexcelonline.com/sheets/practice/arrayformula/arrayformula-if)
- [**3****Join two columns for every row**→](https://practiceexcelonline.com/sheets/practice/arrayformula/arrayformula-join-columns)

## **Related functions**

- [**SUMPRODUCT**](https://practiceexcelonline.com/functions/sumproduct)
- [**IF**](https://practiceexcelonline.com/sheets/functions/if)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/sheets/functions/arrayformula#webpage","@type":"WebPage","description":"How to use ARRAYFORMULA in Google Sheets: one formula that fills a whole column. With examples and practice.","name":"ARRAYFORMULA in Google Sheets: syntax and examples","url":"https://practiceexcelonline.com/sheets/functions/arrayformula","breadcrumb":{"@id":"https://practiceexcelonline.com/sheets/functions/arrayformula#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/sheets/functions/arrayformula"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/sheets/functions/arrayformula#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Google Sheets practice exercises","item":"https://practiceexcelonline.com/sheets","position":2},{"@type":"ListItem","name":"ARRAYFORMULA in Google Sheets: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/sheets/functions/arrayformula#article","description":"How to use ARRAYFORMULA in Google Sheets: one formula that fills a whole column. With examples and practice.","headline":"ARRAYFORMULA in Google Sheets: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVJSQVlGT1JNVUxBIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBBUlJBWUZPUk1VTEEgaW4gR29vZ2xlIFNoZWV0czogb25lIGZvcm11bGEgdGhhdCBmaWxscyBhIHdob2xlIGNvbHVtbi4gV2l0aCBleGFtcGxlcyBhbmQgcHJhY3RpY2Uu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_ARRAYFORMULA(array__formula)%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2FycmF5Zm9ybXVsYSI%2Cs_v4E4385oglPzjFXU.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/sheets/functions/arrayformula#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/sheets/functions/arrayformula#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVJSQVlGT1JNVUxBIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBBUlJBWUZPUk1VTEEgaW4gR29vZ2xlIFNoZWV0czogb25lIGZvcm11bGEgdGhhdCBmaWxscyBhIHdob2xlIGNvbHVtbi4gV2l0aCBleGFtcGxlcyBhbmQgcHJhY3RpY2Uu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_ARRAYFORMULA(array__formula)%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2FycmF5Zm9ybXVsYSI%2Cs_v4E4385oglPzjFXU.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~QVJSQVlGT1JNVUxBIGluIEdvb2dsZSBTaGVldHM6IHN5bnRheCBhbmQgZXhhbXBsZXM%2Cdescription_~SG93IHRvIHVzZSBBUlJBWUZPUk1VTEEgaW4gR29vZ2xlIFNoZWV0czogb25lIGZvcm11bGEgdGhhdCBmaWxscyBhIHdob2xlIGNvbHVtbi4gV2l0aCBleGFtcGxlcyBhbmQgcHJhY3RpY2Uu%2Ceyebrow_Google%2BSheets%2Bpractice%2Bexercises%2Csite_practiceexcel%2Ccode_ARRAYFORMULA(array__formula)%2Cp_Ii9zaGVldHMvZnVuY3Rpb25zL2FycmF5Zm9ybXVsYSI%2Cs_v4E4385oglPzjFXU.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
