Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed:
=ISNUMBER(SEARCH("abc", A2))Computed by a real spreadsheet engine on the sample data below.
| Text |
| abcdef |
=ISNUMBER(SEARCH("abc", A2))→TRUE
Edit the grid or formula, then run it through a real spreadsheet engine — no signup.
Sample data — click any cell to edit
Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.
SEARCH returns a position number when found and a #VALUE! error when not. ISNUMBER converts both outcomes to a clean TRUE/FALSE that's safe to use in IF, COUNTIF, and conditional formatting without error handling.
Swap SEARCH for FIND: =ISNUMBER(FIND("abc",A2)). FIND distinguishes "ABC" from "abc"; SEARCH does not.
Wrap the check in IF: =IF(ISNUMBER(SEARCH("abc",A2)),"Yes","No") returns Yes when found, otherwise No. Replace "Yes"/"No" with any values, including references like B2.
For OR logic (any match): =IF(SUMPRODUCT(--ISNUMBER(SEARCH({"abc","xyz"},A2)))>0,"Match",""). For AND logic (all must appear): =AND(ISNUMBER(SEARCH("abc",A2)),ISNUMBER(SEARCH("xyz",A2))).
Starts with: =LEFT(A2,3)="abc". Ends with: =RIGHT(A2,3)="abc". Use FIND/SEARCH only when the substring can appear anywhere in the cell.
Yes — =COUNTIF(A2,"*abc*")>0 is shorter for a single substring. ISNUMBER+SEARCH wins when you need to combine multiple conditions or use the position number itself elsewhere.
You probably used SEARCH or FIND alone without ISNUMBER. Both return an error when the substring isn't found — ISNUMBER converts that error to a clean FALSE.
Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.
Last reviewed: