Features of !SEMTools
↑ Navigate Excel tasks and !SEMTools add-in features ↑

How to find words in Excel (by exact match)

, creator of !SEMToolsUpdated 5 min readTopics: Text and characters

How is searching by words different from a simple text search?

A whole-word test should match “art” as a separate word, without accepting it as part of “cart”. Decide how spaces and punctuation mark word boundaries before applying the formula.

Mainly because when searching for short words using regular text matching, you might end up finding them inside other words. This means your filter results can include cells you don’t actually need.

Searching by words ensures that only cells where the words match exactly are shown.

Find a single word in Excel cells

Let’s start with the simple case—finding one word.

Filtering by a word in Excel

Excel’s filter tool offers three text filter methods—meaning you can filter by three matching patterns:

  1. Cell contains the word — add spaces before and after the word.
  2. Starts with the word — add a space after it.
  3. Ends with the word — add a space before it.

The problem is Excel can’t filter by all three criteria at once—you can only use two. Here’s a simple workaround:

  1. Make a copy of the original column.
  2. Remove all characters except letters, numbers, and spaces.
  3. Add a symbol to the start and end of each cell, for example “\”.
  4. Replace remaining spaces with the same symbol.
  5. Filter by your target word with “\” before and after it (e.g., “\word\”).

The “\” symbol ensures you’re filtering for whole words only.

As you can see, there are five steps—so if you only need to find one word once, it’s easier to just filter three times. But if you’ll be searching for multiple words, this will speed things up.

Example:

Filter column by word (exact match)
Filtering a column by a word, even a very short one

Another option is to add spaces at the start and end of the text. In this case, when searching or filtering, you must use the “*” wildcard before the left space and after the right space — otherwise Excel won’t recognize the spaces.

So, to search or filter by a word in Excel, add a space to the left and right of all cells in the column, then search or filter by the word including those spaces.

Searching for a word in a cell: formula

The ideal function for a formula-based word search is SEARCH.

Formula:

=ISNUMBER(SEARCH(" "&"yourWord"&" "," "&A1&" "))
Fragment vs whole word
D2=ISNUMBER(SEARCH(" "&$B$2&" "," "&A2&" "))
ABCD
1TextWordFragment (“car”)Whole word
2car rentalcarTRUE=ISNUMBER(SEARCH($B$2,A2))TRUE=ISNUMBER(SEARCH(" "&$B$2&" "," "&A2&" "))
3scarf for saleTRUE=ISNUMBER(SEARCH($B$2,A3))FALSE=ISNUMBER(SEARCH(" "&$B$2&" "," "&A3&" "))
4Car washTRUE=ISNUMBER(SEARCH($B$2,A4))TRUE=ISNUMBER(SEARCH(" "&$B$2&" "," "&A4&" "))
5cars and bikesTRUE=ISNUMBER(SEARCH($B$2,A5))FALSE=ISNUMBER(SEARCH(" "&$B$2&" "," "&A5&" "))
6buy a car, cheapTRUE=ISNUMBER(SEARCH($B$2,A6))FALSE=ISNUMBER(SEARCH(" "&$B$2&" "," "&A6&" "))

A plain SEARCH finds “car” inside “scarf” and “cars”. Spaces around both the word and the cell text limit the match to whole words; the search ignores case. “car,” isn’t matched because of the comma — remove punctuation first.

Here yourWord is the word you’re searching for, and A1 is the cell where you’re looking for it. SEARCH returns an error, not FALSE, when the word isn’t found, so the check is wrapped in ISNUMBER: a comparison like SEARCH(…)>0 would show #VALUE! instead of FALSE.

Remember to remove punctuation first.

Find a word in cells - formula
Finding a word using a formula

Searching by word in Excel using !SEMTools

In the animation, we test the word “cheap”. Keep the original Data column and run the check on a copy: select the copied cells, choose FIND → Words → Full words → 1 word, enter “cheap” and click OK. The Word column shows the TRUE/FALSE results. “cheap flights to london” matches, while “cheapest hotels paris” and “cheap-o flights” do not match this whole-word check.

Find word in cells with !SEMTools for Excel

Find multiple words in Excel cells

For a list, choose whether every word must match or whether one matching word is enough. The following animations use the same source data: first All in list, then Any from list. These tests check separate whole words, not a single phrase in a fixed order.

Find all words from a list

Choose FIND → Words → Full words → All in list and select the list containing “buy” and “online”. A cell returns TRUE only when both words are present. “buy shoes online” matches; “shoes buy” does not, because “online” is missing. The All in list column shows this result.

Find cells that contain all words from a list

Find any word from a list

Now choose FIND → Words → Full words → Any from list and select “price”, “cost” and “cheap”. A match with just one of these words is enough. The Any from list column shows the new results alongside the two checks already completed.

To test another list of words in your own table:

  1. Copy the range to another column to preserve original data.
  2. Run the macro from the add-in’s panel.
  3. Select the list of words to search for.
  4. Click OK.
Find cells that contain any words from list

For example, “best price laptop” matches “price”, and “cost of living london” matches “cost”. The cell does not need to contain all three words.

Practical use cases

This is often used before two other actions—extracting words from a list and deleting a list of words from text. Why not do these right away? Because extraction is slower, and deletion won’t show which cells were affected.

Examples: PPC specialists might search for purchase or rental markers, reviews, or check long negative keyword lists to exclude certain queries from campaigns. Or, if you want to know whether a price list contains items from certain manufacturers (whose list you already have), this macro will help.

Why a word isn’t found: common mistakes

  • Punctuation glued to the word. In “price, delivery” the word is followed by a comma, not a space, so the formula with spaces won’t see it. Remove punctuation first.
  • Case sensitivity. SEARCH ignores case, while FIND doesn’t: with FIND, “Price” and “price” are different words.
  • Word forms. Searching for “apple” won’t find “apples” — that’s exactly the difference between a whole-word search and a search by pattern.
  • Non-breaking spaces. Text copied from websites often contains them instead of regular spaces, and the formula treats them as part of the word. Replace CHAR(160) with a regular space before searching.

See also:

Need to search in Excel by words?
!SEMTools can do it in just a couple of clicks!

Leave a Reply

Your email address will not be published. Required fields are marked *

*