Back to functions
Text2026-03-181 related article

SEARCH Function in Excel

Return the starting position of one text string inside another, without case-sensitive matching.

Syntax

SEARCH(find_text, within_text, [start_num])

Arguments

find_text

Required

The text that you want to find.

within_text

Required

The text in which you want to search for the value of the find_text argument.

start_num

Optional

The character number in the within_text argument at which you want to start searching.

What it returns

Returns the starting character position of the matched text.

What SEARCH does

SEARCH locates one piece of text inside another and returns the starting position as a number. Unlike FIND, SEARCH is not case-sensitive and can work with wildcard characters.

Practical examples

Find text without worrying about case

=SEARCH("margin",A2)

If A2 contains Profit Margin, the result is 8 regardless of the letter case used in the formula.

Start searching from a later position

=SEARCH("-",A2,5)

This skips earlier characters and looks for the next match after position 5.

Common mistakes and notes

SEARCH is not case-sensitive

If you need uppercase and lowercase to be treated differently, use FIND instead.

Wildcards can change the result

SEARCH supports wildcard characters such as * and ?, which is useful but easy to forget when debugging.

Missing text returns an error

If no match is found, SEARCH returns #VALUE!. Use IFERROR if the formula should fall back cleanly.

Related functions

Related articles

Deep dives, troubleshooting guides, and practical examples that use SEARCH.

Official documentation