To combine IF, ISNUMBER, and FIND in Excel, use the formula =IF(ISNUMBER(FIND("text", cell)), "Yes", "No"). This returns "Yes" if the cell contains the specified text (case-insensitive) and "No" if it doesn't. The FIND function locates text within a cell and returns its position as a number; ISNUMBER converts that into TRUE/FALSE; IF uses that to output your custom results. This is the standard way to test for partial text matches in Excel.
What You'll Need
- Microsoft Excel (2010 or later; the formulas work the same in Excel 365, Excel Online, and most alternatives like Google Sheets).
- A worksheet with text data in a column or range where you want to check for specific words or characters.
- Basic familiarity with entering formulas in a cell and dragging the fill handle.
Step-by-Step
- Open your Excel workbook and navigate to the sheet containing your data. Identify the column with the text you want to search (for example, column A with product descriptions).
- Decide on the text to find. This can be a word, a phrase, or even a single character. Remember that FIND is case-insensitive, so "apple" will match "Apple", "APPLE", etc. If you need case-sensitive matching, use SEARCH instead (but note SEARCH also ignores case; for case-sensitive, use FIND with EXACT, but that's more complex). For this guide, we'll use FIND.
- Select the cell where you want the result. For instance, if your data is in A2:A100, put the formula in B2.
- Enter the formula. Type:
=IF(ISNUMBER(FIND("apple", A2)), "Contains apple", "No apple"). Replace "apple" with your search term and A2 with the first data cell. The formula checks if FIND returns a number (meaning the text exists). If yes, it outputs "Contains apple"; if not, "No apple". - Press Enter. You'll see the result for the first cell.
- Drag the fill handle (the small square at the bottom-right of the selected cell) down to apply the formula to the rest of your range. Alternatively, double-click the fill handle to auto-fill down to the last adjacent cell with data.
- Adjust the output text as needed. You can replace "Contains apple" and "No apple" with anything—like "Yes" and "No", or even numbers like 1 and 0. For example:
=IF(ISNUMBER(FIND("urgent", A2)), 1, 0). - To search for multiple terms, nest the formula. For example, to check if a cell contains either "apple" or "orange":
=IF(OR(ISNUMBER(FIND("apple", A2)), ISNUMBER(FIND("orange", A2))), "Fruit", "Not fruit"). This uses OR to combine two ISNUMBER checks. - To return the actual position of the found text instead of a true/false, just use
=FIND("apple", A2)alone—it returns the character position (e.g., 5) or a #VALUE! error if not found. Combine with IFERROR to show a friendly message:=IFERROR(FIND("apple", A2), "Not found"). - To use this in conditional formatting, select your data range, go to Home > Conditional Formatting > New Rule > Use a formula. Enter
=ISNUMBER(FIND("apple", A2))(adjust A2 to the first cell of your selection) and set a format. This highlights all cells containing "apple".
Common Mistakes
- Forgetting the quotes: The search text must be in double quotes.
=IF(ISNUMBER(FIND(apple, A2)), ...)will cause a #NAME? error because Excel interprets "apple" as a named range. - Using FIND with numbers: If your search term is a number, you can write it without quotes (e.g.,
FIND(123, A2)), but it's safer to use quotes:FIND("123", A2)—Excel treats numbers as text in this context. - Confusing FIND with SEARCH: FIND is case-sensitive and does not allow wildcards. SEARCH is case-insensitive and allows wildcards like * and ?. If you need case-insensitive matching, use SEARCH instead:
=IF(ISNUMBER(SEARCH("apple", A2)), ...). - Not accounting for errors: If the text is not found, FIND returns #VALUE!. Wrapping with ISNUMBER converts that to FALSE, which is correct. But if you use FIND alone, you'll see errors—use IFERROR to handle them.
- Dragging the formula incorrectly: If you use absolute references (e.g., $A$2) when dragging, the formula won't update for each row. Use relative references (A2) so it adjusts.
Tips
- Use SEARCH for case-insensitive: If you don't care about case, SEARCH is simpler and faster. Example:
=IF(ISNUMBER(SEARCH("apple", A2)), "Yes", "No"). - Combine with other functions: You can nest this inside SUM, COUNTIF, or SUMPRODUCT to count cells containing a term. For example,
=SUMPRODUCT(--ISNUMBER(FIND("apple", A2:A100)))counts how many cells contain "apple". - Use wildcards with SEARCH: SEARCH supports wildcards, so
=ISNUMBER(SEARCH("app*", A2))matches "apple", "application", etc. - Trim spaces: If your data has extra spaces, use TRIM before searching:
=IF(ISNUMBER(FIND("apple", TRIM(A2))), ...). - Test with a small sample: Before applying to a huge range, test on a few cells to ensure the formula returns expected results.
Troubleshooting
If the formula returns #NAME?: Check for missing quotes around the search text. Also ensure you didn't misspell the function names (ISNUMBER, FIND).
If the formula returns #VALUE!: This happens when you use FIND alone without ISNUMBER and the text isn't found. Wrap with IFERROR or use ISNUMBER as shown.
If the formula returns FALSE for text that clearly exists: Check for extra spaces in the cell or the search term. Use TRIM on both. Also verify the search term is exactly as it appears, including punctuation.
If the formula works but returns the wrong output: Double-check the order of arguments in IF. The first argument is the condition (ISNUMBER...), the second is the value if TRUE, the third is if FALSE.
If dragging the formula gives inconsistent results: Ensure your cell references are relative (no $ signs) unless you intentionally want absolute references. Also check that the formula is in the correct row relative to the data.
If you're using Excel Online or Google Sheets: The functions work the same, but note that FIND in Google Sheets is case-sensitive as well. If you need case-insensitive, use SEARCH there too.
Frequently Asked Questions
Can I use this to check if a cell contains any of multiple words?
Yes, use OR with multiple ISNUMBER(FIND(...)) conditions. For example: =IF(OR(ISNUMBER(FIND("cat", A2)), ISNUMBER(FIND("dog", A2))), "Pet", "No pet").
How do I make the search case-insensitive?
Use SEARCH instead of FIND. SEARCH ignores case by default. For example: =IF(ISNUMBER(SEARCH("apple", A2)), "Yes", "No").
What if I want to find text that appears at the beginning of a cell?
Use LEFT or check the position. For example: =IF(ISNUMBER(FIND("apple", A2))*(FIND("apple", A2)=1), "Starts with apple", "No"). Or simpler: =IF(LEFT(A2,5)="apple", "Yes", "No").
Can I use this with numbers stored as text?
Yes, FIND works on text. If your cell contains a number, Excel will treat it as text for FIND. If you have actual numbers, you can convert them to text with TEXT(A2,"0") if needed, but usually it works fine.
Why does my formula return #VALUE! when the text is not found?
Because FIND returns an error when it doesn't find the text. That's why we wrap it with ISNUMBER—it turns the error into FALSE. If you see #VALUE!, you're likely using FIND alone. Use =IFERROR(FIND("apple", A2), "Not found") to display a message instead.
How do I count how many cells contain a specific word?
Use SUMPRODUCT: =SUMPRODUCT(--ISNUMBER(FIND("apple", A2:A100))). The double negative converts TRUE/FALSE to 1/0, and SUMPRODUCT sums them.