Formualizer Docs

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

ArgumentTypeRequiredDefault
find_textanyRequired—
within_textanyRequired—
start_numanyOptional—

Remarks

  • Search is case-sensitive ("A" and "a" are different).
  • start_num is 1-based and must be greater than 0.
  • 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?.

FAQ

Do wildcard characters work in FIND?

No. FIND treats * and ? as literal characters and matches case-sensitively.

Implementation

Engine source

On this page