{"id":11026,"date":"2019-02-14T13:29:08","date_gmt":"2019-02-14T12:29:08","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=11026"},"modified":"2024-02-06T16:18:30","modified_gmt":"2024-02-06T15:18:30","slug":"extract-length-using-power-query-or-get-transform","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/extract-length-using-power-query-or-get-transform\/","title":{"rendered":"Extract Length Using Power Query or Get &#038; Transform"},"content":{"rendered":"<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/installing-power-query-excel-2010\/\" target=\"_blank\" rel=\"noopener noreferrer\">Power Query<\/a>\u00a0or Get &amp; Transform (In Excel 2016) lets you perform a series of steps to transform your Excel data. \u00a0One of the steps it allows you to take is to<b>\u00a0extract the length of text.<\/b><\/p>\n<p>For our example, let us get the names that have <strong>at least 12 characters<\/strong>!<\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/ojqClHZTokI?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\/2019\/01\/Extract-Length.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length.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\">Extract-Length.xlsx<\/span><\/a><\/p>\n<p class=\"line-two\">\n<\/div>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1<\/strong>:<\/span> Select\u00a0your data and turn it into an Excel Table by pressing the <a class=\"wpil_keyword_link\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/333-excel-shortcuts-for-windows-and-mac\/\" target=\"_blank\" rel=\"noopener\" title=\"shortcut\" data-wpil-keyword-link=\"linked\">shortcut<\/a> <strong>Ctrl + T <\/strong>or by going to<strong> Insert &gt; Table<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Extract Length Using Power Query or Get &amp; Transform\"  class=\"aligncenter size-full wp-image-11029\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-01.png\" alt=\"Extract Length Using Power Query or Get &amp; Transform\" width=\"542\" height=\"586\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-01.png 542w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-01-277x300.png 277w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 2<\/strong>:<\/span> Go to <strong><em>Data &gt; Get &amp; Transform &gt; From Table (Excel 2016) <\/em><\/strong><em>or<\/em><strong><em> Power Query &gt; Excel Data &gt; From Table (Excel 2013 &amp; 2010)<\/em><\/strong><\/p>\n<p><strong>Excel 2016:<\/strong><\/p>\n<p><strong><em>\u00a0<a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/11\/Fill-Down-04.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-5550\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/11\/Fill-Down-04.png\" alt=\"Keep Duplicates Using Power Query or Get &amp; Transform\" width=\"618\" height=\"132\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/11\/Fill-Down-04.png 618w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/11\/Fill-Down-04-300x64.png 300w\" sizes=\"(max-width: 618px) 100vw, 618px\" title=\"\"><\/a><\/em><\/strong><\/p>\n<p><strong>Excel 2013 &amp; 2010:<\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/06\/from-table.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3239\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/06\/from-table.png\" alt=\"Keep Duplicates Using Power Query or Get &amp; Transform\" width=\"777\" height=\"129\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/06\/from-table.png 777w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/06\/from-table-300x50.png 300w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/06\/from-table-768x128.png 768w\" sizes=\"(max-width: 777px) 100vw, 777px\" title=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 3: <\/strong><\/span>This will open up the Power Query Editor.<\/p>\n<p>Make sure the Name column is selected. Go to <em><strong>Add Column &gt; From Text&gt; Extract &gt; Length<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Extract Length Using Power Query or Get &amp; Transform\"  class=\"aligncenter size-full wp-image-11037\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-02.png\" alt=\"Extract Length Using Power Query or Get &amp; Transform\" width=\"605\" height=\"398\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-02.png 605w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-02-300x197.png 300w\" sizes=\"(max-width: 605px) 100vw, 605px\" \/><\/p>\n<p>Now we can get the names that are at least 12 characters long! Click on the <strong>Arrow<\/strong> beside the\u00a0<strong>Length Column.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Extract Length Using Power Query or Get &amp; Transform\"  class=\"aligncenter size-full wp-image-11030\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-03.png\" alt=\"Extract Length Using Power Query or Get &amp; Transform\" width=\"383\" height=\"251\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-03.png 383w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-03-300x197.png 300w\" sizes=\"(max-width: 383px) 100vw, 383px\" \/><\/p>\n<p>Go to\u00a0<em><strong>Number Filters &gt; Greater Than Or Equal To<\/strong><\/em><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Extract Length Using Power Query or Get &amp; Transform\"  class=\"aligncenter size-full wp-image-11031\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-04.png\" alt=\"Extract Length Using Power Query or Get &amp; Transform\" width=\"589\" height=\"399\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-04.png 589w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-04-300x203.png 300w\" sizes=\"(max-width: 589px) 100vw, 589px\" \/><\/p>\n<p>Type in <strong>12. Click OK.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Extract Length Using Power Query or Get &amp; Transform\"  class=\"aligncenter size-full wp-image-11032\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-05.png\" alt=\"Extract Length Using Power Query or Get &amp; Transform\" width=\"698\" height=\"275\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-05.png 698w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-05-300x118.png 300w\" sizes=\"(max-width: 698px) 100vw, 698px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"color: #ff0000;\">STEP 4:<\/span> <\/strong>Click <strong>Close &amp; Load<\/strong> from the <strong>Home<\/strong> tab and this will <strong>open up a brand new worksheet<\/strong> in your Excel workbook with the filtered records!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Extract Length Using Power Query or Get &amp; Transform\"  class=\"aligncenter size-full wp-image-11033\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-06.png\" alt=\"Extract Length Using Power Query or Get &amp; Transform\" width=\"432\" height=\"315\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-06.png 432w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-06-300x219.png 300w\" sizes=\"(max-width: 432px) 100vw, 432px\" \/><\/p>\n<p>You now have your new table with names at least 12 characters long!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Extract Length Using Power Query or Get &amp; Transform\"  class=\"aligncenter size-full wp-image-11034\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-07.png\" alt=\"Extract Length Using Power Query or Get &amp; Transform\" width=\"331\" height=\"225\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-07.png 331w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2019\/01\/Extract-Length-07-300x204.png 300w\" sizes=\"(max-width: 331px) 100vw, 331px\" \/><\/p>\n<p><span style=\"color: #0000ff;\"><strong>How to Extract Length in Excel Using Power Query<\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/100-39.html\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2017\/07\/530x300.jpg\" alt=\"Free Excel Macros &amp; VBA Webinar Training\" width=\"530\" height=\"300\" title=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power Query\u00a0or Get &amp; Transform (In Excel 2016) lets you perform a series of steps to transform your Excel data. \u00a0One of the steps it allows you to take is to\u00a0extract the length of text. For our example, let us get the names that have at least 12 characters! \ufeff Download excel workbookExtract-Length.xlsx STEP 1: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17918,"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":[120,121],"tags":[245,234,117],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/11026"}],"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=11026"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/11026\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17918"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=11026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=11026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=11026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}