cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SteveS1
Regular Visitor

Merge Excel Files

HI

Really simple question, but driving me nuts, can't find the answer anywhere. 

 

I have two excel files, different names lets say 1.xlsx and 2.xlsx

Both have one sheet and one table, named table1 in both cases. 

 

When 1.xlsx is updated, I want flow to append all rows except header row to the file 2.xlsx.

 

Help !!!

2 REPLIES 2
RezaDorrani
Dual Super User
Dual Super User

Hi @SteveS1 

 

You can trigger your Flow on updated of file 1 and then loop through all rows and add the rows to file 2

 

Check this video on using Excel with Flow

https://www.youtube.com/watch?v=uDcdomNwuHg

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

v-litu-msft
Community Support
Community Support

Hi @SteveS1,

 

Currently, there is no trigger about When an Excel file update in Excel connector. So if you want to update file 2.xslx once 1.xlsx is updated, it is hard to do.

 

But, could you tell me whether the file content 1.xlsx is equal to file 2.xslx?

If so, you can do these operations:

1. Create a Recurrence trigger runs every hour;

2. Get the list rows present in a table of file 2.xlsx;

3. Delete all rows of file 2.xlsx;

4. Get the list rows present in a table of file 1.xlsx;

5. Update file 2.xlsx rows from file 1.xlsx by using Apply to each.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,212)