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 / Excel automation havin...
Power Automate
Unanswered

Excel automation having N Number of files in Folder How to read all the files Particualr column and write in one New sheet every time

(0) ShareShare
ReportReport
Posted on by 49

Hi, 

 

I am New User here in Power automation , and Need to learn lots of things .

 

I have to create a flow where from the Particular folder different file will  be read , 

and then the data need to be write in new excel sheet. 

 

on my desktop I have 5 excel file , In each excel file Header is same, and need to to read Particular columns data 

from each excel file and combine this data in New excel sheet. How to built the workflow for this Using power automate.

 

I have the same question (0)
  • averma Profile Picture
    43 on at

    @Hana123TEI 

    Hi,

     

    I recently worked on a similar workflow. This might help. If you go to Excel>Advanced and use the following as a template, you should be able to recreate it for your needs.

    averma_0-1628248465345.png

    Kind regards

    Amit

  • averma Profile Picture
    43 on at

    @Hana123TEI These are the initial steps in case you need them.( Line 3 may be redundant in your case)

    averma_2-1628248843075.png

     

     

  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    First off, I always vouch for all Excel work to be done via Excel VBA.  It is much faster and simpler to code than PAD; but not everyone knows how to use it, so PAD only solution is below.

     

    This won't be all the logic for your specific case, but you should be able to derive a solution.

     

    "Get Files" -> use File Filter *.xlsx (or use a Title*.xlsx if they all start with the same title).

     

    Loop with Loop Index starting at 0 and ending at the 4; increment by 1

     

    In the Loop:

    1)Launch Excel opening File[%LoopIndex%]

    So, the first loop will be loopindex 0 which will open File[0]...File[0] is the first file from "Get Files"

    2)"Get first free row on column" specifying the column you are going to copy

    3)"Copy Cells from worksheet" from Column 1 to Column %FirstFreeRow%

    4)If LoopIndex = 0, Launch Excel (your new excel sheet that combines the copied columns)

    4.1) If LoopIndex > 0, Attach to Excel (your new excel sheet that combines the copied columns)

    5) "Paste cells to worksheet" (desired paste column row 1)

    6) Attach to Excel (go back to the first workbook)

    7) Close Excel (Save or Don't Save, whatever your preference)

    Loop

     

    Attach Excel to your new workbook that now has all your copied columns

    Close Excel (Save As path/filename)

     

    Best of luck!

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard