SheetRocks
Documentation/Formulas/SEARCH

SEARCH

Returns the start position of the find_text string from the first character of the text string.

Syntax

SEARCH(find_text, text, [start_pos])

Arguments

Argument Description Required
find_text The text that needs to be found. Required
text The text in which find_text is to be searched. Required
start_pos The character number or position in the text argument at which we want to start searching. It should not be 0 or beyond the length of text argument. Defaults to 1. Optional

Examples

Find text position

=SEARCH("World", "Hello World")
Result ⇒ 7

Search with starting position

=SEARCH("a", "banana", 3)
Result ⇒ 4

Find pattern in cell text

=SEARCH("-", A1)
Result ⇒ 8
A
1 Product-ABC-123

Related Functions

Other Text functions:


← Back to Formula Reference