Alteryx Designer Desktop Discussions

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

Split out an excel workbook which has multiple sheets into separate files

srea541
8 - Asteroid

I have an excel workbook with multiple sheets within it - I'm looking to take each of these sheets and save them to separate .xlsx files. This is the input - each of the sheet names contains its own data in the workbook.

 

srea541_0-1638865469261.png

 

I use this formula to create the filepaths:

srea541_1-1638865532529.png

 

And these are the settings in the output tab:

srea541_3-1638865633517.png

 

This gives me the following output - however when I open these files, they only contain the file path, and not the actual data.

 

srea541_2-1638865618138.png

 

 

Is it possible to do what I'm looking for?

 

 

2 REPLIES 2
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @srea541,

 

In this case you're reading in the sheet names (no data from the sheet - just the name) and writing out them into separate files. You'll want to use a batch macro to read in all the files (or if they're the same structure a wildcard union), select option 5 in your input tool "Output File Name as Field" as full path from where you can extract the sheet name with some parsing tools (Regex, Text to Columns).

 

Then you can use the part of your workflow to write out the data to seperate files (with the formula you created to make the file path including the sheet name as part of the file name)

 

Kind regards,

Jonathan

messi007
15 - Aurora
15 - Aurora

@srea541,

 

Please see below how you can do it :

 

messi007_0-1638870952176.png

 

Attached the workflow,

 

Hope this helps !

Regards

Labels