{"id":9183,"date":"2021-03-19T10:30:00","date_gmt":"2021-03-19T09:30:00","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=9183"},"modified":"2021-03-19T10:30:00","modified_gmt":"2021-03-19T09:30:00","slug":"formula-media-en-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/es\/blog\/google-sheets-formulas\/mid-formula-in-google-sheets\/","title":{"rendered":"C\u00f3mo utilizar la f\u00f3rmula MID en Google Sheets"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; module_class=&#8221;sheetgo-post&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>You can use spreadsheets not only for number crunching but for operating with text-based data as well. Google Sheets has a built-in support system to easily convert, trim and combine text strings. You may already be familiar with formulas like <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/left-formula-in-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">LEFT<\/a>\u00a0and\u00a0<a href=\"https:\/\/support.google.com\/docs\/answer\/3094087\" target=\"_blank\" rel=\"noopener noreferrer\">RIGHT<\/a> that help extract substrings from the left and right sides of a string respectively.<\/p>\n<p>What if you need to extract something in between? You can do so using the <a href=\"https:\/\/support.google.com\/docs\/answer\/3094129\" target=\"_blank\" rel=\"noopener noreferrer\">MID<\/a> formula in Google Sheets.<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text admin_label=&#8221;Connections T &#8211; One tool &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#f2f7ff&#8221; max_width=&#8221;700px&#8221; module_alignment=&#8221;center&#8221; max_height=&#8221;300px&#8221; custom_margin=&#8221;20px|0px|20px|0px|true|true&#8221; custom_padding=&#8221;25px|25px|25px|25px|true|true&#8221; sticky_limit_bottom=&#8221;section&#8221; border_radii=&#8221;on|20px|20px|20px|20px&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#d9e7ff&#8221; global_colors_info=&#8221;{}&#8221; global_module=&#8221;50458&#8243; theme_builder_area=&#8221;post_content&#8221;]<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/connections-top-processors-main.webp\" width=\"250\" height=\"168\" alt=\"\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Recommended-for-Google-Workspace-badge.webp\" width=\"150\" height=\"180\" alt=\"39\" \/><\/p>\n<p><span style=\"font-size: 22px; font-weight: 600;\">One tool to merge, split, and filter all your spreadsheet data<\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Syntax<\/h3>\n<p>[\/et_pb_text][et_pb_text module_class=&#8221;spreadsheet-function&#8221; _builder_version=&#8221;4.16&#8243; border_width_left=&#8221;4px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]=MID(string, starting_at, extract_length)[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<ul>\n<li><b>string<\/b> \u2013 is the input text that you need to extract a substring from.<\/li>\n<li><b>starting_at<\/b> \u2013 is the position from the left of string from which to begin extracting. Notate the first character of the string with position 1.<\/li>\n<li><b>extract_length<\/b> \u2013 specifies the number of characters to extract from the position defined by starting_at.<\/li>\n<\/ul>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Usage: MID function in Google Sheets<\/h3>\n<p>Nothing beats examples when it comes to understanding the concepts. So, I\u2019ll dive right in to reinforce what you\u2019ve learned from the syntax.<\/p>\n<p>Take a look at the image below.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/03\/1.-MID-example-1.png&#8221; alt=&#8221;MID Google Sheets example 1&#8243; title_text=&#8221;1. MID example 1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>To understand these examples easily, think of the output values as a segment cut out from an input string. In the first example, the formula picked the result \u201cdom\u201d from \u201cRandom text\u201d by going to the 4th character and extracting the text for a length of 3 characters. A similar process was repeated in the next two examples.<\/p>\n<p>What if the formula reaches the end of the string before it extracts the <b>extract_length<\/b> completely? The formula simply returns characters from <b>starting_at<\/b> to the end of the string. So instead of generating an error, it just stops at the end of the string. I demonstrated this in the final example. The total length of the string \u201cConsistent\u201d is 10. I wanted the formula to start at the 7th position, and extract 6 characters after that. That implies that the formula should go until 12th character, which doesn\u2019t exist. So the formula just returned \u201ctent\u201d, because that is what is available until the end of the input string.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h4>Combining MID with the LEN function<\/h4>\n<p>It&#8217;s very useful to combine text functions together to dynamically extract information. While this is often done with the LEFT and RIGHT functions, you can also use MID to accomplish this.<\/p>\n<p>In the example below, I have names embedded in sentences. I use the MID and LEN functions to extract the names only, with the formula <b>=MID(A2,LEN(&#8220;My name is &#8220;),30)<\/b>.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/03\/2.-MID-with-LEN.png&#8221; alt=&#8221;MID google sheets with LEN 2&#8243; title_text=&#8221;2. MID with LEN&#8221; align=&#8221;center&#8221; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>The LEN function determines the length of the first part of the phrase, then tells the MID function where to start extracting the substring. I set the <b>extract_length<\/b> to 30 to be sure to get the full length of the name.<\/p>\n<p>That\u2019s it! While MID is a fairly simple function, I hope you can now use it to make your own spreadsheets more efficient.<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.22.2&#8243; background_color=&#8221;#f9f9ff&#8221; custom_margin=&#8221;40px||40px||false|false&#8221; custom_padding=&#8221;15px|25px|15px|25px|true|true&#8221; border_width_left=&#8221;3px&#8221; border_color_left=&#8221;#808e95&#8243; global_module=&#8221;26540&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><em><strong>Editor\u2019s note<\/strong>: This is a revised version of a previous post that has been updated for accuracy and comprehensiveness.<\/em><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text admin_label=&#8221;Connections T &#8211; Automate beyond importrange &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button-light vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#f2f7ff&#8221; max_width=&#8221;700px&#8221; module_alignment=&#8221;center&#8221; max_height=&#8221;300px&#8221; custom_margin=&#8221;20px|0px|20px|0px|true|true&#8221; custom_padding=&#8221;25px|25px|25px|25px|true|true&#8221; sticky_limit_bottom=&#8221;section&#8221; border_radii=&#8221;on|20px|20px|20px|20px&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#d9e7ff&#8221; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; global_module=&#8221;50462&#8243; theme_builder_area=&#8221;post_content&#8221;]<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Add-on-sm_sheets-connected-new-connection.webp\" width=\"250\" height=\"168\" alt=\"\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Recommended-for-Google-Workspace-badge.webp\" width=\"150\" height=\"180\" alt=\"39\" \/><\/p>\n<p><span style=\"font-size: 22px; font-weight: 600;\">Automate data transfers beyond Importrange<\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can use spreadsheets not only for number crunching but for operating with text-based data as well. Google Sheets has a built-in support system to easily convert, trim and combine text strings. You may already be familiar with formulas like LEFT\u00a0and\u00a0RIGHT that help extract substrings from the left and right sides of a string respectively. [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":33207,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"We use spreadsheets not only for number crunching but also for operating on the text-based data as well. There is a built-in support system to easily convert, trim and combine the strings. We know that we have formulas like <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/left-formula-in-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">LEFT<\/a> and <a href=\"https:\/\/support.google.com\/docs\/answer\/3094087\" target=\"_blank\" rel=\"noopener noreferrer\">RIGHT<\/a> that help us extract the substrings from the left and the right sides of a string respectively. What if we need to extract something in between? We can do so using the <a href=\"https:\/\/support.google.com\/docs\/answer\/3094129\" target=\"_blank\" rel=\"noopener noreferrer\">MID<\/a> formula in Google Sheets.\n<h3>Syntax<\/h3>\n<strong>MID(string, starting_at, extract_length)<\/strong>\n<ul>\n \t<li><strong>string<\/strong> - is the input text that we need to extract a substring from.<\/li>\n \t<li><strong>starting_at<\/strong> - is the position from the left of <strong>string<\/strong> from which to begin extracting. We notate the first character of the <strong>string<\/strong> with position 1.<\/li>\n \t<li><strong>extract_length<\/strong> - this specifies the number of characters the substring&nbsp;should have from the position defined by starting_at.<\/li>\n<\/ul>\n<h3>Usage: MID formula in Google Sheets<\/h3>\nNothing beats examples when it comes to understanding the concepts. So, let us dive right into them and reinforce what we've learned from the syntax. Have a look at the image below.\n\n<img class=\"aligncenter wp-image-9329 size-full\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2018\/07\/MID-formula-Illustration-Frame-2.png\" alt=\"MID formula in Google Sheets\" width=\"728\" height=\"496\">\n\nTo understand these examples easily, think of the output values as a segment cut out from an input string. In the first example, the formula picked result \"dom\" from the 4th position of \"Random text\", until it is 3 characters long. Similar is the case with the next two examples.\n\nWhat if the formula reaches the end of the string even before it traverses the <strong>extract_length<\/strong> completely? The formula simply returns characters from&nbsp;<strong>starting_at<\/strong> to the end of the string. We demonstrated this in the final example. The total length of the string \"Consistent\" is 10. We wanted the formula to start at the 7th position, and extract 6 characters after that. That implies that the formula should traverse until 12th character, which doesn't exist. So the formula just returned \"tent\", because that is what is available until the end of the input string.","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-9183","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/9183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/comments?post=9183"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/posts\/9183\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media\/33207"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/media?parent=9183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/categories?post=9183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/es\/wp-json\/wp\/v2\/tags?post=9183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}