How to Use the ARRAYFORMULA Function in Google Sheets


What number of instances have you ever created a method and copied it to the adjoining cells in your sheet? In Google Sheets, you possibly can skip this step through the use of the ARRAYFORMULA perform.

With ARRAYFORMULA in Google Sheets, you possibly can return a number of values as an alternative of only one. This allows you to mix the perform with others like SUM, SUMIF, IF, and extra to acquire outcomes for a complete cell vary.

About Array Formulation

If you happen to aren’t aware of array formulation, you possibly can merely break down the time period. An array is a spread of cells organized in rows and columns. A method is an equation of kinds that performs an motion or calculation on the referenced cell(s).

So while you mix the 2, an array method permits you to carry out a number of calculations on a gaggle of cells without delay. You possibly can acquire a single consequence or a number of outcomes with an array method primarily based on the calculations you carry out. However many discover the better worth within the latter.

To make utilizing array formulation simpler, Google Sheets gives a perform devoted to it, the ARRAYFORMULA perform.

Use the ARRAYFORMULA in Google Sheets

The syntax for the perform is ARRAYFORMULA(array_formula) the place the one and solely argument is required. The argument can embody a cell vary, expression, or perform for a number of arrays of the identical measurement.

There are two methods to insert an ARRAYFORMULA method in Google Sheets.

This primary technique is right while you’ve already typed your method and notice you wish to use the ARRAYFORMULA perform as an alternative. Or, for these instances while you wish to focus on the meat of the method and fear about including the ARRAYFORMULA perform afterward.

With an atypical method entered right into a cell, place your cursor in or on the method within the System Bar. Then, press Ctrl+Shift+Enter on Home windows or Command+Shift+Return on Mac. You’ll see your method rework into an ARRAYFORMULA method.

Merely press Enter or Return to use the transformed method.

The following technique for inserting an ARRAYFORMULA method in Google Sheets is by getting into it like every other method. So, let’s have a look at some primary examples.

Fundamental ARRAYFORMULA Examples

For this primary instance, we’ll do a easy multiplication calculation for a cell vary. We’ll take our Amount Bought and multiply it by the Unit Value. To do that for our whole array, we’d use the next method:


Whereas we’ve a small cell vary for our calculation right here, cells B2 by B6 multiplied by cells C2 by C6, think about in case you have lots of of cells within the array. Relatively than inserting a method that you just then want to repeat down, simply use the ARRAYFORMULA for the array.

ARRAYFORMULA with multiplication in Google Sheets

For this subsequent instance, let’s toss in one other perform. We’ll add the method for the IF perform because the argument for ARRAYFORMULA. Utilizing the method under, we’ll show Bonus if the quantity within the cell vary F2 by F6 is above 20,000 and No Bonus if it’s not.

=ARRAYFORMULA(IF(F2:F6>20000,"Bonus", "No Bonus"))

Once more, we save a step by inserting a single method that populates for your entire cell vary.

ARRAYFORMULA with IF in Google Sheets

In our closing instance, we’ll mix the SUMIF perform with ARRAYFORMULA. Utilizing the method under, we sum the quantities in cells M2 by M16 if the values in cells O3 by O5 equal these in cells L2 by L16.


Now with this one easy method, we’re in a position to get gross sales totals for less than these three merchandise we wish. The method for the ARRAYFORMULA perform fills our cells for Shirts, Shorts, and Sneakers accurately.

ARRAYFORMULA with SUMIF in Google Sheets

Right here you will have the fundamentals of utilizing the ARRAYFORMULA perform in Google Sheets. So, you possibly can experiment with extra advanced formulation to attain the outcomes you want.

Remember that is a type of Google Sheets capabilities at the moment unavailable in Microsoft Excel, so make the most of it!

Leave a Reply

Your email address will not be published. Required fields are marked *