Alteryx Designer Desktop Discussions

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

How to combine different tabs into one but first tab has redundant rows?

jp_jen
6 - Meteoroid

Hi! I have been using a control parameter (macro) to stack various sheets into one excel output. Recently I have this report (screenshots attached) to try to combine various sheets into one but my Sheet1 has some redundant top rows and I cannot seem to match by column position or name. 

 

Is there a way to automate this by just adding the input file once rather than sheet by sheet because my actual data might have >50 sheets in one excel file. There are also redundant tabs in the excel. Apologies I am unable to upload the excel file here. 

 

Thanks in advance! 

jp_jen_4-1605233707373.png

 

 

jp_jen_1-1605233592173.png

 

jp_jen_2-1605233613662.png

jp_jen_3-1605233649111.png

 

1 REPLY 1
AkimasaKajitani
17 - Castor
17 - Castor

Hi @jp_jen 

 

I have 2 solutions.

 

1.
You read all the sheets and then delete the data that you don't require.
In this case, you have to enable "First Row Contains Data" option. But this case don't require macro.


2.
You read all the sheet once, and count the record position of "S/N" row that should be in the field name, then reopen them again using "Start Date Import on Line" option to skip the redundant rows.

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels