How to Import and Refresh Exchange Rates in Excel using Power Query
Question details
The user needs to retrieve live exchange rate data into Excel and configure it to refresh automatically, specifically extracting values from websites like BBC Market Data.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking financial markets or automating currency conversions using live web data.
- Observed behavior
- Requires a structured method to pull specific exchange rate values from a web page, load them into a spreadsheet, and set up a recurring data refresh schedule.
Ensure you have a stable internet connection to retrieve live web data and verify that the target website permits data extraction without requiring specialized API authentication.
Import Exchange Rates Using Power Query from the Web
Extract specific currency exchange rates directly from websites like BBC Market Data using the 'From Web' feature in Power Query.
Power Query is the most robust tool for scraping and formatting data from HTML tables on web pages. It allows you to clean the imported data and set up automatic refresh schedules so your exchange rates are always up to date.
Open Excel, go to the 'Data' tab on the ribbon, and click 'From Web' in the Get & Transform Data group.
In the dialog box that appears, paste the URL of the exchange rate website (e.g., the specific BBC Market Data page) and click 'OK'.
The Navigator window will open, displaying the available elements from the webpage. Click through the 'Table' items on the left until you find the one containing the exchange rates, then click 'Transform Data'.
In the Power Query Editor, remove any unnecessary columns or rows. Once the data is clean, click 'Close & Load' in the top-left corner to import it into your worksheet.
To ensure the rates stay current, right-click anywhere in your new data table, select 'Table' > 'External Data Properties', and check the box for 'Refresh every X minutes' or 'Refresh data when opening the file'.

Use Excel's Built-in Currency Data Types
For users with supported Microsoft 365 versions, you can use the built-in Stocks or Currency data types to easily pull exchange rates without web scraping.
How to Import Web Data in WPS Spreadsheets
WPS Spreadsheets provides a straightforward 'Import External Data' feature, making it incredibly easy to pull exchange rate tables from financial websites directly into your workbook without complex configurations.
- 1. Navigate to Data Import: Open your workbook in WPS Spreadsheets and click on the 'Data' tab located on the top ribbon.
- 2. Select Import External Data: Click on 'Import Data' and select the 'Import External Data' option from the drop-down menu.
- 3. Enter the Website URL: In the web query dialog that appears, type or paste the URL of the exchange rate provider into the address bar and click 'Go'.
- 4. Select and Import the Table: Identify the data table containing the exchange rates on the loaded web page, check the small yellow box next to it, and click 'Import' to place the data into your sheet.

Frequently Asked Questions
Why is my Power Query web data not refreshing automatically?
To enable automatic refresh, you need to configure the connection properties. Right-click your query in the Queries & Connections pane, select 'Properties', and check the box for 'Refresh every X minutes' or 'Refresh data when opening the file'.
Can I import exchange rates without using Power Query?
Yes. In supported versions of Excel, you can use the built-in 'Currencies' data type found in the Data tab. Simply type a currency pair like 'EUR/USD', select it, and click 'Currencies' to fetch live data.
How do I fix the 'DataFormat.Error' when importing from a webpage?
This error typically occurs when the website's structure changes or the selected HTML table does not match the expected format. Open the Power Query Editor, review the 'Applied Steps' on the right, and ensure the columns are mapped to the correct data types (e.g., removing text characters from number columns).
Does WPS Office support importing data from web pages?
Yes, WPS Spreadsheets includes an 'Import External Data' feature found under the Data tab. It allows you to navigate to a specific webpage and select HTML tables to import directly into your cells, providing an excellent alternative for retrieving online exchange rates.




