Unlocking the Power of Google Sheets: Formula for Contains Text Search

Google Sheets is a powerful tool for data analysis and management. One of the most useful features in Google Sheets is the ability to search for specific text within a dataset. In this article, we will explore the various formulas that can be used to search for text in Google Sheets, including the contains text search formula.
Why Use a Contains Text Search Formula in Google Sheets?
Using a contains text search formula in Google Sheets can save you a significant amount of time and effort. Imagine having a large dataset with thousands of rows and columns, and you need to find all the instances where a specific text appears. Without a formula, you would have to manually search through each cell, which can be tedious and prone to errors.
With a contains text search formula, you can quickly and easily find all the instances where a specific text appears in your dataset. This can be particularly useful when working with large datasets, such as customer information, sales data, or inventory management.
Google Sheets Formula for Contains Text Search

The most common formula used for contains text search in Google Sheets is the REGEXMATCH
function. This function uses regular expressions to search for a specific text pattern within a cell or range of cells.
The syntax for the REGEXMATCH
function is as follows:
=REGEXMATCH(text, pattern)
Where:
text
is the cell or range of cells that you want to search.pattern
is the text pattern that you want to search for.
For example, if you want to search for the text "apple" in cell A1, you would use the following formula:
=REGEXMATCH(A1, "apple")
This formula will return TRUE
if the text "apple" is found in cell A1, and FALSE
otherwise.
Other Formulas for Contains Text Search in Google Sheets
While the REGEXMATCH
function is the most common formula used for contains text search in Google Sheets, there are other formulas that can be used depending on the specific requirements of your search.
Some other formulas that can be used for contains text search in Google Sheets include:
SEARCH
: This function returns the position of the text within the cell or range of cells.FIND
: This function returns the position of the text within the cell or range of cells, but is case-sensitive.QUERY
: This function allows you to search for text within a range of cells using a SQL-like syntax.
How to Use the Contains Text Search Formula in Google Sheets

Using the contains text search formula in Google Sheets is relatively straightforward. Here are the steps to follow:
- Select the cell where you want to display the result of the search.
- Type the formula
=REGEXMATCH(text, pattern)
, replacingtext
with the cell or range of cells that you want to search, andpattern
with the text pattern that you want to search for. - Press Enter to execute the formula.
- The formula will return
TRUE
if the text pattern is found, andFALSE
otherwise.
Example Use Case: Searching for Customer Information
Suppose you have a dataset of customer information, including names, addresses, and phone numbers. You want to find all the customers who live in a specific city.
You can use the contains text search formula to search for the city name within the address column. For example:
=REGEXMATCH(A1:A100, "New York")
This formula will return TRUE
for all the cells in the address column that contain the text "New York".
Gallery of Google Sheets Formulas
Google Sheets Formulas










Conclusion
In conclusion, the contains text search formula in Google Sheets is a powerful tool that can save you a significant amount of time and effort. By using the REGEXMATCH
function, you can quickly and easily find all the instances where a specific text appears in your dataset.
We hope this article has been helpful in explaining the contains text search formula in Google Sheets. If you have any questions or need further assistance, please don't hesitate to ask.
Share Your Thoughts
Have you used the contains text search formula in Google Sheets before? Share your experiences and tips with us in the comments below.