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 convert text fi...
Power Automate
Answered

How to convert text file to excel

(0) ShareShare
ReportReport
Posted on by 34

Hi,

I want to make a flow that when a text or csv file adds to SharePoint, convert it to excel or add the content to a Sharepoint list

The text file rows are like:

02;E02;A-0192;10,000;10,000

so I need to set each part in a column. 

 

Would you help, please?

 

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

     

    Hi @Setayesh ,

     

    You can use Get file content to get the file content first. The file content of the text file should be plain text.

    Then use the split() function to split the content.

    Finally, use the array index to reference the value of each element and add it to each column.

     

    Best Regards,

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Setayesh ,

     

    Please check this image:

    108.PNG109.PNG

    Best Regards,

  • Setayesh Profile Picture
    34 on at

    Hi, 

     

    Many thanks for the respond, I tried that. I need to check each row but it just can get the first 60 rows and I dont know how to fix it. the rows are more than 30000.

     

    the file data is like bellow now: just necessary data kept in csv file

    A-0129
    A-0134
    A-0247
    A-0281

     

    1.jpg2.jpg3.jpg

     

  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

     

    Hi @Setayesh ,

     

    Because Do until creates up to 60 loops.

     

    You can consider using Apply to each instead of Do until.

     

    Create an integer variable, each time the variable is incremented, and determine if the expected value has been reached. If it is, then the action that is expected to be executed is not executed.

     

    Hope it makes sense.

     

    Best Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard