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 / Merge Two Excel Files ...
Power Automate
Suggested Answer

Merge Two Excel Files into one by using the first column as key

(1) ShareShare
ReportReport
Posted on by 4

I have the flow which getting two set of data from two table (which are stored into two different excel files) and I want to merge the two into a single table by appending the data from the table in excel file two into the table into excel file 1. Both of them have one common primary key which is unique (an e-mail adress)

 

I want combine both table into single table for each row return from the table in the second excel file, I tried with a for loop but could not make it work.

Any solution on my problem here? Any help will be great. 


 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,362 Super User 2025 Season 2 on at
    Hi
     
    1) please always share what you tried, versus asking us to write it all for you, so that you can learn and we can understand what you are trying to do
     
    2) You say merge them, merge them into what? I get that you want to merge them together, but for what purpose? into another Excel table, into a SharePoint list, or Dataverse Table?
     
    I cannot tell you how to merge them, because I dont know what you mean by merge them but I can tell you how to start what you want and you fill in the blanks
     
    1) Use List rows in a Table on List 1
    2) Use an Apply to Each, with the input being the Dynamic Body/Value from Step 1
    3) Inside the apply to each, use another List Rows, but add a filter for the email address that you are getting from List 1 in the Apply to Each current iteration to pull back the single row in List 2 with a top of 1
    4) Add a Condition to verify that the List brought back a single row
    In the yes side, do your work
     
    --After this, I don't know what you mean by merge, do you want to add all the columns from list 2 to list 1? Do you want to create an entirely new list in another excel sheet?
     
    Now you can merge them together
     
     
     
     
     
     
  • lbendlin Profile Picture
    8,479 Super User 2025 Season 2 on at
    Please clarify if you want to merge or append.  Appending is much simpler.  You enumerate the rows in table 2 and add each one into table 1.   For merging you would need to indicate how they should merged (join type, join columns etc)

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 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard