Find the position of a character in a text string
=FIND($E$1,A2)Excel · result on the sample sheet: 5 rows (B2:B6)
Describe what you need and get a working SEARCH formula for Excel and Google Sheets, tested on real data before you copy it. SEARCH returns the position of one piece of text inside another, ignoring upper and lower case, and it understands the ? and * wildcards.
Each formula below was calculated on its own sample sheet. Open one to see the sheet, why it works, and to try it yourself.
=FIND($E$1,A2)Excel · result on the sample sheet: 5 rows (B2:B6)
=IF(ISNUMBER(SEARCH($E$1,A2)),"Yes","No")Excel · result on the sample sheet: 6 rows (B2:B7)
=SUMPRODUCT(--ISNUMBER(SEARCH(E1,A2:A11)))Excel · result on the sample sheet: 5
=FILTER(A2:D10,ISNUMBER(SEARCH(G1,B2:B10)))Excel · result on the sample sheet: 4 rows (F3:I6)
=SUMIF(A2:A9,"<>*"&E1&"*",B2:B9)Excel · result on the sample sheet: $291.85
=DATEVALUE(MID(A2,SEARCH("20??-??-??",A2),10))Excel · result on the sample sheet: 5 rows (B2:B6)
=SUMPRODUCT(--ISNUMBER(SEARCH(" "&E1&" "," "&A2:A10&" ")))Excel · result on the sample sheet: 5
=IF(SUMPRODUCT(--ISNUMBER(SEARCH($D$2:$D$4,A2)))>0,"Escalate","")Excel · result on the sample sheet: 7 rows (B2:B8)
You describe the task in plain English, and it writes the formula, using SEARCH where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.
SEARCH returns the position of one piece of text inside another, ignoring upper and lower case, and it understands the ? and * wildcards.
Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the SEARCH function page has a practice exercise.