Excel SEARCH function

Like FIND, but case-insensitive and with wildcards. In Spanish Excel it is called HALLAR.

Syntax

English Excel

=SEARCH(find_text, within_text, [start_num])

Spanish Excel (Mexico)

=HALLAR(texto_buscado, dentro_del_texto, [núm_inicial])

Spanish Excel (Spain, Latin America)

=HALLAR(texto_buscado; dentro_del_texto; [núm_inicial])

ArgumentWhat it is
find_textWhat you look for; accepts * and ?.
within_textWhere to look.
start_numoptionalWhich position to start from.

Example

SEARCH is like FIND, but it ignores case and accepts * and ? wildcards. Use it when you do not know how the text is written.

=MID(A2,SEARCH("@",A2)+1,100)

Common mistake

To check whether text contains something use ISNUMBER(SEARCH(...)).

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice SEARCH

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

SEARCH: an email’s domain

SEARCH is like FIND, but it ignores case and accepts * and ? wildcards. Use it when you do not know how the text is written.

Example=MID(A2,SEARCH("@",A2)+1,100)HALLAR = SEARCHENCONTRAR = FIND

In B2, extract the email’s domain: what comes after the @.

B2
ABC
1EmailDomain
2ana.ruiz@gmail.com
3luis@empresa.mx
4sofi_92@outlook.com
5dgarcia@unam.mx
6vale@yahoo.com
7

Tip: while typing, click a cell or drag across several to insert their reference.

Frequently asked questions

What is SEARCH called in Spanish?
In Spanish Excel it is HALLAR. The formula =MID(A2,SEARCH("@",A2)+1,100) is written =EXTRAE(A2;HALLAR("@";A2)+1;100) (or with commas in Mexico).
Why does SEARCH use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common SEARCH mistake?
To check whether text contains something use ISNUMBER(SEARCH(...)).