{"id":870,"date":"2019-04-22T11:38:07","date_gmt":"2019-04-22T08:38:07","guid":{"rendered":"https:\/\/www.test4u.eu\/excelpedia\/?p=870"},"modified":"2019-04-22T11:38:12","modified_gmt":"2019-04-22T08:38:12","slug":"the-replace-function","status":"publish","type":"post","link":"https:\/\/www.test4u.eu\/excelpedia\/the-replace-function\/","title":{"rendered":"The REPLACE Function"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">It replaces part of a string, based on a start position and number of characters you specify, with a different string.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">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>REPLACE<\/strong><em>(<strong>old_text<\/strong><span><b>, start_num, num_chars, new_text<\/b><\/span><\/em>) <\/p><cite><span><b><strong>old_text<\/strong><\/b><\/span><strong>: <\/strong>The text in which we want to replace some characters.<br><strong>start_num<\/strong>: The starting position within the string of the <strong>old_text <\/strong>argument, from which the replacement will begin.  <br><strong>num_chars<\/strong>: The number of characters from the <strong>old_text <\/strong>argument, you want to replace.    <br><strong>new_text<\/strong>: The text that will replace the specified amount of characters in the <strong>old_text<\/strong>.   <\/cite><\/blockquote>\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 class=\"wp-block-paragraph\">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=c3VCOUlNOElTdzJsdklmei9DS3RmQXRjdDN2UDhiUDRidmtEcnhSV0tNMjBjTHhDSHFmVFdXb1hvK1VOZEVBVg==&b=MnNPYXJzeWY3RlpxR3Nnc2ViVDRVKzRzUnlhQ1dmTW1sS0I0YURpWWxydGJNbWI3VWhZbnJnUU5YVUpXZVFGMS84K0tEVEVwckExbm9YaGN5YkpydmVaVjA3VXBiSU5EL2RveWNZVHB0Ums9\">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 wp-block-paragraph\"><strong>Here is an example of how to use the REPLACE function:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the 3 characters after the comma in the text of the column A with the respective values of column B and display the results in column C. Use the proper functions.<\/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<iframe title=\"Use the REPLACE function to replace text in a cell with another text (Excel 2016)\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/_qYK7LEWn8o?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>It replaces part of a string, based on a start position and number of characters you specify, with a different string.<\/p>\n","protected":false},"author":2,"featured_media":871,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[105,94],"class_list":["post-870","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-functions","tag-replace","tag-text-functions"],"_links":{"self":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/870","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=870"}],"version-history":[{"count":0,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/870\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media\/871"}],"wp:attachment":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media?parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/categories?post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/tags?post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}