Skip to main content

Notifications

Power Automate - Building Flows
Answered

Copy and Paste all files in one

(1) ShareShare
ReportReport
Posted on by 6
Good afternoon, everyone well?
 
I have 200 excel files in csv and I need to put them all together, that is, create a flow, where the robot searches my file folder, copies the excel cells and pastes them into a new excel file (xlsx) and does this to all 200 files. 
Can anyone help me?
 
 
  • Verified answer
    Robu1 Profile Picture
    Robu1 956 on at
    Copy and Paste all files in one
     
    Thank you for choosing Microsoft Community.
     
    You can use Power Automate to create a flow that will combine all your CSV files into a single Excel file. Here's a step-by-step guide to get you started:
     
    Create a new flow: Open Power Automate and create a new flow.
     
    Trigger: Use the "Recurrence" trigger to run the flow at a specific interval or use the "When a file is created or modified" trigger if you want the flow to run whenever a new file is added to the folder.
     
    List files in folder: Use the "List files in folder" action to get all the CSV files in your folder.
     
    Apply to each: Add an "Apply to each" action to loop through each file.
     
    Get file content: Inside the loop, use the "Get file content" action to read the content of each CSV file.
     
    Create table: Use the "Create table" action to convert the CSV content into a table.
     
    Append to Excel: Use the "Append to Excel" action to add the table to your new Excel file.
     
    This should give you a good starting point. If you need more detailed instructions, you can find them below.
     
     
     
    If this fixes the issue, please mark as resolved to help others with find it.
     
    Happy to help 

    Robu 1

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard