How To Use Filter Operate On Google Sheets (Detailed Information)

Posted on

Because the title suggests, the filter operate on Google Sheets filters particular knowledge in your spreadsheet.

Utilizing it, you’ll be able to simply view the specified half of a big dataset with out trying to find it manually. Additionally, it permits you to enter a number of situations, which additional helps in narrowing down the info.

On this article, we clarify how one can create a filter operate and the way it works intimately.

Learn how to Use the Filter Operate on Google Sheets?

Earlier than you progress on to alternative ways to make use of the filter operate, we advocate you perceive its syntax.


=FILTER(vary, condition1, [condition2,…])

The filter operate accepts two varieties of arguments; vary and situation.

  • Vary: Vary of values in a column block you wish to view after filtering. (can comprise a number of columns)
  • Situation 1: Row or column that returns an array of boolean values (True or False)
  • Situation 2: Optionally available situations you’ll be able to add to slender down the filter outcomes.

Utilizing Filter Operate with a Single Situation

Right here, we enter just one situation together with the vary argument contained in the filter operate.


=FILTER(vary, situation)

To get a transparent image, let’s take a look at an instance.

Single Situation Instance

Right here, we wish to use the filter operate to get solely the names of individuals whose wage is bigger than 2000.

  1. First, sort =FILTER( to make use of the filter operate.
  2. Then, enter the vary (column blocks) that you simply wish to view after performing the filter operate. Right here, we solely need the names. However, you may also choose a number of columns (Title and Position).step-2-3908984
  3. Now, enter a spread to verify the required situation. Right here, we’re implementing our situation on a single column referred to as “Wage”.
  4. Shut the bracket and press Enter.
  5. The filtered consequence will spill throughout rows and columns subsequent to the cell with the filter operate.


If you enter the vary argument, make sure it matches the peak of the situation column. In any other case, you will get a #N/A error. For those who hover over the error, you will get a full description of the error.

Utilizing the Filter Operate with A number of Circumstances

Generally a single situation isn’t sufficient, and it’s possible you’ll must have a number of situations to extract the required values. And, since you have got a number of situations, you even have a number of instances.

Utilizing AND Situation

The AND situation returns solely the values that match all of the situations. Whereas specifying them on the filter operate, you separate them with a comma signal to make use of the AND situation. Let’s use AND in our instance to get a greater image.

First, let’s filter the names of individuals with the “Supervisor” position and whose wage is bigger than 1000.

  1. Choose a spread that can return desired values after filtering. Right here, we wish to show the title solely.
  2. Choose the respective ranges (position and wage columns) to specify situations and filter out values the place the position is “Supervisor” and the wage is bigger than 1000. Additionally, separate them with a comma.step-2-filter-names-with-both-conditions-2769311
  3. Right here, the method turns into =FILTER(A5:A9,B5:B9="Supervisor",C5:C9>1000)
    • A5:A9 represents the title column.
    • B5:B9 ="Supervisor" seems for the “Supervisor” textual content contained in the Position column (B5:B9).
    • C5:C9 > 1000 seems for numbers larger than 1000 contained in the Wage column(C5:C9).
  4. Press enter, and the consequence will spill throughout rows and columns.

Right here, we have now two individuals with the supervisor position (Jack and Jello), and all individuals besides Jack have wage larger than 1000. So, the one worth matching each situations is Jello.

Utilizing OR Situation

The OR situation returns values that match a minimum of one of many situations. Whereas specifying a number of situations on the filter operate, you separate them with a plus signal to make use of the OR situation.

Now, if we wish to filter names with both the supervisor position or wage larger than 1000, we use the OR operator.

We will simply repeat the method much like the steps above within the AND part. Nevertheless, as a substitute of the comma signal, we use the plus signal and enclose every situation with parentheses.

The filter operate now turns into:


Right here, the plus signal represents the OR operator.

OR operator instance Google Sheets filter

The consequence after making use of the OR operator is as follows.

OR operator Google Sheets filter consequence

Right here, all of the individuals have a wage larger than 1000 besides Jack. Nevertheless, Jack satisfies the Supervisor position situation. Subsequently, all of the names are displayed within the remaining consequence.

Learn how to Use the Filter Operate with Different Capabilities?

You may even use the filter operate together with different capabilities, such because the SORT operate or some other.

Let’s take a look at an instance the place we kind the values after performing a filter operate.

  1. Enter your FILTER operate.
  2. Enclose the above operate with the SORT operate. i.e., SORT(FILTER()).
  3. Press Enter.

Regardless that SORT seems first whereas writing the method, it’s calculated solely after performing the FILTER operate. It is because the innermost operate will get solved first and is used as an argument for the following outward operate.

Alternatively, you’ll be able to even use one filter operate as an enter (argument) for the opposite filter operate.

Associated Questions

Learn how to Use Filter Textual content that Accommodates a Particular Letter or Phrase?

You may enclose the phrase or letter contained in the double quotes to seek for texts that comprise a selected phrase. Nevertheless, the textual content is case-sensitive, which suggests “Apple” and “apple” aren’t the identical.

Alternatively, you’ll be able to create a customized filter operate to get values that don’t comprise a specific textual content however is a bit complicated. Subsequently, you have to use an extra operate referred to as “REGEXMATCH.”

For instance, if you wish to exclude values that don’t comprise the final title “Smith.”

Google Sheets filter Textual content doesn’t comprise

So, the method turns into =FILTER(A5:A9, REGEXMATCH(A5:A9, "Smith")=FALSE)


Source link