How to Automatically Append Daily Web Data to an Excel Table Using Power Query
Question details
The user wants to import daily internet data into an Excel table, appending new rows while preserving historical data and removing duplicates.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Tracking daily data updates (like diesel prices) from a web source without overwriting past records.
- Observed behavior
- Need a scalable method to combine existing worksheet data with newly imported web data seamlessly on a daily basis.
Ensure you have a reliable URL for the web data source and that your existing historical data is formatted as an official Excel Table (Ctrl+T) with matching column headers.
Use Power Query to Append New Web Data to Historical Records
This method involves loading both your existing Excel table and the live web data into Power Query, appending them, and filtering out duplicates to maintain a clean historical record.
Power Query is the ideal tool for this task because it can automate the extraction, transformation, and loading (ETL) of data. By establishing two queries—one for your local history and one for the web data—you can merge them dynamically.
Select your historical Excel table, go to the 'Data' tab, and click 'From Table/Range'. Once the Power Query Editor opens, click 'Close & Load To...' and choose 'Only Create Connection'.
Go to the 'Data' tab, click 'From Web', and enter the URL containing your daily data (e.g., daily diesel prices). Select the relevant table from the Navigator window and click 'Transform Data'.
In the Power Query Editor, navigate to 'Home' > 'Append Queries' > 'Append Queries as New'. Select your historical data connection as the Primary table, and the new web data query as the Secondary table.
In the newly appended query, select the Date column (or another unique identifier column). Right-click the column header and choose 'Remove Duplicates'. Then, sort the column in descending order to keep the newest data at the top.
Click 'Close & Load To...' and select 'Table' to output the combined, deduplicated data into a new Excel worksheet.

Try WPS Office for Efficient Data Management and Spreadsheet Tasks
While advanced Power Query web scraping features are specific to Microsoft Excel, WPS Office provides a lightweight, highly compatible, and completely free suite for handling large datasets, external data imports, and daily spreadsheet tracking.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
- 2. Open WPS Spreadsheet: Launch the application and open your existing .xlsx file to continue managing your daily records.
- 3. Manage External Data: Use the 'Data' tab to import external files, text, or CSVs, utilizing built-in tools to remove duplicates and organize your historical data.

Frequently Asked Questions
Can I automate the Power Query refresh when I open the workbook?
Yes. In Excel, go to Data > Queries & Connections, right-click your final appended query, select 'Properties', and check the box labeled 'Refresh data when opening the file'.
Why are my duplicates not being removed properly in Power Query?
Duplicates might remain if there are subtle differences in the data, such as hidden spaces or distinct time stamps within the date column. Ensure you trim the text or change the data type to strictly 'Date' (excluding time) before applying the 'Remove Duplicates' step.
Will the newly appended data overwrite my historical manual corrections?
If you manually edit the final output table generated by Power Query, those edits will be overwritten upon the next refresh. To preserve manual changes, you must apply them directly in the original source historical table before refreshing the query.




