Pinterest Pixel

2 Easy Hacks to Convert XML to Excel

John Michaloudis
If you want to transfer large datasets from one system to another, it is essential to know how to convert XML to Excel in detail.

XML (or Extensible Markup Language) is a text-based formatting language that is just like HTML. It is used to store and transport data in a structured format. It is a great tool to transfer data without the loss of data integrity. It has custom tags that define different data elements. Whereas, Excel is a powerful spreadsheet program that is widely used for data organization, analysis, and visualization. It is a user-friendly program that provides various tools for handling data efficiently and generating meaningful insights.

XML is a language that is easily understood by machines and if you need to make any changes in the data it can be a bit challenging. So, it is crucial to convert XML to Excel in order to easily work with the data.

You can import data from an XML file saved in your system or from the web in Excel. This can be done using an extremely versatile tool called the Power Query. It accesses, cleans, and transforms all messy data and displays it in a way that Excel loves and can work with.

Click here to be blown away by the data transformation potential of Power Query in Excel!

In this article, we will be covering 2 easy and quick hacks to convert XML to Excel –

Let’s dive in!

First, you need to have Microsoft Office 2010 or above.  If you do not have this then you will need to upgrade to Office 365 using this link: https://products.office.com/en-us/home

Download the Excel Workbook below to follow along and understand how to XML to Excel –

download excel workbookXML-to-Excel.xlsx

 

XML file saved on your system 

If your XML file is saved on your system, you can easily import data from XML into Power Query.

2 Easy Hacks to Convert XML to Excel

Follow the steps below to convert XML to Excel –

STEP 1: Open a Blank Excel Workbook.

2 Easy Hacks to Convert XML to Excel

STEP 2: Go to the Data tab located at the top ribbon.

2 Easy Hacks to Convert XML to Excel

STEP 3: Go to Get Data > From File > From XML.

2 Easy Hacks to Convert XML to Excel

STEP 4: In the Import Data dialog box, browse and select the XML file and click Open.

2 Easy Hacks to Convert XML to Excel

STEP 5: Select the XML Data Source in the left panel. Here, we will click on “row”.

2 Easy Hacks to Convert XML to Excel

STEP 6: A preview will be shown, if it looks good click Load.

2 Easy Hacks to Convert XML to Excel

STEP 7: A new worksheet will be added with the XML data in it.

2 Easy Hacks to Convert XML to Excel

STEP 8: Press Ctrl + S to save the file.

You have successfully converted XML to Excel from a file saved in your system.

 

Using Web URL 

What if we have XML data on a webpage and we want to import it into Excel? Power Query can do that as well. Follow the steps below to know how –

STEP 1: Open a Blank Excel Workbook.

2 Easy Hacks to Convert XML to Excel

STEP 2: Go to the Data tab located at the top ribbon.

2 Easy Hacks to Convert XML to Excel

STEP 3: Select From Web.

2 Easy Hacks to Convert XML to Excel

STEP 4: In the From Web dialog box, enter the URL, and click OK.

2 Easy Hacks to Convert XML to Excel

STEP 5: In the Access Web Content, Click on Connect.

STEP 6: Select the XML Data Source in the left panel. Here, we will click on “row”.

2 Easy Hacks to Convert XML to Excel

STEP 7: A preview will be shown, if it looks good click Load.

2 Easy Hacks to Convert XML to Excel

STEP 8: A new worksheet will be added with the XML data in it.

2 Easy Hacks to Convert XML to Excel

STEP 9: Press Ctrl + S to save the file.

This will successfully convert XML to Excel from a web URL.

 

Bonus tip – Whenever data is updated in the XML file, the same will be reflected in the Excel file. You just need to right-click on the Excel table and select Refresh.

2 Easy Hacks to Convert XML to Excel

Power Query can easily extract data from XML files and convert them into Excel. The file can either be saved on your system or available on a webpage. In the first example, the data was downloaded into your system but in the second example, the data was extracted directly from the webpage.

If you like this Excel tip, please share it


Founder & Chief Inspirational Officer

at

John Michaloudis is a former accountant and finance analyst at General Electric, a Microsoft MVP since 2020, an Amazon #1 bestselling author of 4 Microsoft Excel books and teacher of Microsoft Excel & Office over at his flagship MyExcelOnline Academy Online Course.

See also  Excel Macro: Activate the Developer Tab

Star 30 Days - Full Access Star

One Dollar Trial

$1 Trial for 30 days!

Access for $1

Cancel Anytime

One Dollar Trial
  • Get FULL ACCESS to all our Excel & Office courses, bonuses, and support for just USD $1 today! Enjoy 30 days of learning and expert help.
  • You can CANCEL ANYTIME — no strings attached! Even if it’s on day 29, you won’t be charged again.
  • You'll get to keep all our downloadable Excel E-Books, Workbooks, Templates, and Cheat Sheets - yours to enjoy FOREVER!
  • Practice Workbooks
  • Certificates of Completion
  • 5 Amazing Bonuses
Satisfaction Guaranteed
Accepted paymend methods
Secure checkout

Get Video Training

Advance your Microsoft Excel & Office Skills with the MyExcelOnline Academy!

Dramatically Reduce Repetition, Stress, and Overtime!
Exponentially Increase Your Chances of a Promotion, Pay Raise or New Job!

Learn in as little as 5 minutes a day or on your schedule.

Learn More!

Share to...