How to use the FILTER function with AND in Google Sheets

The FILTER function in Google Sheets can be used with the AND operator to filter data based on multiple criteria. The function takes two or more conditions and returns the rows in the specified range that meet all of the conditions. For example, if you wanted to filter out all of the rows in a dataset where the value in column A is greater than 10 and the value in column B is less than 15, you could use the FILTER function with the AND operator to do so.


You can use the following basic syntax in Google Sheets to use the FILTER function with AND logic:

=FILTER(A1:C10, A1:A10="A", C1:C10<20)

This filter returns the rows in the range A1:C10 where the value in column A is equal to “A” and the value in column C is less than 20.

The following example shows how to use this syntax in practice.

Example: How to Use Filter Function with AND in Google Sheets

Suppose we have the following dataset in Google Sheets that contains information about various basketball players:

We can use the following formula to filter for all rows where the team is equal to “A” and the points is less than 20:

=FILTER(A1:C10, A1:A10="A", C1:C10<20)

The following screenshot shows how to use this formula in practice:

Google Sheets FILTER function with AND

The only rows returned are the ones where the team is equal to “A” and the points is less than 20.

We can also use more commas in the FILTER function to apply even more AND operators.

For example, we can use the following syntax to filter for rows where the team is equal to “A” and the position is “Forward” and points is greater than 24:

=FILTER(A1:C10, A1:A10="A", B1:B10="Forward", C1:C10>24)

The following screenshot shows how to use this formula in practice:

The following tutorials explain how to perform other common operations in Google Sheets:

x