{"id":4914,"date":"2025-12-30T21:04:14","date_gmt":"2025-12-30T20:04:14","guid":{"rendered":"https:\/\/sandshine.eu\/?p=4914"},"modified":"2025-12-01T21:10:42","modified_gmt":"2025-12-01T20:10:42","slug":"search-function-in-excel-complete-tutorial-with-examples","status":"publish","type":"post","link":"https:\/\/sandshine.eu\/index.php\/2025\/12\/30\/search-function-in-excel-complete-tutorial-with-examples\/","title":{"rendered":"SEARCH Function in Excel: Complete Tutorial with Examples"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Need to find where text appears within a cell? SEARCH returns the position of a substring, making it perfect for locating characters, extracting data, or checking if text exists. It&#8217;s case-insensitive and supports wildcards.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">What Makes SEARCH Useful<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">SEARCH pinpoints text location instantly:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Find text position<\/strong> &#8211; Get the exact character number where text starts<\/li>\n\n\n\n<li><strong>Case-insensitive<\/strong> &#8211; Finds &#8220;ABC&#8221;, &#8220;abc&#8221;, or &#8220;Abc&#8221; the same way<\/li>\n\n\n\n<li><strong>Wildcard support<\/strong> &#8211; Use * and ? for flexible pattern matching<\/li>\n\n\n\n<li><strong>Extract data<\/strong> &#8211; Combine with other functions to pull substrings<\/li>\n\n\n\n<li><strong>Validation checks<\/strong> &#8211; Verify if specific text exists anywhere in a cell<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">The Syntax<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>=SEARCH(find_text, within_text, &#91;start_num])<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Find_text is what you&#8217;re looking for. Within_text is where you&#8217;re searching. Start_num is optional (which character to start from).<\/p>\n\n\n\n<div class=\"wp-block-stackable-divider stk-block-divider stk-block stk-ceff21f\" data-block-id=\"ceff21f\"><style>.stk-ceff21f {margin-bottom:0px !important;}<\/style><hr class=\"stk-block-divider__hr\"\/><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Example 1: Basic Text Location<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Find where &#8220;Inc&#8221; appears in company names:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-palette-color-3-background-color has-text-color has-background has-link-color has-fixed-layout\"><thead><tr><th>Company<\/th><\/tr><\/thead><tbody><tr><td>Tech Inc Solutions<\/td><\/tr><tr><td>Global Industries<\/td><\/tr><tr><td>DataCorp Inc<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Formula<\/strong>: <code>=SEARCH(\"Inc\", A2)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result in B2<\/strong>: 6 (starts at character 6)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result in B3<\/strong>: #VALUE! (not found)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result in B4<\/strong>: 10<\/p>\n\n\n\n<div class=\"wp-block-stackable-divider stk-block-divider stk-block stk-15abc1e\" data-block-id=\"15abc1e\"><style>.stk-15abc1e {margin-bottom:0px !important;}<\/style><hr class=\"stk-block-divider__hr\"\/><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Example 2: Case-Insensitive Search<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">SEARCH ignores case differences:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-palette-color-3-background-color has-text-color has-background has-link-color has-fixed-layout\"><thead><tr><th>Text<\/th><\/tr><\/thead><tbody><tr><td>HELLO WORLD<\/td><\/tr><tr><td>Hello World<\/td><\/tr><tr><td>hello world<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Formula<\/strong>: <code>=SEARCH(\"hello\", A2)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result for all three<\/strong>: 1<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">All three return 1 because SEARCH treats uppercase and lowercase the same.<\/p>\n\n\n\n<div class=\"wp-block-stackable-divider stk-block-divider stk-block stk-02b090d\" data-block-id=\"02b090d\"><style>.stk-02b090d {margin-bottom:0px !important;}<\/style><hr class=\"stk-block-divider__hr\"\/><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Example 3: Wildcard Pattern Matching<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Find email domains using wildcards:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-palette-color-3-background-color has-text-color has-background has-link-color has-fixed-layout\"><thead><tr><th>Email<\/th><\/tr><\/thead><tbody><tr><td>john@gmail.com<\/td><\/tr><tr><td>sarah@company.co.uk<\/td><\/tr><tr><td>mike@yahoo.com<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Formula<\/strong>: <code>=SEARCH(\"@*.com\", A2)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result in B2<\/strong>: 5 (@ found at position 5)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result in B3<\/strong>: #VALUE! (ends in .co.uk, not .com)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The asterisk (*) matches any characters between @ and .com.<\/p>\n\n\n\n<div class=\"wp-block-stackable-divider stk-block-divider stk-block stk-a877158\" data-block-id=\"a877158\"><style>.stk-a877158 {margin-bottom:0px !important;}<\/style><hr class=\"stk-block-divider__hr\"\/><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Example 4: Extracting Data After a Delimiter<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Find the position of a comma to extract last names:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-palette-color-3-background-color has-text-color has-background has-link-color has-fixed-layout\"><thead><tr><th>Full Name<\/th><\/tr><\/thead><tbody><tr><td>Smith, John<\/td><\/tr><tr><td>Johnson, Sarah<\/td><\/tr><tr><td>Williams, Mike<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Formula for position<\/strong>: <code>=SEARCH(\",\", A2)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result<\/strong>: 6<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Formula to extract last name<\/strong>: <code>=LEFT(A2, SEARCH(\",\", A2)-1)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result<\/strong>: Smith<\/p>\n\n\n\n<div class=\"wp-block-stackable-divider stk-block-divider stk-block stk-a19dc57\" data-block-id=\"a19dc57\"><style>.stk-a19dc57 {margin-bottom:0px !important;}<\/style><hr class=\"stk-block-divider__hr\"\/><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Example 5: Check if Text Exists<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Verify if &#8220;urgent&#8221; appears anywhere in messages:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-palette-color-3-background-color has-text-color has-background has-link-color has-fixed-layout\"><thead><tr><th>Message<\/th><\/tr><\/thead><tbody><tr><td>Please review this urgent matter<\/td><\/tr><tr><td>Standard weekly update<\/td><\/tr><tr><td>URGENT: Action required<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Formula<\/strong>: <code>=IF(ISNUMBER(SEARCH(\"urgent\", A2)), \"Urgent\", \"Normal\")<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result in B2<\/strong>: Urgent<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result in B3<\/strong>: Normal<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result in B4<\/strong>: Urgent (case-insensitive!)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">ISNUMBER checks if SEARCH found the text (returns a number) or not (returns error).<\/p>\n\n\n\n<div class=\"wp-block-stackable-divider stk-block-divider stk-block stk-64887d0\" data-block-id=\"64887d0\"><style>.stk-64887d0 {margin-bottom:0px !important;}<\/style><hr class=\"stk-block-divider__hr\"\/><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Example 6: Starting Position Parameter<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Search for the second occurrence of a character:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-palette-color-3-background-color has-text-color has-background has-link-color has-fixed-layout\"><thead><tr><th>Text<\/th><\/tr><\/thead><tbody><tr><td>apple-orange-banana<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Formula for first dash<\/strong>: <code>=SEARCH(\"-\", A2)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result<\/strong>: 6<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Formula for second dash<\/strong>: <code>=SEARCH(\"-\", A2, 7)<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Result<\/strong>: 13<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Starting from position 7 skips the first dash.<\/p>\n\n\n\n<div class=\"wp-block-stackable-divider stk-block-divider stk-block stk-a9d1e4d\" data-block-id=\"a9d1e4d\"><style>.stk-a9d1e4d {margin-bottom:0px !important;}<\/style><hr class=\"stk-block-divider__hr\"\/><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Wildcards in SEARCH<\/h5>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-palette-color-3-background-color has-text-color has-background has-link-color has-fixed-layout\"><thead><tr><th>Wildcard<\/th><th>Meaning<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td>*<\/td><td>Any number of characters<\/td><td>&#8220;a*e&#8221; finds &#8220;apple&#8221;, &#8220;are&#8221;, &#8220;ace&#8221;<\/td><\/tr><tr><td>?<\/td><td>Single character<\/td><td>&#8220;a?e&#8221; finds &#8220;are&#8221;, &#8220;ace&#8221; but not &#8220;apple&#8221;<\/td><\/tr><tr><td>~*<\/td><td>Literal asterisk<\/td><td>&#8220;~*&#8221; finds actual * symbol<\/td><\/tr><tr><td>~?<\/td><td>Literal question mark<\/td><td>&#8220;~?&#8221; finds actual ? symbol<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\">SEARCH vs FIND<\/h5>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-white-color has-palette-color-3-background-color has-text-color has-background has-link-color has-fixed-layout\"><thead><tr><th>Feature<\/th><th>SEARCH<\/th><th>FIND<\/th><\/tr><\/thead><tbody><tr><td>Case sensitivity<\/td><td>Case-insensitive<\/td><td>Case-sensitive<\/td><\/tr><tr><td>Wildcards<\/td><td>Supports * and ?<\/td><td>No wildcards<\/td><\/tr><tr><td>Use case<\/td><td>Flexible matching<\/td><td>Exact matching<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>SEARCH(\"hello\", \"HELLO\")<\/code> = 1<\/li>\n\n\n\n<li><code>FIND(\"hello\", \"HELLO\")<\/code> = #VALUE!<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">Common Use Cases<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Email Validation<\/strong> Check if @ symbol exists in email addresses.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Data Extraction<\/strong> Find delimiters like commas or dashes to split text.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Category Detection<\/strong> Search for keywords to categorize data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>File Path Parsing<\/strong> Locate slashes or backslashes to extract folder names.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Practical Combinations<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Extract text after a character:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=MID(A2, SEARCH(\"@\", A2)+1, 100)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Gets everything after @.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Check for multiple terms:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=IF(OR(ISNUMBER(SEARCH(\"urgent\",A2)), ISNUMBER(SEARCH(\"critical\",A2))), \"Priority\", \"Normal\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Find position of last occurrence:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=SEARCH(\"~\", SUBSTITUTE(A2, \"-\", \"~\", LEN(A2)-LEN(SUBSTITUTE(A2,\"-\",\"\"))))<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replaces the last dash with ~ then searches for it.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Common Mistakes to Avoid<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Expecting Case Sensitivity<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SEARCH(&#8220;ABC&#8221;, &#8220;abc&#8221;) finds it<\/li>\n\n\n\n<li>Use FIND if you need case sensitivity<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Forgetting Error Handling<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>SEARCH returns #VALUE! when text not found<\/li>\n\n\n\n<li>Wrap in ISNUMBER or IFERROR<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Wildcard Confusion<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\n<ul class=\"wp-block-list\">\n<li>means any characters (0 or more)<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>? means exactly one character<\/li>\n\n\n\n<li>Don&#8217;t mix up their purposes<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">Error Handling<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Check if text exists before using:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=IFERROR(SEARCH(\"text\", A2), \"Not found\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Use with IF:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=IF(ISNUMBER(SEARCH(\"keyword\", A2)), \"Found\", \"Not found\")<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Tips for Using SEARCH<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Extract domain from email:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=MID(A2, SEARCH(\"@\", A2)+1, LEN(A2))<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Check file extension:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=IF(ISNUMBER(SEARCH(\".pdf\", A2)), \"PDF\", \"Other\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Find text between characters:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=MID(A2, SEARCH(\"&#91;\", A2)+1, SEARCH(\"]\", A2)-SEARCH(\"&#91;\", A2)-1)<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">When to Use SEARCH<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Use SEARCH when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Case doesn&#8217;t matter<\/li>\n\n\n\n<li>You need wildcards<\/li>\n\n\n\n<li>Looking for flexible patterns<\/li>\n\n\n\n<li>Extracting parts of text<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Use FIND when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Case sensitivity is required<\/li>\n\n\n\n<li>Exact matching needed<\/li>\n\n\n\n<li>No wildcards necessary<\/li>\n<\/ul>\n\n\n\n<h5 class=\"wp-block-heading\">Start Using It<\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Open a spreadsheet with text data. Pick a word or character to find. Type =SEARCH, specify what to find and where. See the position number returned.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SEARCH becomes essential for text manipulation and data cleaning.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Questions about SEARCH? Want to explore MID and LEFT for text extraction? Let&#8217;s connect.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SEARCH finds text position within cells, works case-insensitively, supports wildcards, and combines with other functions for powerful data extraction tasks.<\/p>\n","protected":false},"author":1,"featured_media":4915,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[35,36,37],"tags":[1404,1415,1420,1026,1403,1416,1421,1012,1408,1406,1414,1419,1412,1410,1413,1417,1402,1424,1405,1409,1418,1423,1407,1411,1422],"class_list":["post-4914","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-applications","category-excel","category-learning","tag-advanced-search-formulas","tag-case-insensitive-search-excel","tag-excel-365-search","tag-excel-formulas-tutorial","tag-excel-search-formula","tag-excel-search-syntax","tag-excel-text-functions","tag-excel-tutorial-2025","tag-find-text-in-excel","tag-how-to-use-search-in-excel","tag-learn-search-excel","tag-partial-text-match-excel","tag-search-function-examples","tag-search-function-explained","tag-search-function-for-beginners","tag-search-function-guide","tag-search-function-in-excel","tag-search-function-position","tag-search-function-tips","tag-search-function-tutorial","tag-search-function-wildcards","tag-search-isnumber-excel","tag-search-vs-find-excel","tag-search-with-wildcards","tag-text-extraction-excel"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/posts\/4914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/comments?post=4914"}],"version-history":[{"count":1,"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/posts\/4914\/revisions"}],"predecessor-version":[{"id":4917,"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/posts\/4914\/revisions\/4917"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/media\/4915"}],"wp:attachment":[{"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/media?parent=4914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/categories?post=4914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sandshine.eu\/index.php\/wp-json\/wp\/v2\/tags?post=4914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}