Free Trial

Alteryx Designer Desktop Discussions

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

Combining the Excel files with number of sheets

ravikumar060987
8 - Asteroid

Dear All,

 

I have a situation, in a folder have 30+ xlsx files. Need to combine all and where each excel file has 2 sheets.

Sheet 1: Summary - not to combine
Sheet 2: Actual Data (Which has 12 common headers across all the 30+ files).

 

How can I do this in Alteryx without using a macro?

 

 

11 REPLIES 11
ShankerV
17 - Castor

Hi @ravikumar060987 

 

Step 1: Directory tool, to read the full path of the file.

ShankerV_0-1670949896533.png

 

 

Step 2: Formula tool, to read only sheet2.

[FullPath]+'|||Sheet2'

ShankerV_1-1670949921492.png

 

Step 3: Dynamic input tool.

ShankerV_2-1670949960792.png

 

Expected output:

ShankerV_3-1670949982143.png

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

 

 

 

ShankerV
17 - Castor

Hi @ravikumar060987 

 

FYI, the output will be read in the ascending order of the filename it read as per the directory tool.

 

ShankerV_0-1670950174364.png

If you need to change the order, use the any tool/method in which you need to sort and read the files.

ShankerV_1-1670950322572.png

 

The sorting is based on your need.

 

If this helps, please like this post and mark it as a solution. If you have any other questions, please let us know.

 

Many thanks

Shanker V

 

 

 

Labels
Top Solution Authors