{"id":4856,"date":"2016-10-26T16:05:28","date_gmt":"2016-10-26T14:05:28","guid":{"rendered":"https:\/\/www.myexcelonline.com\/?p=4856"},"modified":"2024-02-06T16:09:02","modified_gmt":"2024-02-06T15:09:02","slug":"remove-rows-with-errors-using-power-query","status":"publish","type":"post","link":"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/remove-rows-with-errors-using-power-query\/","title":{"rendered":"Remove Rows With Errors Using Power Query"},"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> lets you perform a series of steps to transform your messy Excel data.<\/p>\n<p>One of the most common steps I do, is \u00a0to <strong>clean my data and remove rows that have erroneous data,<\/strong> like this:<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-01.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Remove Rows With Errors Using Power Query\"  class=\"alignnone size-full wp-image-4859\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-01.png\" alt=\"Remove Rows With Errors Using Power Query\" width=\"408\" height=\"332\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-01.png 408w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-01-300x244.png 300w\" sizes=\"(max-width: 408px) 100vw, 408px\" \/><\/a><\/p>\n<p>Thankfully <a class=\"wpil_keyword_link\" href=\"https:\/\/www.myexcelonline.com\/meo-staging\/blog\/50-things-you-can-do-with-excel-power-query\/\" target=\"_blank\" rel=\"noopener\" title=\"Power Query\" data-wpil-keyword-link=\"linked\">Power Query<\/a> has an option that allows us\u00a0to <strong>remove rows with errors<\/strong>!<\/p>\n<div class=\"after-post-box\">\n<p><iframe src=\"https:\/\/www.youtube.com\/embed\/-MkNy7a9tU4?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\/10\/Remove-Rows-with-Errors-.xlsx\" target=\"_blank\" rel=\"noopener noreferrer\" data-leadbox=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-.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\">Remove-Rows-with-Errors-.xlsx<\/span><\/a><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>Let\u2019s go through the steps in detail:<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 1<\/strong>:<\/span>\u00a0Our sample data\u00a0contains the Sales numbers for\u00a0each month. However you can see that there are some months (4 of them) that have invalid data. We want to remove these rows.<\/p>\n<p>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><span style=\"color: #0000ff;\"><strong>Excel 2016:<\/strong><\/span><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-02.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Remove Rows With Errors Using Power Query\"  class=\"alignnone size-full wp-image-4860\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-02.png\" alt=\"Remove Rows With Errors Using Power Query\" width=\"672\" height=\"542\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-02.png 672w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-02-300x242.png 300w\" sizes=\"(max-width: 672px) 100vw, 672px\" \/><\/a><\/p>\n<p><span style=\"color: #0000ff;\"><strong>Excel 2013 &amp; 2010:<\/strong><\/span><\/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=\"from table\" 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><strong><span style=\"color: #ff0000;\">STEP 2:<\/span> <\/strong>This will open up the Power Query Editor.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-03.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Remove Rows With Errors Using Power Query\"  class=\"alignnone size-full wp-image-4861\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-03.png\" alt=\"Remove Rows With Errors Using Power Query\" width=\"268\" height=\"297\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Within here you need to click the <strong>Table icon<\/strong> on the upper left hand corner of the table.<\/p>\n<p>Then\u00a0select\u00a0<strong><em>Remove Errors.<\/em><\/strong><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-04.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Remove Rows With Errors Using Power Query\"  class=\"alignnone size-full wp-image-4862\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-04.png\" alt=\"Remove Rows With Errors Using Power Query\" width=\"540\" height=\"629\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-04.png 540w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-04-258x300.png 258w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong style=\"line-height: 1.5;\"><span style=\"color: #ff0000;\">STEP 3:<\/span> <\/strong><span style=\"line-height: 1.5;\">Now all of the <strong>rows with errors will be removed<\/strong> from the table<strong>.<\/strong><\/span><\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-05.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Remove Rows With Errors Using Power Query\"  class=\"alignnone size-full wp-image-4863\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-05.png\" alt=\"Remove Rows With Errors Using Power Query\" width=\"262\" height=\"196\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>STEP 4: <\/strong><\/span>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 new\u00a0data.<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-06.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Remove Rows With Errors Using Power Query\"  class=\"alignnone size-full wp-image-4864\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-06.png\" alt=\"Remove Rows With Errors Using Power Query\" width=\"462\" height=\"348\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-06.png 462w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-06-300x226.png 300w\" sizes=\"(max-width: 462px) 100vw, 462px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>You now have your new Excel table without any erroneous rows!<\/p>\n<p><a href=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-07.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" title=\"Remove Rows With Errors Using Power Query\"  class=\"alignnone size-full wp-image-4865\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-07.png\" alt=\"Remove Rows With Errors Using Power Query\" width=\"449\" height=\"432\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-07.png 449w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/10\/Remove-Rows-with-Errors-07-300x289.png 300w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/myexcelonline.thinkific.com\/courses\/the-ultimate-excel-power-query-data-cleansing-online-course\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><img loading=\"lazy\" decoding=\"async\" title=\"Add Comma in Excel between Names with SUBSTITUTE Formula\"  class=\"alignnone wp-image-4486 size-full\" src=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/728x90.jpg\" alt=\"Add Comma in Excel between Names with SUBSTITUTE Formula\" width=\"728\" height=\"90\" srcset=\"https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/728x90.jpg 728w, https:\/\/www.myexcelonline.com\/meo-staging\/wp-content\/uploads\/2016\/09\/728x90-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power Query lets you perform a series of steps to transform your messy Excel data. One of the most common steps I do, is \u00a0to clean my data and remove rows that have erroneous data, like this: Thankfully Power Query has an option that allows us\u00a0to remove rows with errors! \ufeff download excel workbook Remove-Rows-with-Errors-.xlsx [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":17559,"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":[121,120],"tags":[117,193],"acf":[],"_links":{"self":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/4856"}],"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=4856"}],"version-history":[{"count":0,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/posts\/4856\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media\/17559"}],"wp:attachment":[{"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/media?parent=4856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/categories?post=4856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myexcelonline.com\/meo-staging\/wp-json\/wp\/v2\/tags?post=4856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}