How to Automatically Update Duplicate Excel Files in SharePoint and OneDrive
Question details
The user wants to automate the updating of duplicate Excel workbooks stored in SharePoint and OneDrive using Power Query to avoid repeated manual data entry and outdated file copies.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Managing large duplicate Excel files across cloud storage (SharePoint/OneDrive) and keeping them synced without manual intervention.
- Observed behavior
- Currently experiencing outdated copies of large files and high manual workload to update duplicate Excel files.
Ensure you have the exact file paths or Web URLs for your SharePoint and OneDrive workbooks, and verify that your account has the necessary access permissions to connect to these cloud directories.
Create a Centralized Workbook with Multiple Power Queries
This method keeps all queries in a single file for cleaner data management and easier merging of data models.
Keeping all your data connections in one centralized Excel file can simplify file management. You can create multiple queries pointing to your SharePoint or OneDrive files and then combine or merge the queries into a comprehensive data model within one workbook.
Open a new Microsoft Excel workbook and navigate to the 'Data' tab on the main ribbon.
Click 'Get Data', select 'From File' or 'From Online Services', and choose 'From SharePoint Folder' or input your OneDrive file path.
Load the multiple duplicate files into Power Query by repeating the connection process for each necessary data source.
Use the 'Append Queries' or 'Merge Queries' buttons within the Power Query Editor to consolidate the incoming data into your centralized sheets.

Use Separate Query Files Connected to a Single Source
This approach is best when you want to distribute the processing load across multiple files to avoid creating a single, sluggish workbook.
Discover WPS Office for Lightweight and Efficient Data Management
While complex Power Query setups in Microsoft Excel can lead to slow refresh times and heavy files, WPS Office offers a lightning-fast, highly compatible alternative for everyday spreadsheet tasks. It perfectly supports Microsoft Excel formats and provides a clean, intuitive interface for seamless data analysis without the bulk.
- 1. Download the software: Visit the official WPS website to download and install WPS Office for free.
- 2. Open WPS Spreadsheet: Launch the application and select the 'Spreadsheet' module from the home screen.
- 3. Edit your Excel files: Open your existing .xlsx files directly in WPS Office to enjoy fast and compatible data editing.

Frequently Asked Questions
Why is my Power Query refresh so slow when connecting to SharePoint?
Slow refresh times often occur when connecting to large files over a network or when processing many queries simultaneously. To improve speed, filter your data within the Power Query Editor before loading it into Excel, and remove any unnecessary columns or rows to minimize the data payload.
Can I connect Power Query to a OneDrive personal account?
Yes, you can connect to files in OneDrive. However, you must either use the local file path generated by the OneDrive sync client on your PC, or use the Web URL of the file via the 'From Web' data source option (often requiring you to change the end of the URL from '?web=1' to '?download=1').
Is it better to have many queries in one file or multiple files with fewer queries?
It depends on your workflow. A single file centralizes your data and makes merging easier, but can become slow to refresh if overloaded. Multiple files distribute the processing load but can be harder to manage and track across a team.
Will duplicate files update automatically in real-time when the SharePoint source changes?
No, they will not update instantly in real-time. You need to either manually click 'Refresh All' on the Data tab, or configure the workbook's Connection Properties to refresh the data automatically when opening the file or at specific time intervals (e.g., every 30 minutes).




