FIND
Returns the 1-based position of one text string inside another.
FIND is case-sensitive and does not interpret wildcard characters.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=FIND(find_text, within_text, [start_num])
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
find_text | any | Required | — |
within_text | any | Required | — |
start_num | any | Optional | — |
Remarks
- Search is case-sensitive (
"A"and"a"are different). start_numis 1-based and must be greater than0.- Errors in either argument are propagated.
Error cases
- If no match is found, returns
#VALUE!.
Examples
Find the position of an exact lowercase substring.
Formula =FIND("bo","Ana and bo")
Expected result 9
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Skip the first character by supplying a starting position.
Formula =FIND("A","A-B-A",2)
Expected result 5
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A one-character text has its match at the first position.
Formula =FIND("A","A")
Expected result 1
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The uppercase B prevents the case-sensitive search from matching.
Formula =FIND("Bo","Ana and bo")
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Case-sensitive match
Formula =FIND("World", "Hello World")
Expected result 7
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Case mismatch fails
Formula =FIND("world", "Hello World")
Expected result #VALUE!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Do wildcard characters work in FIND?
No. FIND treats * and ? as literal characters and matches case-sensitively.