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 / How to copy Excel colu...
Power Automate
Answered

How to copy Excel columns (values) to another file in Sharepoint?

(0) ShareShare
ReportReport
Posted on by 255

1e.PNG

If I run the Flow I don't get errors. When I try to open the new file I can't. I get an error that the file is damaged. What I need is that the 'File Content' = 'id' and 'id2' is copied in a new file. I KNOW that it is possible to copy a content file, but I don't need the WHOLE content of the file/table, I only need the values of 'id' and 'id2'. Is there a way to select/copy the range from the Excel file, like C8 to D9 and add column names for the values? Or can someone tell me what I need to do to let my Flow work right. 

 

I hope someone can help me out.

Categories:
I have the same question (0)
  • v-alzhan-msft Profile Picture
    on at

    Hi @ahmadbutt ,

     

    Do you want to copy the 'id' and 'id2' column to a new excel table?

    Or do you want to copy the 'id' and 'id2' of each row to a corresponding file? 

    If you want to copy the 'id' and 'id2' of each row to with a corresponding file, yo just need to update the File extension to .txt in the "Create file" in your current flow.

    If you want to copy the 'id' and 'id2' column to a new excel table, you need to create table with column 'id' and column 'id2', and then you could save the 'id' and 'id2' of each row to the new table.

    1.png

     

     

    Best regards,

    Alice       

     

    Community Support Team _ Alice Zhang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • ahmadbutt Profile Picture
    255 on at

    Thanks for your help @v-alzhan-msft!

     

    Or do you want to copy the 'id' and 'id2' of each row to a corresponding file? Yes

     

    I changed the file to .txt and it works! I only did not get the exact result I was thinking of. See images.

    What I got as result in the new .txt file: value of the second row only (99)

    What I want as result in the new .txt file: column names (id and id2), all values of each column (first and second), like the Excel file (as a table), so column name then under it the values (first and second row).

     

    I tried it with create a table, but I get an error that I can't overlap an existing table.


    reply.PNG

     

     

  • Verified answer
    ahmadbutt Profile Picture
    255 on at

    werkt.PNG

     

    This worked for me. 

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard