Google Sheets ARRAYFORMULA Function: Syntax, Examples & Tips

The ARRAYFORMULA function allows you to apply a formula to an entire range of cells, enabling bulk calculations without needing to drag formulas down.
Google Sheets
ARRAYFORMULA(array_formula)

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is an ARRAYFORMULA?
  3. A Practical Example
  4. ARRAYFORMULA
  5. Result of the Formula
  6. Why Use ARRAYFORMULA?
  7. Key Takeaways:
  8. Example use case

Parameters

array_formula:
The array or range of cells that you want to apply the formula to. This can include a single cell, a range of cells, or an entire column or row. The formula will automatically expand to cover the entire range specified.

What is an ARRAYFORMULA?

The ARRAYFORMULA function in Google Sheets is a powerful tool that allows you to perform calculations on an entire range of cells rather than a single cell. This function enables you to apply a formula to multiple rows or columns simultaneously, making it an efficient way to handle large datasets without the need to copy and paste formulas across cells.

In simpler terms, ARRAYFORMULA allows you to execute operations on a range of data in one go, saving time and reducing the risk of errors.

A Practical Example

Imagine you are managing a sales report with a list of products and their quantities sold:

Sales Data Table:

ProductIDQuantityPrice
101325.00
102530.00
103215.00

You want to calculate the total sales for each product by multiplying the quantity sold by the price.

ARRAYFORMULA

To achieve this, you would use the ARRAYFORMULA function as follows:

Google Sheets
=ARRAYFORMULA(B2:B4 * C2:C4)

In this formula:

  • B2:B4 is the range containing the Quantity sold.
  • C2:C4 is the range containing the Price of each product.

Result of the Formula

When you apply the ARRAYFORMULA to the Sales Data Table, the output would look like this:

ProductIDQuantityPriceTotal Sales
101325.0075.00
102530.00150.00
103215.0030.00

The Total Sales column is calculated automatically for each product, showing the result of the multiplication of Quantity and Price.

Why Use ARRAYFORMULA?

ARRAYFORMULA is beneficial because it simplifies the process of applying formulas across multiple cells. It eliminates the need for repetitive calculations and allows for dynamic updates; if you change the values in the Quantity or Price columns, the Total Sales will automatically update without needing to adjust individual formulas.

Key Takeaways:

  • ARRAYFORMULA: A Google Sheets function that allows you to perform calculations on entire ranges of data.
  • Efficiency: Saves time by applying a formula to multiple cells at once, reducing manual effort.
  • Dynamic Updates: Automatically recalculates results when the source data changes, ensuring your calculations are always up-to-date.
  • Common Use Cases: Ideal for financial calculations, data analysis, and any scenario where bulk data processing is required.

ARRAYFORMULA is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data management and analysis capabilities.

Happy spreadsheeting!

Example use case

You have a table with sales data in Column A (dates) and Column B (sales figures). Use ARRAYFORMULA to calculate cumulative sales in Column C, allowing you to see total sales up to each date without manually entering formulas for each row.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.