Power Query lets you perform a series of steps to transform your messy Excel data.

One of the most common steps I do, is  to clean my data and remove rows that have erroneous data, like this:

remove-rows-with-errors-01

Thankfully Power Query has an option that allows us to remove rows with errors!

DOWNLOAD EXCEL WORKBOOK

 

Let’s go through the steps in detail:

STEP 1: Our sample data contains the Sales numbers for each month. However you can see that there are some months (4 of them) that have invalid data. We want to remove these rows.

Go to Data > Get & Transform > From Table (Excel 2016) or Power Query > Excel Data > From Table (Excel 2013 & 2010)

Excel 2016:

remove-rows-with-errors-02

Excel 2013 & 2010:

from table

 

STEP 2: This will open up the Power Query Editor.

remove-rows-with-errors-03

 

Within here you need to click the Table icon on the upper left hand corner of the table.

Then select Remove Errors.

remove-rows-with-errors-04

 

STEP 3: Now all of the rows with errors will be removed from the table.

remove-rows-with-errors-05

 

STEP 4: Click Close & Load from the Home tab and this will open up a brand new worksheet in your Excel workbook with the new data.

remove-rows-with-errors-06

 

You now have your new Excel table without any erroneous rows!

remove-rows-with-errors-07

remove-rows-with-errors

HELPFUL RESOURCE:

728x90

If you like this Excel tip, please share itEmail this to someone

email

Pin on Pinterest

Share on Facebook

Tweet about this on Twitter

Share on LinkedIn

Share on Google+

Related Posts

Import Data from Text Using Power Query or Get �... Power Query or Get & Transform (In Excel 2016) lets you perform a series of steps to transform your Excel data.But what if your data source is not in your Excel spreadsheet?If it's inside a text file, it's very easy to import data from text and right into Power Query!...
Use First Row as Headers Using Power Query or Get ... Power Query or Get & Transform (In Excel 2016) lets you perform a series of steps to transform your Excel data.One of the steps it allows you to do is to use the first row as headers.Let's suppose you have this set of data below.  You can see that the headers are not ...
Group Rows and Get Counts Using Power Query Power Query lets you perform a series of steps to transform your Excel data.One of the steps it allows you to take is to group rows and get the counts of each group very easily.DOWNLOAD EXCEL WORKBOOKLet’s go through the steps in detail: STEP 1: Select yo...
Replicating Excel’s LEFT Function with M in ... Power Query lets you perform a series of steps to transform your Excel data. There are times when we want to do things that are not built in the user interface. This is possible with Power Query's programming language, which is M.Unfortunately not all of Excel's formulas can ...