you’re free to also use SEARCH to look to see if a cell contains specific text.

SEARCH isnot case-sensitive, which means it does not distinguish between uppercase and lowercase letters.

In addition, SEARCH supports the use ofwildcardslike *?~, allowing more flexible search patterns.

SEARCH function - basic example

Both functions return the position of one text string inside another.

However, unlike FIND, SEARCH isnotcase-sensitive anddoessupport wildcards.

When SEARCH locates the substring, it returns the position of the substring in the text as a number.

SEARCH function - basic example

If the substring is not found, SEARCH returns a #VALUE error.

To force a TRUE or FALSE result, you cannestthe SEARCH function inside theISNUMBER function.

ISNUMBER returns TRUE for numeric values and FALSE for anything else.

SEARCH function - basic example

This approach allows for support for wildcards in the search.

For a more detailed explanation of this approach, with many more examples,see this example.

We then add 1, and the result is used as thestart_numin theouterSEARCH.

SEARCH function - basic example

The result is the location of the second “x” in cell A1.

This allows for more complex searches, including basic pattern matching.

For example, the question mark (?)

SEARCH function - basic example

wildcard matches any one character.

), and tilde (~) in that order.

More advanced formulas

The SEARCH function shows up in many more advanced formulas that work with text.

SEARCH function - using SEARCH with the IF function

When the text is not found, FIND returns a #VALUE error.

For example =REPLACE(“XYZ123”,4,3,“456”) returns “XYZ456”.

SUBSTITUTE Function

The Excel SUBSTITUTE function replaces text in a given string by matching.

Excel formula: Categorize text with keywords

SUBSTITUTE is case-sensitive and does not support wildcards….

Excel formula: LAMBDA contains which things

Excel formula: If cell contains one of many things

Excel formula: Cell contains one of many with exclusions

Excel formula: Count cells that do not contain many strings

Excel formula: Range contains one of many values

Excel formula: Highlight cells that contain

Excel formula: Count cells that contain specific text

Excel formula: FILTER case-sensitive

Excel formula: Get first match cell contains

Excel formula: Cell contains all of many things

Excel formula: Highlight rows that contain

Excel formula: Filter text contains

Excel formula: Cell contains specific text

Excel formula: Extract text between parentheses

Article image

Article image

Article image

Excel FIND function

Excel REPLACE function

Excel SUBSTITUTE function

SEARCH function - basic example

SEARCH function - using SEARCH with the IF function