Skip to main content

Notifications

Community site session details

Community site session details

Session Id : nlaUEL6d3wXEMjmbnCmke3
Power Automate - Building Flows
Answered

Append data from saved excel into other pre-existing excel file

Like (0) ShareShare
ReportReport
Posted on 20 Jan 2021 22:48:02 by 29

Hi everyone - I'm very new to Power Automate so hopefully this isn't a silly question.  I have a set of 4 emails that get sent to my inbox every day, each with an Excel file attachment.  I have currently implemented a flow that saves each of these Excel files to my OneDrive folder.  From this point, I'd like to take the data in each of the 4 Excel files and append that data into the 4 corresponding sheets of another, pre-existing Excel file (columns are the same between the emailed Excel and pre-existing Excel).  Is this possible?  (Currently I do this as a completely manual process, i.e. I open one Excel file from my email, then copy/paste the rows from that file into one of the four tabs that corresponds to the data in my pre-existing Excel file).

 

Thanks!

Alison

  • manuelwilhelm Profile Picture
    2 on 06 Mar 2024 at 08:04:20
    Re: Append data from saved excel into other pre-existing excel file

    Hi, 

    I tried setting up this Flow, but cant complete it. 
    The input columns for the respective columns in the master file are not given as dynamic content to me (probably since at the time I set up the script, the New excel Sheet with the new data does not exist yet).

    manuelwilhelm_0-1709709765953.png

    Do you have any idea on what I'm doing wrong?



    Kind Regards
    Manuel

  • AJM001 Profile Picture
    6 on 02 Jun 2023 at 19:55:47
    Re: Append data from saved excel into other pre-existing excel file

    Hi Serbay,

     

    Did you find a better way to append to an excel file?

     

     

  • Community Power Platform Member Profile Picture
    on 15 Jun 2022 at 05:00:15
    Re: Append data from saved excel into other pre-existing excel file

    Hi,

    What if the exported file has no table format. it is simply an excel sheet that needs to be appended?

  • alisonmeininger Profile Picture
    29 on 26 Jan 2021 at 15:34:17
    Re: Append data from saved excel into other pre-existing excel file

    Thank you so much for the very detailed response!  I will try out this solution and let you know if it works.  Thanks again!

  • Serbay Profile Picture
    213 on 23 Jan 2021 at 13:22:41
    Re: Append data from saved excel into other pre-existing excel file

    Hi,

    Is there any other way to merge data or add data from one workbook to another? Because in the case of huge amount of data, this method takes hours to be completed.

  • Verified answer
    v-yiwenxie-msft Profile Picture
    Microsoft Employee on 21 Jan 2021 at 07:00:59
    Re: Append data from saved excel into other pre-existing excel file

    Hi @alisonmeininger 

     

    You need 2 flows to meet your need.

    The first flow is ,as you implemented, to save each of the emailed Excel files to your OneDrive folder.

     

    The second flow is to append emailed Excel data into the 4 corresponding sheets of another pre-existing Excel file.

     

    And to match the emailed Excel data with the columns in another pre-existing Excel file, there is an easier way to check whether they are matched---just ensure the table names are the same.

    You can edit table name by selecting the table, choosing ‘Table Design’ and then editing the table name:

    1.21-8.PNG

    I’ve create the second flow as below:

     

    First, if a file is created in a specific folder in OneDrive, get file metadata and check if the file is an excel file.

    If yes, get tables in the excel file and add an ‘apply to each’ action.

    If no, do nothing.

    1.21-1.PNG

     

    For the ‘apply to each’ action:

    1.21-2.PNG

     

    Add a ‘switch’ action:

    The switch action is used to find matched case. And if there is a matched case, then append the emailed excel data into pre-existing excel file.

    There are four cases and an default one.

    1.21-3.PNG

     

    For each case in ‘switch’ action:

    1.21-4.png1.21-5.PNG1.21-6.PNG1.21-7.PNG

     

    Best Regards,
    Community Support Team _ Kira Xie
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,700 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard