{"id":9939,"date":"2019-06-10T10:20:37","date_gmt":"2019-06-10T08:20:37","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=9939"},"modified":"2023-11-30T20:05:22","modified_gmt":"2023-11-30T19:05:22","slug":"search-formula-in-excel","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/search-formula-in-excel\/","title":{"rendered":"SEARCH Formula in Excel"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>Gets the position of a specific text within another text and allows wildcards * ?<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=SEARCH(<span style=\"color: #0000ff;\">find_text<\/span>, <span style=\"color: #ff6600;\">within_text<\/span>, <span style=\"color: #339966;\">[start_num]<\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>=SEARCH(<span style=\"color: #0000ff;\">text to be searched<\/span>, <span style=\"color: #ff6600;\">the source text<\/span>, <span style=\"color: #339966;\">[starting position of the source text]<\/span>)<\/p>\n<hr \/>\n<p>If you want to check where a specific text is located in the source text, it is very easy to search for the position using the <strong>SEARCH Formula<\/strong>!<\/p>\n<p>You might be wondering on what makes it different from the\u00a0<a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/find-formula-in-excel\" target=\"_blank\" rel=\"noopener noreferrer\">FIND Formula<\/a>. The\u00a0<strong>SEARCH formula\u00a0<\/strong>is\u00a0<strong>case-insensitive\u00a0<\/strong>when searching for text, and it also allows for the use of <strong>wildcard characters like * and ?<\/strong><\/p>\n<p>It is very cool when <strong>wildcard characters<\/strong> are used. The<strong> ? character<\/strong> represents any single character, while <strong>*<\/strong> represents any number of characters.<\/p>\n<p>I explain how you can do this below:<\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/2q1K4gNvvzM?rel=0 \" width=\"800\" height=\"400\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><span data-mce-type=\"bookmark\" style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><a href=\"https:\/\/www.youtube.com\/c\/MyExcelOnlinecomtutorials?sub_confirmation=1\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" class=\"alignmiddle wp-image-111468 size-full\" style=\"vertical-align: middle;\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/04\/1.yt_.png\" alt=\"\" title=\"\"><\/a><\/p>\n<p class=\"line-two\"><a class=\"IRPP_minimalist icon-download button small\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA.xlsx\" data-leadbox-id=\"147284833f72a2:12f08263ab46dc\"><span class=\"ctaText px-3 text-capitalize\">Download excel workbook<i class=\"fa fa-download\"><\/i><\/span><span class=\"postTitle px-3\">SEARCH-FORMULA.xlsx<\/span><\/a><\/p>\n<p class=\"line-two\">\n<\/div>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:<\/strong><\/span> We need to <strong>enter the <i>SEARCH\u00a0<\/i>function in a blank cell<\/strong>:<\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #0000ff;\">=SEARCH(<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SEARCH Formula in Excel\"  class=\"aligncenter size-full wp-image-10080\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-01.jpg\" alt=\"SEARCH Formula in Excel\" width=\"675\" height=\"156\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-01.jpg 675w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-01-300x69.jpg 300w\" sizes=\"(max-width: 675px) 100vw, 675px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong><\/span>\u00a0The <b>SEARCH\u00a0<\/b>arguments:<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_57_1 counter-flat ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li><a href=\"#\" class=\"scroll-to-download\">Free Practice Workbook<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/search-formula-in-excel\/#find_text\" title=\"find_text\">find_text<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/search-formula-in-excel\/#within_text\" title=\"within_text\">within_text<\/a><\/li><li class='ez-toc-page-1'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/search-formula-in-excel\/#start_num\" title=\"start_num\">start_num<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"find_text\"><\/span><span style=\"color: #0000ff;\"><em><strong>find_text<\/strong><\/em><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is the text to be searched for?<\/strong><\/p>\n<p>There are a couple of flexible settings you can do in<em> find_text<\/em>:<\/p>\n<ul>\n<li><strong>?<\/strong> matches <strong>any single character<\/strong> while<strong> *<\/strong> matches <strong>any number of characters<\/strong>.<\/li>\n<li>For example, if we place in\u00a0<strong>H?w<\/strong>, then we want to search for any 3-character text that starts with H and ends with w<\/li>\n<li>If we change it to\u00a0<strong>H*w<\/strong>,\u00a0then we want to search for any text that starts with H and ends with w<\/li>\n<li>If ever you want to match the question mark (?) or asterisk character (*) <strong>literally<\/strong>, you will have to add a\u00a0<strong>tilde character (~)<\/strong> before the character. For example, <strong>~?<\/strong> and<strong> ~*<\/strong><\/li>\n<\/ul>\n<p><em>Select the cell containing the text to be searched for. In our first example, we want to search for &#8216;x&#8217; in the word &#8216;Excel&#8217;:<\/em><\/p>\n<h2 style=\"text-align: center;\">=SEARCH(<span style=\"color: #0000ff;\">D9,<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SEARCH Formula in Excel\"  class=\"aligncenter size-full wp-image-10081\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-02.jpg\" alt=\"SEARCH Formula in Excel\" width=\"688\" height=\"159\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-02.jpg 688w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-02-300x69.jpg 300w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"within_text\"><\/span><span style=\"color: #0000ff;\"><em><strong>within_text<\/strong><\/em><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>What is your source text?<\/strong><\/p>\n<p><em>Select the cell source text. So let&#8217;s select &#8216;Excel&#8217; as our source text:<\/em><\/p>\n<h2 style=\"text-align: center;\">=SEARCH(D9,\u00a0<span style=\"color: #0000ff;\">C9,<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SEARCH Formula in Excel\"  class=\"aligncenter size-full wp-image-10082\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-03.jpg\" alt=\"SEARCH Formula in Excel\" width=\"679\" height=\"163\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-03.jpg 679w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-03-300x72.jpg 300w\" sizes=\"(max-width: 679px) 100vw, 679px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"start_num\"><\/span><span style=\"color: #0000ff;\"><em><strong>start_num<\/strong><\/em><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Where do you want to start searching in your source text?<\/strong><\/p>\n<p><em>You can leave this blank, it will default to 1 which means it will start looking from the first character of your source text. In our case, let us put in 1 to start searching from there:<\/em><\/p>\n<h2 style=\"text-align: center;\">=SEARCH(D9, C9,\u00a0<span style=\"color: #0000ff;\">1)<\/span><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SEARCH Formula in Excel\"  class=\"aligncenter size-full wp-image-10083\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-04.jpg\" alt=\"SEARCH Formula in Excel\" width=\"636\" height=\"159\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-04.jpg 636w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-04-300x75.jpg 300w\" sizes=\"(max-width: 636px) 100vw, 636px\" \/><\/p>\n<p>Apply the same formula to the rest of the cells by dragging the lower right corner downwards.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SEARCH Formula in Excel\"  class=\"aligncenter size-full wp-image-10084\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-05.jpg\" alt=\"SEARCH Formula in Excel\" width=\"569\" height=\"165\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-05.jpg 569w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-05-300x87.jpg 300w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/p>\n<p>You can see that the matching is<strong> case insensitive<\/strong>! And you can see our <strong>wildcard characters<\/strong> matching in action!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"SEARCH Formula in Excel\"  class=\"aligncenter size-full wp-image-10085\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-06.jpg\" alt=\"SEARCH Formula in Excel\" width=\"587\" height=\"209\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-06.jpg 587w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/11\/SEARCH-FORMULA-06-300x107.jpg 300w\" sizes=\"(max-width: 587px) 100vw, 587px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #0000ff;\"><strong>How to Use the SEARCH Formula in Excel<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/ebooks.myexcelonline.com\/products\/101-most-popular-excel-formulas-e-book\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"SORT Formula in Excel\"  class=\"alignleft size-full wp-image-10741\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book.png\" alt=\"SORT Formula in Excel\" width=\"1200\" height=\"628\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book.png 1200w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book-300x157.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book-1024x536.png 1024w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2018\/12\/MyExcelOnline.com-Formulas-E-Book-768x402.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; What does it do? Gets the position of a specific text within another text and allows wildcards * ? Formula breakdown: =SEARCH(find_text, within_text, [start_num]) What it means: =SEARCH(text to be searched, the source text, [starting position of the source text]) If you want to check where a specific text is located in the source [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17801,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cos_headline_score":0,"cos_seo_score":0,"cos_headline_text":"","cos_headline_has_been_analyzed":false,"cos_last_analyzed_headline":[],"om_disable_all_campaigns":false},"categories":[485,3,14],"tags":[142,486,70],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/9939"}],"collection":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/comments?post=9939"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/9939\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17801"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=9939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=9939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=9939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}