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 / How to merge multiple ...
Power Automate
Answered

How to merge multiple excel worksheets in a document library into one worksheet

(0) ShareShare
ReportReport
Posted on by 17

Hi all,

 

I have a document library in SharePoint with excel workbooks. I want to be able to merge specific worksheets from the workbooks into 1 worksheet within another workbook. (if I am understanding the difference between workbooks and worksheets correctly - a workbook is multiple worksheets within one file, and a worksheet is just one worksheet as a file???).

 

The line items in the document library have categories such as months. So on a certain day every month, I want to take the workbooks with the category of January, get the data from the specific worksheets out of it and merge them into one worksheet within another workbook. Each workbook can vary in amount of data, and the amount of workbooks for each category can vary. 

 

Is this even possible? Is this something Power Automate can do? Do I need to be researching other platforms that can potentially do this? I've researched some and my head just begins to spin. Can Power Query do this?

 

Thank you for any help or leads in other directions!

Categories:
  • Raysug Profile Picture
    17 on at

    @AlexEncodian Thank you so much for replying!!

     

    The data will be in tables. And one table might include anywhere from 20-100 line items of data with 9 columns (just for context, this information would be on one tab and is basically a learner list, so first/last name, manager, reporting facility, ID #, etc) . And another table on another tab might include anywhere from 10 - 20 line items of data with 5 columns (this will be a list of courses with effective dates, course IDs, program credits, etc). So I am not sure if that is considered a large data set or not? 

    And I'm not sure if this is important or not, but I think the worksheet that it would be compiled into, would grow rather large? 

  • AlexEncodian Profile Picture
    4,409 Moderator on at

    @Raysug 

    It depends on how fast you need the automation to work, how often it will happen etc. I would think you can get away with using the native Excel actions in your case.

    The size of the worksheet it gets compiled into doesn't matter. What matters is the individual operations e.g. add a row. For 100 rows, you will need to loop through within an apply to each 100 times which is the issue. Not the size of the destination table.

  • Raysug Profile Picture
    17 on at

    @AlexEncodian 

    Gotcha! We wouldn't need it to work very fast, and I think we could get away with running it only a couple of times a month. My original thought was that we would have the flow run at the end of every month so it could work through all of the submissions (excel worksheets) we received within that month timespan, which I am not 100% sure on how many we will receive a month. Maybe 9-20 submissions. But maybe I could also set it up to run weekly if that's too many at one time for it to handle.

    Thank you so much for the info! In my searching, I came across some examples on how to utilize the Excel actions. So I am going to search for those again, create some small samples to start with working and see what I come up with. Thank you again!!

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
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard