Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

convert all different excel file type to xlsx

vijayyd
6 - Meteoroid

I am looking to convert xlsm, xls, xlsb, csv to xlsx. Have 50-60 different type of excel file and I need to convert all these file into xlsx.

6 REPLIES 6
binuacs
21 - Polaris
ChrisTX
16 - Nebula
16 - Nebula

See if the attached workflow helps.  It uses this EXE:  "C:\Program Files\Microsoft Office\root\Office16\excelcnv.exe"

 

A few related posts:

 

XLS format format to be changed to xlsx
https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/XLS-format-format-to-be-change...

 

Converting .xls file to .xlsx
https://community.alteryx.com/t5/Alteryx-Designer-Discussions/workflow-Converting-xls-file-to-xlsx/t...

 

a fantastic app that takes a directory path and converts all xls files to csv or .xlsx respectively.

The post is located all the way in the bottom.

https://community.alteryx.com/t5/Data-Sources/Error-opening-an-XLS-not-xlsx-file/td-p/47085/page/2

 

Chris

vijayyd
6 - Meteoroid
Thanks Chris, but I can not use EXE file link as I have to upload workflow on Alteryx server. Also, none of the resolution shared in link helped. appreciate your help and looking into this
ChrisTX
16 - Nebula
16 - Nebula

Try writing out Powershell commands to a batch file (extension .ps1), then running the batch file.

 

Google Powershell convert to XLSX or save as XLSX

 

Chris

zhuyyu
8 - Asteroid

Thanks Chris. It works well except one thing. For some csv file, there are fields about zipcode start with 0, after the convertion, all those 0s are gone. Is there anyway to keep that. 

When I open them with excel directly, excel did ask me whether convert the field to number or keep as strings. 

dreldrel
8 - Asteroid

You can use the dictionary tool to ingest the files. I believe Python also has libraries available to handle the file conversion process. Hope this helps

Labels
Top Solution Authors