ARRAYFORMULA(array_formula)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
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.
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.
Imagine you are managing a sales report with a list of products and their quantities sold:
| ProductID | Quantity | Price |
|---|---|---|
| 101 | 3 | 25.00 |
| 102 | 5 | 30.00 |
| 103 | 2 | 15.00 |
You want to calculate the total sales for each product by multiplying the quantity sold by the price.
To achieve this, you would use the ARRAYFORMULA function as follows:
=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.When you apply the ARRAYFORMULA to the Sales Data Table, the output would look like this:
| ProductID | Quantity | Price | Total Sales |
|---|---|---|---|
| 101 | 3 | 25.00 | 75.00 |
| 102 | 5 | 30.00 | 150.00 |
| 103 | 2 | 15.00 | 30.00 |
The Total Sales column is calculated automatically for each product, showing the result of the multiplication of Quantity and Price.
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.
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!
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.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.