{"id":4179,"date":"2016-08-22T23:33:58","date_gmt":"2016-08-22T21:33:58","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=4179"},"modified":"2023-11-30T21:20:30","modified_gmt":"2023-11-30T20:20:30","slug":"extracting-data-with-excels-right-formula","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/extracting-data-with-excels-right-formula\/","title":{"rendered":"Extracting Data with Excel&#8217;s RIGHT Formula"},"content":{"rendered":"<p><em><strong>What does it do?<\/strong><\/em><\/p>\n<p>It returns the last\u00a0character or characters in a text string, based on the number of characters you specify.<\/p>\n<p><em><strong>Formula breakdown:<\/strong><\/em><\/p>\n<p>=RIGHT(<span style=\"color: #ff0000;\"><span style=\"color: #339966;\"><span style=\"color: #0000ff;\">text<\/span>,<\/span>\u00a0[num_chars]<\/span>)<\/p>\n<p><em><strong>What it means:<\/strong><\/em><\/p>\n<p>=RIGHT(<span style=\"color: #ff0000;\"><span style=\"color: #339966;\"><span style=\"color: #0000ff;\">look in this cell<\/span>,<\/span>\u00a0extract X characters<\/span>)<\/p>\n<hr \/>\n<p>There are times when you will need to extract the last\u00a0few characters of text within a cell, e.g. From a serial number, part number, name, address\u00a0etc.<\/p>\n<p>The <b>RIGHT\u00a0<\/b>formula in Excel can help you parse and extract the needed text easily.<\/p>\n<p>In our example below, we have an address which has a zip code at the end (the zip code is fixed at 5 characters long)\u00a0and we want to extract all\u00a0of the zip codes in our address list.<\/p>\n<p>I explain how you can do this and please\u00a0go to the bottom of the page to see the animated gif tutorial:<\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/eqESS_fyQ5Q?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\/2016\/08\/Right.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right.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\">Right.xlsx<\/span><\/a><\/p>\n<\/div>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1:<\/strong> <\/span>We need to <strong>enter the <em>Right\u00a0<\/em>function <\/strong>next to the cell that we want to extract the data from:<\/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\/extracting-data-with-excels-right-formula\/#RIGHT\" title=\"=RIGHT\">=RIGHT<\/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\/extracting-data-with-excels-right-formula\/#text\" title=\"text\">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\/extracting-data-with-excels-right-formula\/#num_chars\" title=\"[num_chars]\">[num_chars]<\/a><\/li><\/ul><\/nav><\/div>\n<h2 style=\"text-align: center;\"><span class=\"ez-toc-section\" id=\"RIGHT\"><\/span><span style=\"color: #0000ff;\">=RIGHT<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2:<\/strong><\/span>\u00a0The Right\u00a0arguments:<\/p>\n<h2><span class=\"ez-toc-section\" id=\"text\"><\/span><em><strong><span style=\"color: #0000ff;\">text<\/span><\/strong><\/em><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Which text do we want to\u00a0extract the last\u00a0X characters from?<\/strong><\/p>\n<p><em>Reference the cell that contains the text or value:<\/em><\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #000000;\">=RIGHT<\/span><span style=\"color: #0000ff;\">(C9<\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-01.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Extracting Data with Excel&#039;s RIGHT Formula\"  class=\"alignnone size-full wp-image-4184\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-01.png\" alt=\"Extracting Data with Excel&#039;s RIGHT Formula\" width=\"492\" height=\"213\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-01.png 492w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-01-300x130.png 300w\" sizes=\"(max-width: 492px) 100vw, 492px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"num_chars\"><\/span><span style=\"color: #ff0000;\">[num_chars]<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>How many characters from the right do we want to extract from cell C9?<\/strong><\/p>\n<p><em>Enter a positive\u00a0number only:<\/em><\/p>\n<h2 style=\"text-align: center;\"><span style=\"color: #000000;\">=RIGHT<\/span><span style=\"color: #0000ff;\"><span style=\"color: #000000;\">(C9,<\/span>\u00a05<span style=\"color: #000000;\">)<\/span><\/span><\/h2>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-02.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Extracting Data with Excel&#039;s RIGHT Formula\"  class=\"alignnone size-full wp-image-4185\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-02.png\" alt=\"Extracting Data with Excel&#039;s RIGHT Formula\" width=\"485\" height=\"214\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-02.png 485w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-02-300x132.png 300w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 3:<\/strong> <\/span>Do the same for the rest of the cells by dragging the <b>RIGHT\u00a0<\/b>formula all the way down using the left mouse button.<\/p>\n<p>Notice all of the last 5\u00a0characters in each text are now extracted:<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-03.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Extracting Data with Excel&#039;s RIGHT Formula\"  class=\"alignnone size-full wp-image-4186\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-03.png\" alt=\"Extracting Data with Excel&#039;s RIGHT Formula\" width=\"485\" height=\"211\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-03.png 485w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/08\/Right-03-300x131.png 300w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What does it do? It returns the last\u00a0character or characters in a text string, based on the number of characters you specify. Formula breakdown: =RIGHT(text,\u00a0[num_chars]) What it means: =RIGHT(look in this cell,\u00a0extract X characters) There are times when you will need to extract the last\u00a0few characters of text within a cell, e.g. From a serial [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17592,"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":[3,305,14],"tags":[142,168,70],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/4179"}],"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=4179"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/4179\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17592"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=4179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=4179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=4179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}