Skip to main content
Community site session details

Community site session details

Session Id : 7cwFmD6A4Cahz3CMFPMtOM
Power Automate - General Discussion
Unanswered

Automate merging a lot of individual excel files

Like (0) ShareShare
ReportReport
Posted on 13 May 2024 15:52:05 by 8

Hello,

I am new to power automate and I found a good solution online to my need. Unfortunately, the steps aren't clear to me. I pasted the steps below: 

  1. Create a new Excel file in your OneDrive. The file name "Combination.xlsx" is used in this sample.
  2. Create and save the two scripts from this sample.
  3. Create a folder in your OneDrive and add one or more workbooks with data to it. The folder name "output" is used in this sample.

My question is in regards to the step 2, what do I use to write those scripts and here do i save them? In the same folder with all my files or to the new folder where the files will be merged. Any help is greatly appreciated!

Thank you!

  • Srinivas Kadamati Profile Picture
    3,177 Super User 2025 Season 1 on 13 May 2024 at 16:11:21
    Re: Automate merging a lot of individual excel files

    Hi @Just2431 

     

    So you need to run the script where the script is also already given

    So, more details about the Office Script you can refer the documentation link which was shared by @ScottShearer 

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Cheers,

    Srini

     

     

     

     

     

  • Just2431 Profile Picture
    8 on 13 May 2024 at 16:06:00
    Re: Automate merging a lot of individual excel files

    Thank you for this link. This will give me an answer to my question. 

  • Just2431 Profile Picture
    8 on 13 May 2024 at 16:03:53
    Re: Automate merging a lot of individual excel files

    this is the link to the resources that I am trying to use https://learn.microsoft.com/en-us/office/dev/scripts/resources/samples/combine-worksheets-into-single-workbook

  • ScottShearer Profile Picture
    25,236 Most Valuable Professional on 13 May 2024 at 16:02:42
    Re: Automate merging a lot of individual excel files

    @Just2431 

    Here is a link to the documentation.  

    You'll find the answer to your question and more if you follow the link.

     

     

  • Srinivas Kadamati Profile Picture
    3,177 Super User 2025 Season 1 on 13 May 2024 at 16:00:22
    Re: Automate merging a lot of individual excel files

    Hi @Just2431 

     

    It's better if you keep the source link so that we can also understand what script you are talking about

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Cheers,

    Srini

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Loading complete