In this article:

FILTER and ARRAYFORMULA in Google Sheets (2024 Guide)

FILTER in Google Sheets Explained

The FILTER function is used to filter a range of data based on certain criteria. 

The basic syntax is: 

FILTER(range, condition1, [condition2, ...])

  • range is the area of cells that you want to filter.
  • condition1 is the condition that the data must meet to be included in the result.
  • [condition2, ...] are optional additional conditions.

ARRAYFORMULA in Google Sheets Explained

ARRAYFORMULA enables you to output a formula over a range of cells, applying the formula to each cell in the range. This is particularly useful for expanding formulas that would otherwise only output a single value. 

The basic syntax is:

ARRAYFORMULA(array_formula)

  • array_formula is the formula you want to apply over an array/range.

How to Use ARRAYFORMULA with FILTER in Google Sheets

While FILTER inherently processes arrays, there are scenarios where you might want to use ARRAYFORMULA with FILTER, especially when incorporating functions that don't automatically apply to each cell in a range or when you need to perform operations on the filtered results.

Suppose you have a dataset in A1:B10 where column A contains names and column B contains scores. 

google sheets filter arrayformula

You want to filter scores above 50, multiply them by 2, and then add 10 to each of these scores. You can use the following formula:

=ARRAYFORMULA(FILTER(B1:B10, B1:B10 > 50)*2 + 10)

google sheets arrayformula filter

We hope that this article has helped you and given you a better understanding of how to combine FILTER with ARRAYFORMULA in Google Sheets. If you enjoyed this article, you might also like our articles on how to do a chi square test in Google Sheets and how to group tabs in Google Sheets.

Automate repetitive tasks with Lido

Save hours on repetitive and tedious work. Lido is a new spreadsheet that connects your spreadsheets, forms, PDFs, and email inbox.

Trigger
Action
Select trigger
When a cell value in Google Sheets changes
Check Google Sheets for today's date
When a new row is added to Google Sheets
On new Google Form submission
Send me a daily reminder
On new Typeform submission
When a cell value in database changes
Check database for today's date
When a new row is added in database
When a new HubSpot customer is created
Select action
ADDCALENDAREVENT
Creates a one- or multiple-day calendar event with optional attendees
ADDHUBSPOT
Adds an object to Hubspot
ADDSLACKCHANNEL
Create a Slack channel, and optionally add a topic or members
CALLURL
Makes any HTTP request
CREATEGOOGLEDOC
Replaces [@column_name] values in a Google Doc with the corresponding table row's values
CREATEPDF
Replaces [@column_name] values in a Google Doc with the corresponding table row's values, then export it as a PDF
FETCH
Makes any HTTP request and returns the response
INSERTROWS
Inserts given array below defined values in given worksheet
SENDGMAIL
Sends an email using your Google account
SENDOUTLOOK
Sends an email using your Microsoft Outlook account
SENDSLACK
Sends a Slack message
SENDSMS
Sends an SMS message using your Twilio account
UPDATECELL
Updates cells with given values
UPDATEHUBSPOT
Updates a property of a Hubspot object
Trigger is required
Action is required
Get started