1. Home
  2. Functions
  3. Text
  4. SEARCH

SEARCH function

Returns the position of one text inside another, ignoring case. Accepts the wildcards ? and *.

Syntax

=SEARCH(find_text, within_text, [start_num])

Arguments

ArgumentRequiredDescription
find_textRequiredThe text to find (? matches one character, * any run, ~ escapes them)
within_textRequiredThe text to search in
start_numOptionalPosition to start searching from (1 when left out)

How to use SEARCH

SEARCH takes 2 required arguments and 1 optional argument. Type =SEARCH( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=SEARCH("e", "Statements", 6)Result 7
=SEARCH("margin", "Profit Margin")Result 8
=SEARCH("p?o", "Profit")Result 1

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.