Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Combine multiple excel sheets to one and adding sheet name

Wojtek_Dz
8 - Asteroid

Hello, how to combine multiple excel sheets to one and adding sheet name for data where there come from ?

 

Input:

 

Wojtek_Dz_0-1621591271610.png  

Wojtek_Dz_1-1621591289375.png

 

Expected result

 

Wojtek_Dz_2-1621591369588.png

 

Source file below 🙂

 

 

 

 

 

 

 

3 REPLIES 3
atcodedog05
22 - Nova
22 - Nova

Hi @Wojtek_Dz 

 

Here is how you can do it.

 

Workflow:

atcodedog05_0-1621591838070.png

 

1. You can use a combination of input tool get sheet names and dynamic tool to read multiple sheets. You can refer the below link to get to know more about this.

https://community.alteryx.com/t5/Interactive-Lessons/Connecting-to-Multiple-Sheets-at-Once/ta-p/8287... 

2. In dynamic input tool template you need to set output file name option as full path so that you get the sheets.

atcodedog05_1-1621591988798.png

3. Dynamic input tool will read all sheets and give you the data with full path. I am using regex formula in formula tool to get only the sheet names (this formula will work for most scenario to get sheetname from full path)

 

Hope this helps 🙂

 

Wojtek_Dz
8 - Asteroid

Great, it works.

 

Thank you 🙂

minhdvo
7 - Meteor

Thanks.

Labels
Top Solution Authors