The formula you want is =IF(ISNUMBER(SEARCH("word",A1)),"Yes","No"). SEARCH hunts for the text inside the cell, ISNUMBER turns the result into a plain TRUE or FALSE, and IF converts that into the words Yes and No. Put the value you are testing in A1 and the term you are looking for inside the quotes, then fill the formula down the column. That single line handles the whole job: it checks whether the text appears anywhere in the cell and returns Yes when it does, No when it does not.

Everything below covers how SEARCH compares with FIND, how to test across several cells or list items, how to handle case sensitivity and partial matches, and how to fix the errors you will run into. Formula behaviour is the same across Excel for Microsoft 365, Excel 2021, Excel 2019 and Excel for Mac, though the ribود and dialog wording can differ slightly by version and region.

What You'll Need

  • Any current desktop version of Excel (Microsoft 365, 2021, 2019, 2016) or Excel for Mac. The desktop app is best because the helper columns are easier to manage.
  • A column of text to test — for example product names, email addresses or descriptions in A2:A100.
  • The term you want to look for, typed somewhere you can reference. Storing it in its own cell (say D1) means you can change it without editing the formula.

Step-by-Step

  1. Set up your data. Put the text to test in column A, starting at A2. Put the word you are looking for in D1, for instance warranty. Leave row 1 for headers.
  2. Write the basic formula in B2. Type =IF(ISNUMBER(SEARCH($D$1,A2)),"Yes","No") and press Enter. The dollar signs lock the search term to D1 so it does not shift when you copy the formula.
  3. Check one result before filling. Confirm that B2 says Yes for a cell you know contains the term and No for one that does not. Spot-checking one row now saves a lot of debugging later.
  4. Fill the formula down. Drag the small square handle at the bottom-right corner of B2 down the column, or double-click it to fill to the end of the adjacent data. Each row now reports Yes or No for its own text.
  5. Switch to FIND if case matters. SEARCH ignores capitalisation, so it treats “Warranty” and “warranty” the same. If you need an exact case match, replace SEARCH with FIND: =IF(ISNUMBER(FIND($D$1,A2)),"Yes","No"). FIND also allows wildcard characters to be matched literally, while SEARCH treats ?, * and ~ as wildcards.
  6. Test against a list of terms. To catch any of several words, use SUMPRODUCT so the formula does not need to be entered as an array formula: =IF(SUMPRODUCT(--ISNUMBER(SEARCH($D$1:$D$3,A2)))>0,"Yes","No"). This returns Yes when the cell contains any of the three terms in D1:D3.
  7. Test across several cells. To ask “does any cell in this row contain the term”, use =IF(COUNTIF(A2:C2,"*"&$D$1&"*")>0,"Yes","No"). COUNTIF with surrounding asterisks is a simpler alternative to nested SEARCH calls and works well for dashboards.
  8. Return the matched text or its position. If Yes is not enough, use =IF(ISNUMBER(SEARCH($D$1,A2)),SEARCH($D$1,A2),"") to show where the match starts, or wrap it in MID to extract the surrounding words.
  9. Format and reuse. Bold or colour the Yes results with conditional formatting (Home > Conditional Formatting > Highlight Cells Rules > Equal To), typing Yes in the box. Keep the row of formulas as a template you can copy into other workbooks.

Common Mistakes

Leaving off ISNUMBER. SEARCH on its own returns a number or an error, not TRUE or FALSE. Without ISNUMBER, the IF test misbehaves: a find position of any number above zero is treated as TRUE, but a not-found error instead of FALSE shows #VALUE!, so the cell never shows your No label.

Forgetting the dollar signs. If you reference D1 without $D$1 and fill down, the reference slides to D2, D3 and beyond, and the search term changes on every row.

Mixing up SEARCH and FIND. Using SEARCH when the task is case-sensitive lets “APPROVED” match “approved”. Using FIND when it is not makes the opposite mistake and misses valid matches.

Searching an empty cell. An empty string is found inside any text, so a blank D1 can return Yes for every row. Guard against it with =IF($D$1="","",IF(ISNUMBER(SEARCH($D$1,A2)),"Yes","No")).

Numbers storing as text versus numbers. SEARCH converts numbers to text, which is usually fine, but leading zeros and formatting can mislead. Convert deliberately or use VALUE where arithmetic matters.

Copying results instead of formulas. Pasting special values over the Yes/No column means the answer stops updating when the source data changes.

Tips

  • Use a shorter Yes/No pair such as 1/0 when you plan to count results with SUM or COUNTIF.
  • Wrap SEARCH in IFERROR when you display the position, so missing text shows a blank instead of #VALUE!.
  • For accent-insensitive matching, SEARCH is usually forgiving; for exactness, FIND is stricter. Test both when your data is not plain ASCII.
  • Named ranges make long formulas readable: name D1 “SearchTerm” and write =IF(ISNUMBER(SEARCH(SearchTerm,A2)),"Yes","No").
  • To return Yes when the term appears at the start of the text, use =IF(LEFT(A2,LEN($D$1))=$D$1,"Yes","No"), which is simpler than a SEARCH position check.
  • Keep one helper column per condition and combine them in a separate status column for complex rules.
  • Check for stray spaces with TRIM when a search fails on text that looks correct.

Troubleshooting

#VALUE! appears. You are seeing the raw SEARCH result, not the IF result. Wrap the comparison in ISNUMBER as shown above, or if already wrapped, confirm the text being tested is really text and not a number formatted oddly.

Every row says Yes. The search term cell is probably blank, or the term is a single character that appears everywhere. Fill D1 and retest.

Every row says No but you can see the word. Check for a leading or trailing space in either the cell or the search term, and check for a non-breaking space pasted from a web page. TRIM and CLEAN help; SUBSTITUTE can remove stubborn characters.

The formula shows as text. The cell was formatted as Text before typing, so Excel stored the formula as a string. Change the format to General, then re-enter the formula.

Filling down gives wrong references. Switch the search-term reference to absolute ($D$1) and leave the tested cell relative.

#NAME? appears. A function name is misspelled or a quote mark is curly rather than straight. Retype the formula in a fresh cell.

Frequently Asked Questions

Should I use SEARCH or FIND?

Use SEARCH when case does not matter — it is the default choice for most lookups. Use FIND when you need an exact case match or want wildcard characters treated literally.

Can I check if a cell contains text from a whole list?

Yes. Use SUMPRODUCT with SEARCH over a range, as in step 6, or COUNTIF with asterisks around the term. Both return a Yes when any listed term appears.

How do I return Yes or No for multiple conditions?

Combine tests with AND or OR, for example =IF(AND(ISNUMBER(SEARCH($D$1,A2)),A2<>""),"Yes","No").

Does this work in Google Sheets or Excel for the web?

SEARCH, FIND, ISNUMBER, IF and SUMPRODUCT all behave the same in Google Sheets and in Excel for the web, though the interface labels differ slightly.

Why does my formula break after copying to another workbook?

External or named references often break on transfer. Re-point the search-term cell in the new file, or paste the formula and check the highlighted references before filling down.

Can I highlight the matching cell instead of adding a column?

Yes. Use Home > Conditional Formatting > New Rule > Use a formula, with =ISNUMBER(SEARCH($D$1,A2)) applied to your range.