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?

It’s very common nowadays to get data imported from a company’s accounting or sales system in the XML format.  If it’s inside a XML (extensible markup language) file, it’s very easy to import data from xml and right into Power Query!  

Let’s suppose you have this set of data from the xml file:

Import Data from XML Using Power Query or Get & Transform

DOWNLOAD EXCEL WORKBOOK AND SOURCE FILE

STEP 1:

Using Excel 2016 (screenshot below)

Go to Data > New Query > From File > From XML

Using Excel 2013 or Excel 2010

Go to Power Query > From File > From XML

Import Data from XML Using Power Query or Get & Transform

Select the xml file that contains the data.  Click Import.

Import Data from XML Using Power Query or Get & Transform

Select the XML Data Source.  A preview of the xml data will be shown.  If it looks good, press Edit.

Import Data from XML Using Power Query or Get & Transform

 

STEP 2: This will open up the Power Query Editor.  You can now perform your data manipulation here but we will keep the data as is.

Click Close & Load from the Home tab and this will open up a brand new worksheet in your Excel workbook with the imported table.

Import Data from XML Using Power Query or Get & Transform

You now have your new table from the xml file!

Import Data from XML Using Power Query or Get & Transform

Import Data from XML in Excel

 

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

Consolidate Multiple Excel Sheets Using Power Quer... Power Query is awesome!You will see why after viewing this tutorial.I get lots of queries from my blog readers asking me if there is a way to easily consolidate multiple Excel worksheets into one.With Power Query the answer is YES!If you have multiple Excel worksh...
Keep Duplicate Records 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 take is to keep duplicate records.We usually remove duplicate lines but if we need to keep and check what the duplicates are,...
Split First & Last Name Using Power Query There are times when you receive a data set of employee full names in one column and you want to separate the full name into first name and surname in separate columns.This is a common task and most people may refer to complex formulas to do this and waste lots of time in the...
Consolidate Multiple Excel Workbooks Using Power Q... One of the most sought after query from the millions of Excel users around the world is: How do I consolidate multiple Excel workbooks into one?  There are a couple of ways you can do this, using VBA or complex formulas but the learning curve is steep and out of reach...