Quick Answer

SEARCH Function

Finds the position of text within another text string, case-insensitive.

✓ Excel✓ Google SheetsExcel All versions

Syntax

SEARCH
(find_text, within_text, [start_num])

Parameters

ParameterDescriptionRequired
find_textThe text to find. Supports wildcards * and ?.Required
within_textThe text to search within.Required
start_numThe character position to start searching from (default 1).Optional

Basic Example

Find the position of text regardless of case

=SEARCH("abc", "ABC-123")
Result1

SEARCH is case-insensitive, so it finds "abc" at position 1.

Advanced Examples

Example 1: Wildcard search

Product codes

Find any three-digit number in a code

=SEARCH("???", "ABC-123")
Result: 5
The first three-character sequence appears at position 5.

How SEARCH Works

SEARCH scans within_text for find_text and returns the position of the first match. It is case-insensitive and allows * and ? wildcards. If not found, it returns #VALUE!.

1
Enter text to find
Type the substring, optionally using wildcards.
2
Enter text to search
Type the cell or string containing the text.
3
Optional start position
Add a start number to skip earlier characters.

Important Notes & Limitations

  • Case-insensitive only; cannot force case-sensitive matching.

  • Returns #VALUE! if the text is not found.

  • Wildcard ? matches any single character; * matches any sequence.

Common Errors & Fixes

#VALUE! errorThe text was not found.

Fix: Use IFERROR to handle missing text.

Wrong positionWildcards match differently than expected.

Fix: Adjust the pattern or use FIND for literal matching.

Download Practice File

Practice SEARCH with Real Data

Download a sample CSV file with pre-populated data and practice exercises for the SEARCH function. Works in both Excel and Google Sheets.

Works in Google SheetsCompatible with ExcelIncludes exercises

File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps

Frequently Asked Questions

What is the difference between SEARCH and FIND?
SEARCH is case-insensitive and supports wildcards. FIND is case-sensitive and does not support wildcards.
Can SEARCH use regular expressions?
No. In Google Sheets, use REGEXMATCH for regex search.
How do I search for a literal * or ??
Use a tilde (~) before the wildcard: SEARCH("~*", A2).