logo
search
Power Query Problems

How to Import Website Data into Excel and Refresh It

WPS EditorWPS Editor Oct 10, 2026 869 views

Question details

The user wants to extract table data directly from a webpage into an Excel spreadsheet and configure it to update either manually or automatically.

How to Import Website Data into Excel and Refresh It
Product
Microsoft Excel
Device & OS
not provided
Scenario
Extracting live data or tables from web sources into a spreadsheet for analysis and tracking.
Observed behavior
Setting up a dynamic web query that updates spreadsheet data when the source website content changes.
Before you start

Ensure you have a stable internet connection and verify that the target website's structure is stable and permits data extraction.

Solution 1Recommended

Import Web Tables and Configure Data Refresh in Excel

Use Excel's Get Data feature to scrape tables from web pages and set up customized refresh triggers to keep your data current.

Excel Power Query simplifies the process of bringing live web data into your workbook without manual copying and pasting. It creates a direct connection to the URL, allowing the table to be updated at any time.

1
Open the Get Data menu

Go to the Data tab on the Excel ribbon, click on Get Data, select From Other Sources, and choose From Web.

2
Enter the website URL

In the dialog box that appears, paste the full URL of the website containing the data table you want to import and click OK.

3
Select and load the table

The Navigator window will appear. Select the specific table you need from the left panel to preview it, then click Load to import it into your worksheet.

4
Refresh data manually

To update the data manually at any time, navigate to the Data tab and click Refresh All.

5
Configure automatic refresh

Go to Data, then click Queries & Connections. Right-click your web query in the side pane, select Properties, and under the Usage tab, check Refresh every [x] minutes or Refresh data when opening the file.

Import Web Tables and Configure Data Refresh in Excel
Page Structure Changes: If the website administrator changes the page layout or table structure, your web query may break and will require re-configuration in the Power Query editor.
Free Spreadsheet Software

Import Web Data Seamlessly with WPS Spreadsheets

WPS Spreadsheets offers a lightweight and free alternative for importing web data directly into your workbook, fully compatible with standard Excel file formats and web query functions.

  1. 1. Open WPS Spreadsheets: Launch WPS Office and open a new or existing spreadsheet file.
  2. 2. Access the web query tool: Navigate to the Data tab on the top ribbon, click on Import Data, and select New Web Query.
  3. 3. Extract and import: Enter your target URL in the address bar of the dialog, select the specific data block or table you want to capture, and click Import to load it into your sheet.
Easily extract data tables and lists directly from web pages.Fully compatible with Microsoft Excel (.xlsx) file formats.Lightweight software with a familiar, user-friendly interface.Completely free core spreadsheet functions and features.
microsoft office alternative - wps office

Frequently Asked Questions

Why did my Excel web query stop working or return an error?

This usually happens if the source website changes its layout, introduces a login requirement, or alters the HTML table structure. You may need to edit the query in Power Query to match the new structure or find a new source.

Can I import data from a website that requires a login?

Basic web queries struggle with dynamic login pages. For authenticated sites, you may need to enter your credentials in the Data Source Settings within Power Query or utilize official API connections if the website provides them.

Will refreshing the web query overwrite my custom formatting in Excel?

By default, Excel may overwrite your custom formatting when the data is refreshed. To prevent this, right-click any cell in the imported data table, select Data Range Properties, and ensure that Preserve cell formatting is checked.

How do I clean or edit the web data before it loads into my Excel sheet?

Instead of clicking Load in the Navigator window, click Transform Data. This opens the Power Query Editor, allowing you to remove columns, filter rows, and format the data before it officially imports into your Excel worksheet.