10.4 C
London
Sunday, May 19, 2024
HomeSoftware TutorialsGoogle SheetsGoogle Sheets: How to Use FILTER with Wildcard

Google Sheets: How to Use FILTER with Wildcard

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use the following formula in Google Sheets to use a wildcard character within a FILTER function:

=FILTER(A2:C11,search("avs",A2:A11))

This particular formula will filter the cells in the range A2:C11 to only contain the rows where the value in A2:A11 contains “avs” somewhere in the cell.

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

Example: Use FILTER with Wildcard in Google Sheets

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

Now suppose that we would like to filter the dataset to only contain rows where the value in the Team column contains “avs” somewhere in the name.

We can type the following formula into cell A13 to apply this filter:

=FILTER(A2:C11,search("avs",A2:A11))

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

Google Sheets filter with wildcard

Notice that the only rows displayed in the filtered dataset contain the string “avs” somewhere in the team name.

To search for a different string, simply replace “avs” with another string in the formula.

For example, we can use the following formula to filter for rows where the team name contains “ets” somewhere in the name:

=FILTER(A2:C11,search("ets",A2:A11))

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

Now the only rows displayed in the filtered dataset contain the string “ets” somewhere in the team name.

Additional Resources

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

How to Use Wildcard Characters in Google Sheets Query
How to Use COUNTIF with Wildcards in Google Sheets

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories