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

Pinterest

Share on Facebook

Facebook

Tweet about this on Twitter

Twitter

Share on LinkedIn

Linkedin

Share on Google+

Google+

Related Posts

Install Power Query With Excel 2013 Power Query is a new add-in that was introduced in Excel 2013 by Microsoft and was that popular that they made it backward compatible with Excel 2010. Read the tutorial on how to install Power Query in Excel 2010 here So what is Power Query? Well you know when you get data f...
Create Index Columns Using Power Query Power Query lets you perform a series of steps to transform your Excel data. One of the most common steps I do, is I want to add an index column that serves as a row counter of my data. There is the alternative method of using the ROW formula in Excel. However if we simply ...
Use An External Data Source To Import Data Into An... When creating an Excel Pivot Table, what happens if your data source is in another location? Would you have to copy your data into the same spreadsheet? Well, NO!  You can simply use the External Data Sources feature in your Pivot Table and Excel will magically import the d...
Transpose 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 transpose data very easily. Transposing a data table is basically rotating your data from rows to columns, or from columns to rows. To further explain thi...