Skip to main content

Notifications

Community site session details

Community site session details

Session Id : G5ymzGlwhbaaYcAiy/ZzBP
Power Automate - Building Flows
Answered

Convert CSV to Excel Power Automated

Like (1) ShareShare
ReportReport
Posted on 15 Jan 2021 15:22:29 by 32

Hi,

Is it possible to convert CSV to Excel using Power automate? Limitation of rows?

 

Thanks

  • HollyS Profile Picture
    6 on 28 Jun 2024 at 13:35:53
    Re: Convert CSV to Excel Power Automated

    I realize this has been answered and it was years ago. But using the desktop version: 

    Launch Excel action, choose the csv file

    Close Excel action and choose save as and change the extension to xlsx and it works.

  • takolota1 Profile Picture
    4,859 Super User 2025 Season 1 on 19 Oct 2022 at 20:55:45
    Re: Convert CSV to Excel Power Automated

    You can now try automatically converting most CSVs to a new Excel table with the same column names as the CSV headers with this template: 

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-To-New-Excel-Table/m-p/1826096#M964

  • MattHanrahan Profile Picture
    12 on 28 Aug 2022 at 04:04:57
    Re: Convert CSV to Excel Power Automated

    @KF0318 My input csv data was the same and I got the same results using Office Excel Script example.

    Try the update below, add after this section:

    // Remove the preceding comma.
     row.forEach((cell, index) => {
     row[index] = cell.indexOf(",") === 0 ? cell.substr(1) : cell;
     });

    It will remove all double quotes from the cells, this works for my data, hope it works for you too!

    Add this:

    // Remove all double quotes
     row.forEach((cell, index) => {
     row[index] = cell.replace(/"/g,"");
     });

     

  • KF0318 Profile Picture
    15 on 01 Aug 2022 at 21:17:17
    Re: Convert CSV to Excel Power Automated

    Just followed this tutorial, unfortunately all the text in the resulting excel file is wrapped in double quotes. [Cocom, Marta] becomes ["Cocom, Marta"]. Would you know of anything I could add to fix this? Maybe an extra line or two to add to the Office Script to get of these?

  • klpinhac Profile Picture
    Microsoft Employee on 01 Aug 2022 at 08:30:50
    Re: Convert CSV to Excel Power Automated

    There is also a way to convert a CSV-File to an Excel-File using Office-Scripts
    Please see Convert CSV files to Excel workbooks - Office Scripts | Microsoft Docs

  • takolota1 Profile Picture
    4,859 Super User 2025 Season 1 on 14 Apr 2022 at 00:37:04
    Re: Convert CSV to Excel Power Automated

    @toadmyster @Anonymous @awalker 

     

    I created a free CSV to JSON template for these types of scenarios. It only uses the built-in actions and it can handle several of the common parsing errors, even in large files.

     

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/CSV-to-Dataset/td-p/1508191

  • toadmyster Profile Picture
    10 on 13 Apr 2022 at 15:16:49
    Re: Convert CSV to Excel Power Automated

    I realize you are talking about doing this in a cloud flow but Power Automate Desktop can do this if you have the option of using PAD in your environment. Convert a CSV file into an Excel spreadsheet - Power Automate | Microsoft Docs

  • Community Power Platform Member Profile Picture
    on 10 Jan 2022 at 13:03:54
    Re: Convert CSV to Excel Power Automated

    Ah..ok. I use the Web version and I'll have to do the same as well. Quiet frustrating.

  • awalker Profile Picture
    233 on 10 Jan 2022 at 13:00:47
    Re: Convert CSV to Excel Power Automated

    Nope. I have to extend the mobile app version every 30 days since this thread. 

  • Community Power Platform Member Profile Picture
    on 10 Jan 2022 at 12:35:10
    Re: Convert CSV to Excel Power Automated

    Did you get this sorted ?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 79

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard