---
title: "SEARCH function in Excel: syntax and examples | PracticeExcel"
description: "How to use SEARCH in Excel and Google Sheets: find text regardless of case, with wildcards."
canonical_url: "https://practiceexcelonline.com/functions/search"
locale: en
meta:
  "og:description": "How to use SEARCH in Excel and Google Sheets: find text regardless of case, with wildcards."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U0VBUkNIIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTRUFSQ0ggaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGZpbmQgdGV4dCByZWdhcmRsZXNzIG9mIGNhc2UsIHdpdGggd2lsZGNhcmRzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U0VBUkNIKGZpbmRfdGV4dCwgd2l0aGluX3RleHQsIFtzdGFydF9udW1dKQ%2Cp_Ii9mdW5jdGlvbnMvc2VhcmNoIg%2Cs_ZrgWCXtQ586hpo1W.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "SEARCH function in Excel: syntax and examples | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U0VBUkNIIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTRUFSQ0ggaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGZpbmQgdGV4dCByZWdhcmRsZXNzIG9mIGNhc2UsIHdpdGggd2lsZGNhcmRzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U0VBUkNIKGZpbmRfdGV4dCwgd2l0aGluX3RleHQsIFtzdGFydF9udW1dKQ%2Cp_Ii9mdW5jdGlvbnMvc2VhcmNoIg%2Cs_ZrgWCXtQ586hpo1W.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **The SEARCH function**

Returns the position of one text inside another, ignoring upper and lower case. Wildcards \* and ? are allowed.

=

SEARCH(

## **Syntax**

```
SEARCH(find_text, within_text, [start_num])
```

<dl><dt>**find_text **</dt>
<dd>The text to look for; may contain * and ?.</dd>
<dt>**within_text **</dt>
<dd>The text to search in.</dd>
<dt>**start_num **(optional)</dt>
<dd>The position to start from. Default 1.</dd></dl>

## **Examples**

C1`=SEARCH(<sup>1</sup>"d",<sup>2</sup>A2)`

|  | A | B | C |
| --- | --- | --- | --- |
| 1 | Code |  | **1** |
| 2 | DK-2100 |  | |

**In plain words:** Find the position of <sup>1</sup>d, in upper or lower case, in <sup>2</sup>the code in A2.

C1=SEARCH("2\*0",A2)

|  | A | B | C |
| --- | --- | --- | --- |
| 1 | Code |  | **4** |
| 2 | DK-2100 |  | |

## **Read the guide**

- [**How to clean data in Excel with formulas**](https://practiceexcelonline.com/learn/clean-data-in-excel)
- [**Conditional formatting in Excel: highlight cells and rows with rules and formulas**](https://practiceexcelonline.com/learn/conditional-formatting-excel)

## **Related functions**

- [**FIND**](https://practiceexcelonline.com/functions/find)
- [**SUBSTITUTE**](https://practiceexcelonline.com/functions/substitute)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/functions/search#webpage","description":"How to use SEARCH in Excel and Google Sheets: find text regardless of case, with wildcards.","name":"SEARCH function in Excel: syntax and examples","url":"https://practiceexcelonline.com/functions/search","@type":["WebPage","SearchResultsPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/functions/search#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/functions/search"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/functions/search#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel functions","item":"https://practiceexcelonline.com/functions","position":2},{"@type":"ListItem","name":"SEARCH function in Excel: syntax and examples","position":3}]},{"@id":"https://practiceexcelonline.com/functions/search#article","description":"How to use SEARCH in Excel and Google Sheets: find text regardless of case, with wildcards.","headline":"SEARCH function in Excel: syntax and examples","inLanguage":"en-US","thumbnailUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U0VBUkNIIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTRUFSQ0ggaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGZpbmQgdGV4dCByZWdhcmRsZXNzIG9mIGNhc2UsIHdpdGggd2lsZGNhcmRzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U0VBUkNIKGZpbmRfdGV4dCwgd2l0aGluX3RleHQsIFtzdGFydF9udW1dKQ%2Cp_Ii9mdW5jdGlvbnMvc2VhcmNoIg%2Cs_ZrgWCXtQ586hpo1W.png","@type":["Article","TechArticle"],"author":{"@id":"https://practiceexcelonline.com/#identity"},"image":{"@id":"https://practiceexcelonline.com/#/schema/image/1"},"isPartOf":{"@id":"https://practiceexcelonline.com/functions/search#webpage"},"mainEntityOfPage":{"@id":"https://practiceexcelonline.com/functions/search#webpage"},"publisher":{"@id":"https://practiceexcelonline.com/#identity"}},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"},{"@id":"https://practiceexcelonline.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U0VBUkNIIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTRUFSQ0ggaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGZpbmQgdGV4dCByZWdhcmRsZXNzIG9mIGNhc2UsIHdpdGggd2lsZGNhcmRzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U0VBUkNIKGZpbmRfdGV4dCwgd2l0aGluX3RleHQsIFtzdGFydF9udW1dKQ%2Cp_Ii9mdW5jdGlvbnMvc2VhcmNoIg%2Cs_ZrgWCXtQ586hpo1W.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_~U0VBUkNIIGZ1bmN0aW9uIGluIEV4Y2VsOiBzeW50YXggYW5kIGV4YW1wbGVz%2Cdescription_~SG93IHRvIHVzZSBTRUFSQ0ggaW4gRXhjZWwgYW5kIEdvb2dsZSBTaGVldHM6IGZpbmQgdGV4dCByZWdhcmRsZXNzIG9mIGNhc2UsIHdpdGggd2lsZGNhcmRzLg%2Ceyebrow_Excel%2Bfunctions%2Csite_practiceexcel%2Ccode_~U0VBUkNIKGZpbmRfdGV4dCwgd2l0aGluX3RleHQsIFtzdGFydF9udW1dKQ%2Cp_Ii9mdW5jdGlvbnMvc2VhcmNoIg%2Cs_ZrgWCXtQ586hpo1W.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
