
Image by Editor | Midjourney
Google Sheets offers a variety of functions to check if a cell contains a particular text string. You can customize the formulas for case-sensitive, insensitive issues. In Google Sheets, you can even highlight specific text.
In this article, we will show how to check if a cell contains specific text in Google Sheets.
Consider managing a support ticket system, as you need to check tickets related to refunds. You use the following formulas in Google Sheets to do it.
Method 1: Using IF, ISNUMBER, and SEARCH Functions
The SEARCH function looks for the specific text within the text. It returns a number if the text is found, and an error if not. The SEARCH function handles both case-sensitive and insensitive cases.
- Select cell C2 and insert the following formula.
- Drag the formula down to copy the formula.
Formula:
=IF(ISNUMBER(SEARCH("refund", B2)), "Found", "Not Found")
This formula searches the specific text and then returns “Found” if any cell contains that text.
- SEARCH(“refund”, B2): Searches the specific text in B2 cell. If “refund” is found, it returns the position number.
- ISNUMBER(…): ISNUMBER converts the result into TRUE if a number is returned, or FALSE if an error occurs.
- IF(…): IF function outputs “Found” if the condition is TRUE and “Not Found” otherwise.

Method 2: Using IF, ISNUMBER, and FIND Functions (Case-Sensitive)
When you want to manage the case-sensitive issue you will need to use the FIND instead of SEARCH function. Use this formula when the exact casing matters.
- Select cell C2 and insert the following formula.
- Drag the formula down to Autofill the formula.
Formula:
=IF(ISNUMBER(FIND("refund", B2)), "Found", "Not Found")
This formula searches for the exact specific text in a cell. IF function returns Found if the cell contains exact text.
- FIND(“refund”, B2): Searches for specific text “refund” exactly as written in cell B2.
- ISNUMBER(…): This function returns TRUE if a number is found.
- IF(…): Returns “Found” or “Not Found” based on the result.

Note: If your descriptions sometimes use a different case (e.g., “Refund”), this method will only detect the lowercase “refund”.
Method 3: Using COUNTIF with Wildcards Functions
The COUNTIF function with wildcards offers a quick way to see if “refund” appears anywhere in the text.
- Select cell C2 and insert the following formula.
- Drag the formula down to Autofill the formula.
Formula:
=IF(COUNTIF(B2, "*refund*") > 0, "Found", "Not Found")
This formula counts refunds in a cell. Then, the IF function will return “Found” if any cell contains specific text in a cell.
- COUNTIF(B2, “refund”): Check if “refund” is present in B2, regardless of its position within the text.
- > 0: Ensures that at least one instance is found.
- IF(…): Returns “Found” when the condition is met, otherwise “Not Found”.

Method 4: Using REGEXMATCH Functions
To manage complex searches, you can use the REGEXMATCH function. For searching or pattern matching, REGEXMATCH is very powerful.
- Select cell C2 and insert the following formula.
- Drag the formula down to copy the formula.
Formula:
=IF(REGEXMATCH(B2, "refund"), "Found", "Not Found")
This formula matches the regular expression to match the exact specific text. Then the IF function returns Found, if value is available.
- REGEXMATCH(B2, “refund”): Tests whether the string “refund” appears in B2 using a regular expression.
- IF(…): Converts the TRUE/FALSE result into “Found” or “Not Found”.

This method can easily be adjusted for more advanced search patterns if needed.
Method 5: Using Conditional Formatting with a Custom Formula
To check if a specific text is available or not you can use Conditional Formatting. Instead of returning text, you might prefer to highlight cells that mention “refund”.
Steps:
- Select cells B2:B7.
- Go to Format >> select Conditional Formatting.
- Set the Formal rules: Under Format cells if >> choose Custom formula is.
- Enter the Formula:
=ISNUMBER(SEARCH("refund", B2))
- Choose a Format: Select light red 1 as the background.
- Click Done to apply the rule.

Cells that contain “refund” will now be visually highlighted, making them easy to spot.
Conclusion
In Google Sheets, you can use these methods to check specific text in a cell. These robust formulas will streamline your workflow. To explain the formula we used a sample dataset that makes it easier to practice these methods. Simply use the sample table in your Google Sheets and try out each formula in the corresponding cells to see how the results change based on the content of your descriptions.
