How to Automatically Update an Excel Workbook in OneDrive using Power Automate
Question details
The user needs to automate the process of downloading Excel workbook data, appending new rows to a predefined workbook in OneDrive, removing duplicates, filtering values, and deleting specific rows.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Automating routine data operations between multiple Excel workbooks stored in OneDrive without manual intervention.
- Observed behavior
- The user is looking for a comprehensive workflow to extract, clean, and transfer data seamlessly using an automated setup like Power Automate.
Ensure both the source and destination Excel workbooks are saved in OneDrive and that the data is formatted as an official Excel Table (Insert > Table), as Power Automate requires named tables to identify and modify rows.
Create an Automation Flow Using Power Automate
Use Microsoft Power Automate's built-in Excel Online (Business) connectors to automatically handle data transfer and manipulation between your OneDrive workbooks.
Microsoft Power Automate is the ideal tool for handling conditional logic, row additions, and cross-workbook data transfers. While basic actions are built-in, complex operations like deduplication or mimicking VLOOKUP require specific array operations or Office Scripts.
Navigate to Power Automate, create a new Cloud Flow, and select an appropriate trigger such as 'When a file is created' in OneDrive or 'When a new email arrives' with an attachment.
Add the 'List rows present in a table' action from the Excel Online (Business) connector, pointing it to your newly downloaded or updated source workbook.
Add an 'Apply to each' loop combined with the 'Add a row into a table' action to insert the extracted rows into your target destination table.
To check values and remove duplicates automatically, implement 'Filter array' actions with conditions to cross-reference data, or trigger an Office Script designed specifically to clean the table directly within Excel.

Perform Routine Operations Using Built-in Excel Tools
If setting up a complex Power Automate flow is difficult, you can handle these routine tasks efficiently using Excel's native data management features.
Try WPS Office for Your Spreadsheet Data Management
While cloud-based automation using Power Automate is unique to the Microsoft ecosystem, WPS Office stands as a powerful, free, and lightweight alternative for your daily spreadsheet processing. It offers profound compatibility with Excel formats and robust local automation features.
- 1. Download and install: Visit the official WPS Office website to download and install the free software suite on your device.
- 2. Open your workbooks: Launch WPS Spreadsheet and seamlessly open your existing .xlsx files directly without any formatting loss.
- 3. Manage and automate data: Utilize the intuitive 'Data' tab for instant duplicate removal, and leverage native VBA support to automate routine local operations.

Frequently Asked Questions
Can Power Automate update an Excel file if the data isn't in a Table format?
No. Power Automate strictly requires your data to be formatted as an official Excel Table (created via Insert > Table). It uses the defined Table boundaries to accurately identify, read, and append rows.
Is there a direct action to remove duplicates in Power Automate?
There is no single built-in 'Remove Duplicates' action for Excel in Power Automate. Users typically solve this by writing an Office Script to clean the Excel file and triggering that script via the flow, or by utilizing 'Filter Array' logic before pushing the data.
How do I automate VLOOKUP operations in Power Automate?
Instead of executing standard VLOOKUP formulas, Power Automate relies on listing the rows from both tables and using a 'Filter Array' action to match corresponding identifiers between the two datasets before processing the resulting data.
Can I trigger a flow strictly when an Excel attachment arrives via email?
Yes. You can use the 'When a new email arrives' trigger (via the Outlook or Office 365 connector), check the 'Has Attachment' setting, dynamically save the Excel file to OneDrive, and then extract the data from its tables.




