Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.
Free Trial

Alteryx Designer Desktop Discussions

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

Excel sheets Exception

Ajith1
8 - Asteroid

Hi all

I have an Excel file in Sheet names Like 2,L2,L3,1
I need to remove sheets 2 and 1
and it needs to append data L2 and L3

if some times my sheets to be adding my excel-like L4,L5,L6


Could you please suggest to me

2 REPLIES 2
pedrodrfaria
13 - Pulsar

Hi @Ajith1 

 

Please see attached for one example:

 

We input the file by the sheet names, then we filter out everything that we do not want, adjust the file path to the correct sheet name and then load the files with an XLSX Excel Macro Opener that I created.

 

pedrodrfaria_0-1609956060482.png

 

Please remember to assign solutions to the discussion posts that you open as it really helps the people answering the questions. You can assign multiple solutions if that is the case)

 

Pedro.

 

DanielG
12 - Quasar

Hi,

 

You can pull in the existing data into your workflow from L2, L3, etc. and append the data within the workflow and just have your first output overwrite the entire file, then using Block Until Done have the other outputs follow in series adding new sheets to the output created first.

 

This way any existing sheets you dont need will not get recreated in the initial overwrite of the file.

 

Hopefully that makes some sense.  

Labels
Top Solution Authors