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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update Multiple Excel ...
Power Automate
Unanswered

Update Multiple Excel Tables from List data in Power Automate Flow

(0) ShareShare
ReportReport
Posted on by 18

I have a SharePoint site that contains multiple excel files within the General folder and subfolders. Each of the excel files have the same Table11 within them. I also have a List that holds information about individual emails. I need all of the tables to have the same information that is in the list. Whenever the List item is updated I need it to iterate through the folders and update all of the Table11 located in each excel file.

 

I have tried to Get the file properties from the individual excel files. With an apply to each loop I am listing rows present in table. I than tried another apply to each loop to update a row but I am unable to figure out how to get the column values that normally appear when you select a table from the dropdown.

Categories:
  • cchannon Profile Picture
    4,702 Moderator on at

    OK, without getting into the specifics of your data, let's just use a very simple use case that shows how you can compare the rows of tables in two different spreadsheets and then take action on them.

     

    Say I have a sheet with vegetable names in it and a different one with fruit names in it and I want to be sure that they never overlap (i.e. there are no vegetables in my fruit list and no fruits in my vegetable list).

     

    I'll store these sheets somewhere accessible, like OneDrive or SharePoint, then trigger my flow manually or on a schedule and start by listing out the files in that location to make sure they're there:

     

    cchannon_0-1699460983195.png

     

    Now I will read all the rows from the tables I care about in those sheets:

     

    cchannon_1-1699461013175.png

     

    And now I loop through all the rows in Sheet 1, then all the rows in Sheet 2 so I can compare them all side-by-side:

     

    cchannon_2-1699461052245.png

     

    In that comparison, I render my local variables in Compose operations so I can debug if necessary later, and then check my condition: Do these match? If so, I will update the tables in both sheets to call out the matches I found.

     

    cchannon_3-1699461128582.png

     

    Easy peasy.

     

    So now, getting back to your use case, you want to compare two sheets to one list: the logic is the same. Get the sheet, get the list. Loop through the sheet rows, loop through the list rows, evaluate your condition and take action as needed. Then rinse and repeat for your second sheet. Easy peasy.

  • bbesant Profile Picture
    18 on at

    Hello @cchannon ,

     

    Thank you for the reply. I don't know if my scenario is the same as yours.
    I have a List in SharePoint site. In the Same SharePoint site I have a documents folder that has a number of subfolders. In those subfolders there are either excel files that contain the Table11 or subfolders that contain excel files with Table 11 within. I need to create a flow that whenever the list item is changed it updates the Table11 in each of the excel files within the folder.

     

    This is where I have been having an issue. Trying to get the list items to update the tables by iterating through the folders 😞

  • cchannon Profile Picture
    4,702 Moderator on at

    Yes, what I'm saying is that the approach is the same.

     

    Start with the folders and subfolders and get all the spreadsheets you need to update. Then loop over those spreadhseets. For each one, read the table, then loop over the rows. For each one, read the list and update the row if needed.

  • bbesant Profile Picture
    18 on at

    I am having an issue at the part where I have to identify the table:

     

    This is my file structure in the SharePoint site:

    Snag_49e997ea.png

     

    I set up the flow to get the files located within the SharePoint site:

    2023-11-09_9-17-24.png

     

    I than am looping through the files than looping through the sheets but the table doesn't work because I am not referring to a single file. Am I supposed to create a list rows in sheet for each of the files within the SharePoint site like you did in your original reply? I am also unsure if I used the correct get lists action to compare to.

     

    Sorry this seems easy but I am still trying to figure power automate out. I apricate all of your help.

  • cchannon Profile Picture
    4,702 Moderator on at

    Here's a pretty decent overview of loops and collections in power automate. Maybe this will help: https://youtu.be/QOM0GG7k_Pw

     

  • bbesant Profile Picture
    18 on at

    Hello @cchannon ,

     

    Unfortunately that is not helpful as I am not using the desktop version of Power Automate. I am using the web version and this still doesn't show me how to apply my loop through the list and apply it to multiple excel tables within multiple folders.

     

    I hope someone can assist me with my issue. Still learning here 😞

  • bbesant Profile Picture
    18 on at

    Hello @cchannon,

     

    I was wondering if you had any more guidance with my request. I still can't seem to figure out how to get the loops to look through each table within the excel sheets and compare/update them from a SharePoint list 😞

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 355

#2
11manish Profile Picture

11manish 336 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard