How to Import XML Data into Excel [Example]

Data is the bloodstream of any business entity. Businesses use different programs and formats to save the data depending on the business data storage requirements. You could have a payroll program powered by a database engine, you could have data in a CSV file or even from a website that you would like to analyse in Excel. This article shows you how you can achieve the above.

What is external data source?

External data is data that you link/import into excel from a source that resides outside excel.

Examples of external include the following

Website(XML data) external data source example

In this example, we will assume we are trading the Euro currency and would like to get the exchange rates from the European Central Bank web service. The currency exchange rate API link is http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml

Connecting Microsoft Excel to External Data Sources

  1. Enter http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml in the address
  2. Click on Go button, you will get the XML data preview
  3. Click on Import button when done

You will get the following options dialogue window

Connecting Microsoft Excel to External Data Sources

Connecting Microsoft Excel to External Data Sources

Let's take another example, this time you have local xml not in form of web link. You can download XML File below.

Download the XML File

Connecting Microsoft Excel to External Data Sources

Connecting Microsoft Excel to External Data Sources

You will get the options dialogue window as above example

Connecting Microsoft Excel to External Data Sources

Summary

Excel has powerful features that allow us to analyse numeric data and create visual reports such as charts. You can take advantage of external data importation to create your own custom reports that meet your business reporting requirements.

 

YOU MIGHT LIKE: