Free Trial

Alteryx Designer Desktop Discussions

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

Read Multiple files with multiple Sheets === Output 1 File with same multiple sheets

Sanjeev75
5 - Atom

Need help to solve this problem.

 

I have multiple files with multiple sheets. What to read all the files and their respective sheets and output into one file with the respective sheets, appending the data of the respective sheets.

2 REPLIES 2
Manoj_k
9 - Comet

There are several workarounds that we can use to achieve what you're looking for. It's a bit more complicated.

The Alteryx input tool has a function to obtain the sheets that are part of your Excel file. It would be done as follows.

Manoj_k_0-1732009818339.png

 

Once you have the list of sheets in that configuration, in the tool's configuration itself, you need to output the full path of the file as shown in this image.

Manoj_k_1-1732009839894.png

 

Once you have this, it would be as simple as adding this formula tool with a replace function like this:

Manoj_k_2-1732009857824.png

 

By filtering for the sheet you want with a filter formula and placing a dynamic input behind it, you will be able to open all 6 sheets just by bringing in one file, as shown in the attached image.

Manoj_k_3-1732009879955.png

 

Sanjeev75
5 - Atom

The sheet names will be dynamic. Attached is the solution so far but the issue is am getting all the column headers combined.

 

What I want is, data should append to the respective tabs with respective column headers only.

 

Labels
Top Solution Authors