Google Sheets SEARCH function
Like FIND, but ignoring case. In Spanish Sheets it is called HALLAR.
Syntax
English Sheets
=SEARCH(search_for, text_to_search, [starting_at])
Spanish Sheets (Mexico locale)
=HALLAR(cadena_búsqueda, texto_para_buscar, [posición_inicial])
Spanish Sheets (Spain, Latin America)
=HALLAR(cadena_búsqueda; texto_para_buscar; [posición_inicial])
| Argument | What it is |
|---|---|
| search_for | What you look for. |
| text_to_search | Where to look. |
| starting_atoptional | From which position; 1 by default. |
Example
SEARCH is like FIND, but it ignores case. Use it when you do not know how the text is written.
=MID(A2,SEARCH("@",A2)+1,100)
Common mistake
If not found it returns #VALUE!; wrap it in IFERROR when the text may be missing.
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.
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. Use it when you do not know how the text is written.
In B2, extract the email’s domain: what comes after the @.
| A | B | C | |
|---|---|---|---|
| 1 | Domain | ||
| 2 | ana.ruiz@gmail.com | ||
| 3 | luis@empresa.mx | ||
| 4 | sofi_92@outlook.com | ||
| 5 | dgarcia@unam.mx | ||
| 6 | vale@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 Google Sheets it is HALLAR. The formula =MID(A2,SEARCH("@",A2)+1,100) is written =EXTRAE(A2;HALLAR("@";A2)+1;100) (or with commas under a Mexico locale).
- Why does SEARCH use semicolons in some spreadsheets?
- It depends on each spreadsheet's locale, under File > Settings. Where the comma is the decimal mark (Spain, much of South America), arguments are separated by semicolons. Mexico and United States locales use commas.
- What is the most common SEARCH mistake?
- If not found it returns #VALUE!; wrap it in IFERROR when the text may be missing.