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

Alteryx Designer Desktop Discussions

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

Create different sheet

AnGi
7 - Meteor

Hi team

I have this situation

gen-01gen-02gen-03feb-06feb-09feb-11feb-28mar-04mar-06apr-03apr-24apr-30mag-01mag-06
AlexAlexBobRobertTomPhilSimonPhilAndyBobSamCarlSimonSimon
Bob DianeFrankRobertRobert BobRyanSimonPhilMaxPaul 
Colin   AndyTom   SamTom Tim 
     Alex    Alex   
          Carl   

 

I would like to create one excel file with different sheets based on column header

For example

gen --> sheet name; January

feb --> sheet name: February

and so on

 

Could you help?

3 REPLIES 3
Qiu
21 - Polaris
21 - Polaris

@AnGi 
I think we can do it by a batch macro.

0528-AnGi.PNG

messi007
15 - Aurora
15 - Aurora

@AnGi,

 

Please see below

 

messi007_0-1622194011911.png

I created the first formula to change the date gen => January, Feb to February I'll let you continue with the other months.

 

Below the result

 

messi007_1-1622194160043.png

Attached the workflow,

Hope this helps!

 

Regards,

atcodedog05
22 - Nova
22 - Nova

Hi @AnGi 

 

As @Qiu said batch macro is the way to go.

 

Workflow: I am getting the distinct sheet name and maintaining order.

atcodedog05_0-1622195304531.png

Macro: In macro i using dynamic select tool keep only columns with month name in it. And also to change sheet name.

atcodedog05_1-1622195327029.png

Output:

atcodedog05_3-1622195576213.png

 

I have attached the packaged workbook if you are not able to open it because of version issue. Download/keep workflow and macro in the same folder should work. Output file is generated in the same folder.

 

Here is a blog on downgrading : How to downgrade packaged workflow (File types: .yxzp) 

 

Hope this helps 🙂

Labels