11.7 C
London
Sunday, May 19, 2024
HomeSoftware TutorialsGoogle SheetsGoogle Sheets: How to Use SEARCH with Multiple Values

Google Sheets: How to Use SEARCH with Multiple Values

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 basic syntax to use the SEARCH function with multiple values in Google Sheets:

=FILTER(A2:A10, SEARCH("Backup", A2:A10), SEARCH("Guard", A2:A10))

This particular example will return all cells in the range A2:A10 that contain both the string “Backup” and “Guard” somewhere in the cell.

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

Example: Using SEARCH with Multiple Values in Google Sheets

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

Now suppose we would like to find all cells in the Position column that contain both the word “Backup” and “Guard” somewhere in the cell.

We can type the following formula into cell D1 to find each of these cells:

=FILTER(A2:A10, SEARCH("Backup", A2:A10), SEARCH("Guard", A2:A10))

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

Google Sheets search multiple values

The formula correctly returns the three cells that each contain the word “Backup” and “Guard” somewhere in the cell.

If you’d like to return the values in the points column for each of these players as well, simply change the filter range from A2:A10 to A2:B10 as follows:

=FILTER(A2:B10, SEARCH("Backup", A2:A10), SEARCH("Guard", A2:A10))

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

The formula now returns each cell that contains “Backup” and “Guard” in the cell along with the corresponding points values for each of these players.

Additional Resources

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

How to Perform a Reverse VLOOKUP in Google Sheets
How to Use a Case Sensitive VLOOKUP in Google Sheets
How to Use INDEX MATCH with Multiple Criteria 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