1. Home
  2. Functions
  3. Text
  4. SEARCHB
TextCompatibility

SEARCHB function

Same as SEARCH, counting bytes; without a double byte language set as default each character counts as one byte.

Syntax

=SEARCHB(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 SEARCHB

SEARCHB is kept so older workbooks keep working. It calculates the same way as SEARCH, which is the name to use in new formulas.

SEARCHB takes 2 required arguments and 1 optional argument. Type =SEARCHB( 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.