Function Problems

Excel Formula to Check If Text Contains a Matching Word

Camila MilosovichCamila Milosovich Oct 26, 2026 869 views

Question details

The user needs a formula to compare two columns and determine if the text from one cell exists within another cell, returning TRUE or FALSE while ignoring letter casing.

Excel Formula to Check Whether Text Contains a Matching Word
Product
Excel / WPS Spreadsheet
Device & OS
not provided
Scenario
Comparing text strings across different columns to find partial matches.
Observed behavior
Return TRUE if the target word is found anywhere within the referenced text string, and FALSE if no match is found.
Before you start

Ensure your text data does not contain hidden leading or trailing spaces, as these invisible characters can cause the formula to return FALSE even when the word appears to match.

Solution 1Recommended

Use the ISNUMBER and SEARCH Functions

This is the standard, case-insensitive method to check if a specific string exists within another cell.

The SEARCH function looks for the target text and returns its numerical starting position if found. Because it is case-insensitive, 'apple' will successfully match 'Apple'. The ISNUMBER function then evaluates this result, returning TRUE if a number (position) is found, and FALSE if SEARCH results in an error.

1
Select the output cell

Click on the cell where you want the TRUE/FALSE result to appear.

2
Enter the formula

Type the formula: =ISNUMBER(SEARCH(A2,B2)) where A2 contains the word you are looking for, and B2 is the cell containing the larger text string being searched.

3
Apply to the column

Press Enter to see the result, then click and drag the fill handle down to apply the formula to the rest of the column.

Use the ISNUMBER and SEARCH Functions
Case Insensitivity: The SEARCH function automatically ignores uppercase and lowercase differences. If you need a strict case-sensitive match, use the FIND function instead.
Easy Data Analysis

Use WPS Spreadsheet to Quickly Find Matching Text

WPS Spreadsheet fully supports Excel's ISNUMBER and SEARCH functions, allowing you to seamlessly analyze text data. It provides a highly compatible and user-friendly interface for all your formula needs without expensive subscriptions.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your text columns.
  2. 2. Input the formula: Select the target cell and input =ISNUMBER(SEARCH(A2,B2)).
  3. 3. Fill the data: Press Enter and double-click the fill handle in the bottom-right corner of the cell to apply the formula down your entire list.
Fully compatible with Microsoft Excel formulas and functionsFree to use with a lightweight installationFamiliar interface makes transitioning seamlessCross-platform support for Windows, Mac, Linux, iOS, and Android
microsoft office alternative - wps office

Frequently Asked Questions

How can I make the formula case-sensitive?

To make the text search case-sensitive, replace the SEARCH function with the FIND function. The updated formula would be =ISNUMBER(FIND(A2,B2)).

Can I check if a cell contains one of multiple words?

Yes, you can use the SUMPRODUCT function combined with ISNUMBER and SEARCH. For example, entering =SUMPRODUCT(--ISNUMBER(SEARCH({"word1","word2"}, B2)))>0 will return TRUE if either 'word1' or 'word2' is found.

Why does my formula return FALSE even when the word is clearly there?

This is often due to accidental extra spaces in your reference cells. Try wrapping the reference cell with the TRIM function to remove hidden spaces, like this: =ISNUMBER(SEARCH(TRIM(A2),B2)).