{"id":862,"date":"2019-04-19T17:33:09","date_gmt":"2019-04-19T14:33:09","guid":{"rendered":"https:\/\/www.test4u.eu\/excelpedia\/?p=862"},"modified":"2019-04-19T17:33:12","modified_gmt":"2019-04-19T14:33:12","slug":"the-mid-function","status":"publish","type":"post","link":"https:\/\/www.test4u.eu\/excelpedia\/the-mid-function\/","title":{"rendered":"The MID Function"},"content":{"rendered":"\n<p>It returns a specific amount of characters from a string, starting at a specific position in the string.<\/p>\n\n\n\n<p>The syntax of the function is the following: <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-large is-layout-flow wp-block-quote-is-layout-flow\"><p> <strong>MID<\/strong><em>(<strong>text<\/strong><span><b>, start_num, num_chars<\/b><\/span><\/em>) <\/p><cite><span><b><strong>find_text<\/strong><\/b><\/span><strong>: <\/strong>The text you from which the characters will come.<br><strong>start_num<\/strong>:  The position of the first character you want to extract in text.   <br><strong>num_chars<\/strong>:  The number of characters that will be returned.   <\/cite><\/blockquote>\n\n\n\n<p>If the <strong>start_num <\/strong>argument is greater than the length of the text the function returns an empty string.<\/p>\n\n\n\n<p>If (<strong>start_num<\/strong>+<strong>num_chars<\/strong>) is greater than the length of the text then the function returns the characters from <strong>start_num <\/strong>to the end of the text.<\/p>\n\n\n\n<p>If <strong>start_num <\/strong>is less than 1 or <strong>num_chars <\/strong>is less than zero then the function returns the #VALUE! error.<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Click on the button to practice using this function, with the help of our <strong>Online Assessment Tool<\/strong>:<\/p>\n\n\n<p class=\"button-practice-container\" ><a class=\"button button-primary button-practice\" style=\"height:auto\"  href=\"https:\/\/www.test4u.eu\/excelpedia\/wp-content\/plugins\/unlimited-integration\/run.php?id=cWFQSzY4UU5PTkJVczBHQW1ndlhTb1R4MkpKUkxGbmZ4OTh1bG0waG52dkpPQURGZVd3ZGNiSG1ZaVo5L0U4Qw==&b=bTFIRDg5dzdDck1iK0JFZElSQ0l4ZWtkZlBQMlBqc1VVeTBtTE95OS9ITndXZithTE5TNlA4eFNBdzRzeE1OUmJKWmxwdjV2dE5mZSs2Vngxbktmc2w1M00rR0VLbzB2MHdrUlY3SERVOUE9\">Practice<\/a><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n<p class=\"has-medium-font-size\"><strong>Here is an example of how to use the MID function:<\/strong><\/p>\n\n\n\n<p>Display the second to fifth letter of the entries of the cell range A1:A20 in the respective cell range B1:B20.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/plKlHjIDzEM?version=3&#038;rel=0&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>It returns a specific amount of characters from a string, starting at a specific position in the string.<\/p>\n","protected":false},"author":2,"featured_media":865,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[103,94],"class_list":["post-862","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-functions","tag-mid","tag-text-functions"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.test4u.eu\/excelpedia\/wp-content\/uploads\/2019\/04\/mid.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paRnIz-dU","_links":{"self":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/comments?post=862"}],"version-history":[{"count":0,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/862\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media\/865"}],"wp:attachment":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media?parent=862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/categories?post=862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/tags?post=862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}