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

How to find part of a word in Excel

, creator of !SEMToolsPublished 5 min read

To find part of a word in Excel, first decide where the characters can occur. In a product list, “book” starts “bookshelf”, ends “notebook”, and sits inside “notebooks”. The formula you need depends on which of those rows should match.

Check the start, end, or middle of a word

In Excel 2013 and later, copy your text to a blank area and split it with Data → Text to Columns → Delimited → Space. Select Treat consecutive delimiters as one if the spacing varies. Leave enough empty columns for every word. In this example, A:C hold the split text and D holds the part you’re looking for.

Partial-word checks in Excel 2013 and later
E2=IF(D2="",FALSE,SUMPRODUCT(--(LEFT(A2:C2,LEN(D2))=D2))>0)
ABCDEFG
1Word 1Word 2Word 3PatternStartsEndsContains
2acrylicbookshelfdisplaybookTRUE=IF(D2="",FALSE,SUMPRODUCT(--(LEFT(A2:C2,LEN(D2))=D2))>0)FALSE=IF(D2="",FALSE,SUMPRODUCT(--(RIGHT(A2:C2,LEN(D2))=D2))>0)TRUE=IF(D2="",FALSE,SUMPRODUCT(--(ISNUMBER(FIND(LOWER(D2),LOWER(A2:C2)))))>0)
3spiralnotebookcoversbookFALSE=IF(D3="",FALSE,SUMPRODUCT(--(LEFT(A3:C3,LEN(D3))=D3))>0)TRUE=IF(D3="",FALSE,SUMPRODUCT(--(RIGHT(A3:C3,LEN(D3))=D3))>0)TRUE=IF(D3="",FALSE,SUMPRODUCT(--(ISNUMBER(FIND(LOWER(D3),LOWER(A3:C3)))))>0)
4hardcovernotebookssalebookFALSE=IF(D4="",FALSE,SUMPRODUCT(--(LEFT(A4:C4,LEN(D4))=D4))>0)FALSE=IF(D4="",FALSE,SUMPRODUCT(--(RIGHT(A4:C4,LEN(D4))=D4))>0)TRUE=IF(D4="",FALSE,SUMPRODUCT(--(ISNUMBER(FIND(LOWER(D4),LOWER(A4:C4)))))>0)
5wiredeskorganizerbookFALSE=IF(D5="",FALSE,SUMPRODUCT(--(LEFT(A5:C5,LEN(D5))=D5))>0)FALSE=IF(D5="",FALSE,SUMPRODUCT(--(RIGHT(A5:C5,LEN(D5))=D5))>0)FALSE=IF(D5="",FALSE,SUMPRODUCT(--(ISNUMBER(FIND(LOWER(D5),LOWER(A5:C5)))))>0)
6orderBOOKstandbookTRUE=IF(D6="",FALSE,SUMPRODUCT(--(LEFT(A6:C6,LEN(D6))=D6))>0)TRUE=IF(D6="",FALSE,SUMPRODUCT(--(RIGHT(A6:C6,LEN(D6))=D6))>0)TRUE=IF(D6="",FALSE,SUMPRODUCT(--(ISNUMBER(FIND(LOWER(D6),LOWER(A6:C6)))))>0)

LEFT and RIGHT compare only as many characters as LEN counts in the pattern. For a match anywhere, LOWER puts both strings in the same case before FIND looks for the literal text. SUMPRODUCT counts the matches across the row. A positive count gives TRUE.

Use a single fragment such as “book”, with no spaces. These examples use spaces as word boundaries. If commas or hyphens should also split words, replace those separators with spaces before running the check.

Find a partial word without splitting the column

In Excel 2024 or Microsoft 365, TEXTSPLIT separates the words inside the formula. Put the source text in A and the fragment in B. The same three checks work even when one row has more words than the next. In Excel 2021, use the Text to Columns version above.

Partial-word checks with TEXTSPLIT
C2=IF(OR(TRIM(A2)="",B2=""),FALSE,LET(words,TEXTSPLIT(A2," ",,TRUE),SUMPRODUCT(--(LEFT(words,LEN(B2))=B2))>0))
ABCDE
1Product keywordPatternStartsEndsContains
2acrylic bookshelf displaybookTRUE=IF(OR(TRIM(A2)="",B2=""),FALSE,LET(words,TEXTSPLIT(A2," ",,TRUE),SUMPRODUCT(--(LEFT(words,LEN(B2))=B2))>0))FALSE=IF(OR(TRIM(A2)="",B2=""),FALSE,LET(words,TEXTSPLIT(A2," ",,TRUE),SUMPRODUCT(--(RIGHT(words,LEN(B2))=B2))>0))TRUE=IF(OR(TRIM(A2)="",B2=""),FALSE,LET(words,TEXTSPLIT(A2," ",,TRUE),SUMPRODUCT(--(ISNUMBER(FIND(LOWER(B2),LOWER(words)))))>0))
3spiral notebook coversbookFALSE=IF(OR(TRIM(A3)="",B3=""),FALSE,LET(words,TEXTSPLIT(A3," ",,TRUE),SUMPRODUCT(--(LEFT(words,LEN(B3))=B3))>0))TRUE=IF(OR(TRIM(A3)="",B3=""),FALSE,LET(words,TEXTSPLIT(A3," ",,TRUE),SUMPRODUCT(--(RIGHT(words,LEN(B3))=B3))>0))TRUE=IF(OR(TRIM(A3)="",B3=""),FALSE,LET(words,TEXTSPLIT(A3," ",,TRUE),SUMPRODUCT(--(ISNUMBER(FIND(LOWER(B3),LOWER(words)))))>0))
4hardcover notebooks salebookFALSE=IF(OR(TRIM(A4)="",B4=""),FALSE,LET(words,TEXTSPLIT(A4," ",,TRUE),SUMPRODUCT(--(LEFT(words,LEN(B4))=B4))>0))FALSE=IF(OR(TRIM(A4)="",B4=""),FALSE,LET(words,TEXTSPLIT(A4," ",,TRUE),SUMPRODUCT(--(RIGHT(words,LEN(B4))=B4))>0))TRUE=IF(OR(TRIM(A4)="",B4=""),FALSE,LET(words,TEXTSPLIT(A4," ",,TRUE),SUMPRODUCT(--(ISNUMBER(FIND(LOWER(B4),LOWER(words)))))>0))
5wire desk organizerbookFALSE=IF(OR(TRIM(A5)="",B5=""),FALSE,LET(words,TEXTSPLIT(A5," ",,TRUE),SUMPRODUCT(--(LEFT(words,LEN(B5))=B5))>0))FALSE=IF(OR(TRIM(A5)="",B5=""),FALSE,LET(words,TEXTSPLIT(A5," ",,TRUE),SUMPRODUCT(--(RIGHT(words,LEN(B5))=B5))>0))FALSE=IF(OR(TRIM(A5)="",B5=""),FALSE,LET(words,TEXTSPLIT(A5," ",,TRUE),SUMPRODUCT(--(ISNUMBER(FIND(LOWER(B5),LOWER(words)))))>0))
6order BOOK standbookTRUE=IF(OR(TRIM(A6)="",B6=""),FALSE,LET(words,TEXTSPLIT(A6," ",,TRUE),SUMPRODUCT(--(LEFT(words,LEN(B6))=B6))>0))TRUE=IF(OR(TRIM(A6)="",B6=""),FALSE,LET(words,TEXTSPLIT(A6," ",,TRUE),SUMPRODUCT(--(RIGHT(words,LEN(B6))=B6))>0))TRUE=IF(OR(TRIM(A6)="",B6=""),FALSE,LET(words,TEXTSPLIT(A6," ",,TRUE),SUMPRODUCT(--(ISNUMBER(FIND(LOWER(B6),LOWER(words)))))>0))

Click a TRUE or FALSE cell to see and copy its formula. Use the Starts or Ends result when position matters. For example, “hardcover notebooks sale” passes Contains for “book” but fails both boundary checks.

For a search term that must stand on its own, use the whole-word formulas and filters.

Find words by part of a word with !SEMTools

For a one-time check on a column, I copy the data and run the command on the copy. The add-in writes the TRUE/FALSE results there, beside the source text. Go to FIND → Words → By substrings and choose where the fragment belongs. Pattern checks one fragment. Custom list of patterns marks the row when any fragment on the list matches.

Beginning with a pattern

Choose Beginning with... to look at the start of each word. The animation first checks “un” in words such as “unlock” and “unboxed”. The next check uses “re” and “pre” for words such as “replace” and “preorder”. These can occur anywhere in the cell.

Check if Excel cells contain words starting with one pattern or a pattern from a list
Test word beginnings against one pattern or a list

Ending with a pattern

Choose Ending with... to check the end of each word. In “rebooting phone”, “rebooting” matches “ing” even though another word follows. The list test looks for “ed” or “er” in words such as “used” and “charger”.

Test Excel cells for words ending with one pattern or a pattern from a list
Test word endings against one pattern or a list

Containing a pattern

Choose Containing... when the fragment can be anywhere in a word. In the first check, “book” matches “phonebook” and “notebook”. The list version checks for “phone” or “book”, so “iphone” and “headphones” also match.

Find Excel cells with words containing a substring or any substring from a list
Match one substring or any substring from a list

See the word search guide for the other checks in the Words menu.

Flag product keywords and other rows by the start, end, or middle of a word. Select a range and run the check in !SEMTools without splitting text into helper columns or filling down formulas.