SEARCH Function

SEARCH Function

SEARCH Function

Returns the position of one text string inside another. SEARCH ignores case and supports wildcards.

ExcelClash Team
PUBLISHED

Summary

The Excel SEARCH function returns the position of one text string inside another. It is similar to FIND, but SEARCH ignores case and supports wildcards. For example, =SEARCH("e","EXCEL") returns 1 even though the text contains uppercase E.

SEARCH is useful when you need a flexible text search. It works well with user-entered text, mixed capitalization, and simple wildcard patterns such as * and ?.

Purpose

Find text position without case sensitivity

Returns the starting position of a match while ignoring uppercase and lowercase differences.

Return Value

A position number

Returns a whole number. If no match is found, SEARCH returns #VALUE!.

Syntax

=SEARCH(find_text, within_text, [start_num])

find_text is what you want to search for. within_text is the text to search inside. start_num is optional and tells Excel where the search should begin.

Arguments

  • find_text - [Required] The text or pattern to search for. SEARCH supports *, ?, and ~ as wildcard syntax.
  • within_text - [Required] The text string or cell reference to search inside.
  • start_num - [Optional] The character position where the search should begin. The default is 1.

SEARCH vs Other Functions

SEARCH and FIND are close relatives. The main difference is that SEARCH ignores case and FIND does not. SEARCH also supports wildcards, while FIND does not.

Function Case-Sensitive? Wildcards? Use When
SEARCH No Yes You want a flexible search
FIND Yes No You need exact case-sensitive matching
ISNUMBER - - You want a safe TRUE/FALSE check from SEARCH

Using SEARCH

SEARCH is often used to check whether a word or pattern appears in a cell. Because it ignores case, it works well when different users may type the same word in different ways.

SEARCH is also useful inside larger text formulas. The position it returns can be passed into LEFT, MID, or RIGHT to split text around a delimiter.

  • Use SEARCH when capitalization should not change the result.
  • Use wildcards when one exact search term is too strict.
  • Wrap SEARCH in ISNUMBER or IFERROR when a missing match is possible.

Example 1 - Case-Insensitive Position Search

This example shows the main difference from FIND. SEARCH treats uppercase and lowercase letters as the same, so it can find "e" inside "EXCEL".

=SEARCH("e", "EXCEL") // 1
=SEARCH("e", "excel") // 1
=FIND("e", "EXCEL")   // #VALUE!
Check Answer
Challenge #1
Target: Sheet1!F1
Case-Insensitive Position Search

In cell F1, use SEARCH to find "e" in A2 ("EXCEL"). SEARCH ignores case, so it will find the position even though A2 is uppercase.

Example 2 - Searching with Wildcards

SEARCH supports three wildcard rules. * matches any number of characters, ? matches one character, and ~ escapes a wildcard so it is treated literally.

=SEARCH("ex*l", "excellent") // 1
=SEARCH("t?st", "test case") // 1
Check Answer
Challenge #2
Target: Sheet1!F2
Wildcard Pattern Match

In cell F2, use SEARCH to find the pattern "ex*l" in A3 ("excellent"). The asterisk matches any characters in between.

Example 3 - Safely Checking if a Keyword Exists

SEARCH returns an error if no match is found. Wrapping it in ISNUMBER turns that result into a simple TRUE or FALSE check, which is often easier to use in filtering and logic formulas.

=ISNUMBER(SEARCH("Gold", A4))
// "GOLD-Member" -> TRUE
Check Answer
Challenge #3
Target: Sheet1!F3
Safe Existence Check

In cell F3, use ISNUMBER(SEARCH("Gold", A4)) to safely check if "Gold" appears in A4 without getting an error if it is missing.

Example 4 - Using SEARCH to Split Text at a Delimiter

The position returned by SEARCH can feed into another text function. Here it helps measure the length of the text before the hyphen so another formula, such as LEFT, can use that result.

=SEARCH("-", A2)-1
// "EC-Global" -> 2

=LEFT(A2, SEARCH("-",A2)-1) // "EC"
Check Answer
Challenge #4
Target: Sheet1!F4
Extract Text Before a Delimiter

In cell F4, use SEARCH to find the hyphen in A2 ("EC-Global"), then subtract 1 to get the length of the prefix.

Wildcard searches can match more broadly than you expect, so it is a good idea to test the pattern on sample data before applying it across a full column.

Conclusion Recap

  • Summary: SEARCH returns the position of text inside another text string.
  • Syntax: =SEARCH(find_text, within_text, [start_num]).
  • Key point: SEARCH ignores case and supports wildcards.
  • Practical usage: Flexible text search, keyword checks, and delimiter-based parsing.
  • Best pattern: Wrap SEARCH in ISNUMBER when you want a safe contains check.
Tactical Arena
Select Scenario:
Share SEARCH Function!

Tell your friends about this post

Discussion

ExcelClash is an interactive platform designed to level up your Excel skills through real-world exercises and challenges. Sharpen your logic, solve real spreadsheet problems, and learn faster.

© 2026 ExcelClash, Inc. All rights reserved.