{"id":1173,"date":"2018-07-01T15:11:07","date_gmt":"2018-07-01T15:11:07","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=1173"},"modified":"2023-11-03T10:26:18","modified_gmt":"2023-11-03T10:26:18","slug":"mid","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/functions\/mid\/","title":{"rendered":"MID function"},"content":{"rendered":"\n

Excel MID Function allows you to extract a specific portion of text from a larger text string. It’s like cutting out a piece of a sentence or word from a longer paragraph. This can be really useful when you need to work with text data, such as names, dates, or other information.<\/p>\n\n\n\n

Syntax<\/h2>\n\n\n\n

MID(text, start_num, num_chars)<\/strong><\/p>\n\n\n\n

Arguments<\/h2>\n\n\n\n
text<\/strong><\/td>The text from which you want to extract a portion.<\/td><\/tr>
start_num<\/strong><\/td>The position in the text where you want to start extracting.<\/td><\/tr>
num_chars<\/strong><\/td>The number of characters you want to extract from the text.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

How to Use<\/h2>\n\n\n\n

The MID function is straightforward to use. You just need to provide the function with the three arguments mentioned above.<\/p>\n\n\n\n

Let’s look at a few examples to see how it works:<\/p>\n\n\n\n

Example 1:<\/strong> Suppose you have the text “Excel is awesome” in cell A1, and you want to extract the word “awesome.” You can use the MID function like this:<\/p>\n\n\n\n

=MID(A1, 9, 7)<\/code><\/pre>\n\n\n\n

This formula starts at the 9th character (the space before “awesome”) and extracts 7 characters, giving you “awesome.”<\/p>\n\n\n\n

Example 2:<\/strong> If you have a date in cell B1 like “01\/15\/2023” and you want to extract just the year “2023,” you can use the MID function this way:<\/p>\n\n\n\n

=MID(B1, 7, 4)<\/code><\/pre>\n\n\n\n

This formula starts at the 7th character (the first digit of the year) and extracts 4 characters, giving you “2023.”<\/p>\n\n\n\n

Example 3 (Optional):<\/strong> You can also use the MID function to extract a variable-length portion of text. For instance, if you have the text “Hello, World!” in cell C1 and you want to extract everything after the comma and space, you can use the MID function with the FIND function like this:<\/p>\n\n\n\n

=MID(C1, FIND(\", \", C1) + 2, LEN(C1) - FIND(\", \", C1) - 1)<\/code><\/pre>\n\n\n\n

This formula finds the position of the comma and space using FIND, adds 2 to start after them, and calculates the number of characters to extract based on the length of the text and the position of the comma and space. It extracts “World!” in this case.<\/p>\n\n\n\n

These examples demonstrate how the MID function can be a handy tool for extracting specific information from text in Excel.<\/p>\n","protected":false},"excerpt":{"rendered":"

Excel MID Function allows you to extract a specific portion of text from a larger text string. It’s like cutting out a piece…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[180],"yoast_head":"\nMID function<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/functions\/mid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MID function\" \/>\n<meta property=\"og:description\" content=\"Excel MID Function allows you to extract a specific portion of text from a larger text string. It’s like cutting out a piece...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/functions\/mid\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-01T15:11:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-03T10:26:18+00:00\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mid\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mid\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"MID function\",\"datePublished\":\"2018-07-01T15:11:07+00:00\",\"dateModified\":\"2023-11-03T10:26:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mid\/\"},\"wordCount\":341,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"keywords\":[\"done\"],\"articleSection\":[\"functions\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mid\/\",\"url\":\"https:\/\/officetuts.net\/excel\/functions\/mid\/\",\"name\":\"MID function\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"datePublished\":\"2018-07-01T15:11:07+00:00\",\"dateModified\":\"2023-11-03T10:26:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mid\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/functions\/mid\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/functions\/mid\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MID function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MID function","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/officetuts.net\/excel\/functions\/mid\/","og_locale":"en_US","og_type":"article","og_title":"MID function","og_description":"Excel MID Function allows you to extract a specific portion of text from a larger text string. It’s like cutting out a piece...","og_url":"https:\/\/officetuts.net\/excel\/functions\/mid\/","article_published_time":"2018-07-01T15:11:07+00:00","article_modified_time":"2023-11-03T10:26:18+00:00","author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/functions\/mid\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/functions\/mid\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"MID function","datePublished":"2018-07-01T15:11:07+00:00","dateModified":"2023-11-03T10:26:18+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/functions\/mid\/"},"wordCount":341,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"keywords":["done"],"articleSection":["functions"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/functions\/mid\/","url":"https:\/\/officetuts.net\/excel\/functions\/mid\/","name":"MID function","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"datePublished":"2018-07-01T15:11:07+00:00","dateModified":"2023-11-03T10:26:18+00:00","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/functions\/mid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/functions\/mid\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/functions\/mid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"MID function"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1173"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=1173"}],"version-history":[{"count":3,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1173\/revisions"}],"predecessor-version":[{"id":16500,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1173\/revisions\/16500"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=1173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=1173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=1173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}