web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / List rows from multipl...
Power Automate
Answered

List rows from multiple excel files, get the values and copy rows to master excel file.

(0) ShareShare
ReportReport
Posted on by 5

What is the easiest way fo list rows from more than one excel files , get values and update master excel file.

We have excel1, excel2 and MasterExcel (but in the real situation we will have 20 or more excel files)

 

Picture 1 is standard way but it is to complicated if we have 20 or more files.

 

Picture1.png

At the next picture i have tried little less complex solution but i have got an error. It seem that it isnt posible to have multiple values at one place in Aply to each step

Picture2.png

Categories:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at

    Hi @BrankoJ,

     

    According to your description, I create a Flow as below, you could follow it to structure your Flow to approach that:

    1. First of all, you should store these child excel files into a separate folder that only contains these child excel files, and master Excel store in another folder.

    2. Use Get files action of SharePoint connector to get these child Excel files identifiers;

    3. Then Create Apply to each 1 to loop these files;

    4. Use Get tables to get each file's tables to get Excel table name;

    5. Create Apply to each 2 to loop these tables;

    6. After we get Excel file identifer and table name, we could use List rows present in a table action to get rows from a Excel table;

    7. Then create Apply to each 3 to loop these rows and add these rows into master Excel table;

    8. After all loops, these rows in child Excel files will be appended into master file.Screenshot 2021-03-18 141419.jpg

     

    Screenshot 2021-03-18 141509.jpg

     

    Screenshot 2021-03-18 141525.jpg

     

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

  • BrankoJ Profile Picture
    5 on at

    Thank you. This is very handy  solution in situation where all child excel files are saved in only one folder. In our case we have child files saved in diferent folders (diferent libraires , diferent users). File name is the same and table name is the same but folder path is different. For example:

     

    /HUB/EmployeeJhon/ChildExcel.xlsx
    /HUB/EmployeePeter/ChildExcel.xlsx
    /HUB/EmployeeSteven/ChildExcel.xlsx
    ...

    /HUB/Chief/MasterExcel.xlsx

     

  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @BrankoJ,

     

    OK, as a workaround, you could put these file identifiers into an array variable:

    Screenshot 2021-03-19 170119.jpg

     

    Then put it into the Apply to each 1 input to loop it.  

     

    Best Regards,
    Community Support Team _ Lin Tu
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard