Press "Enter" to skip to content

Convert Excel and CSV Files in Power Automate

We recently released a new action ‘Convert Excel‘ which provides the capability to convert a multitude of different spreadsheet file formats to the following file formats a PDF, XLSX, HTML, CSV or TXT.

The supported input file formats are:

  • xls
  • xlsx
  • xltx
  • xlsb
  • csv
  • tabdelimited
  • ods
  • spreadsheetml

Considering, the ‘Convert Excel‘ action covers these very common file format conversion scenarios, with example configurations depicted below:

The ‘Convert Excel‘ action determines the input file format from on the ‘Filename‘ value provided, i.e. by checking the file extension. Typically, you would pass filenames via dynamic data, for example;

However for these examples we’ll simply manually type the input filename for ease of reading:

Converting XLS to XLSX with Power Automate

The following example converts a XLS document to XLSX format:

Converting CSV to XLSX with Power Automate

The following example converts a CSV document to XLSX (Excel) format:

Converting XLSX or XLS to CSV with Power Automate

The following example converts a XLSX document to CSV format:

Converting XLSX to HTML with Power Automate

The following example converts a XLSX document to HTML format:

Any images contained within the source XLSX file would be converted to dataUri’s and embedded within the resulting HTML document.

Convert a specific Excel worksheet to PDF with Power Automate

The ‘Convert Excel‘ action provides several advanced options. The ‘Worksheet Name‘ option enables you to target a specific worksheet inside an Excel workbook, where only the contents of the targetted worksheet would be used in the conversion operation.

The following example converts the worksheet named ‘New Orders‘ from and XLSX document to a PDF document.

Final thoughts…

Hopefully this post has provided a high level overview of the capabilities of our new ‘Convert Excel‘ action, if you have any technical queries please visit our customer support portal.

We hope you’ve found this guide useful, as ever please share any feedback or comments, all welcome!

4 Comments

  1. Arkadeep Dey Arkadeep Dey

    Actually I have a excel with multiple worksheets. Some of the sheets have ghaph. And they are generated by taking data from another worksheet.

    Now is it possible to convert the graph sheets into pdf using your connecter in MS Flow.

    • Jay Goodison Jay Goodison

      Hi, yes, you would simply pass in the name of the worksheet you wish to convert… if there are multiple sheets you should put the worksheet names in an array variable and then loop through the array converting each worksheet. HTH

  2. Dnyaneshwar Lingayat Dnyaneshwar Lingayat

    Hii Jay,

    Can we convert .xlsx files to ‘Semicolon delimited’ CSV files using encodians ‘Convert Excel’ activity?

    • Jay Goodison Jay Goodison

      Hi, currently you cannot specify the data format of the CSV. However, you might be able to open the content of the CSV as text (Convert from base64) and the use a PA expression to perform a search / replace. HTH Jay

Leave a Reply to Dnyaneshwar Lingayat Cancel reply

Your email address will not be published. Required fields are marked *