Alteryx Designer Desktop Discussions

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

How to import multiple file with different sheets

VaishnaviGinni
7 - Meteor

Hi,

 

I have 12 months files and in all the files there are 6 sheets and data are starting from 3rd row. So how to import the files in one go.

 

Thanks, 

Reeta Gour

 

 

13 REPLIES 13
ShankerV
17 - Castor

Hi @VaishnaviGinni 

 

I am splitting your questions to two and answer one by one.

 

To answer 1st question:

How to read from 3rd row?

 

Change the highlighted to 3, so the data's will read from row 3.

 

ShankerV_0-1672305184309.png

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

 

ShankerV
17 - Castor

Hi @VaishnaviGinni 

 

Please find a sample use case for reading from Row 3.

 

Input file:

 

ShankerV_0-1672305357993.png

 

 

Output: 

ShankerV_1-1672305397914.png

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @VaishnaviGinni 

 

To answer 2nd question:

 

I have created a macro for you to read 6 sheets from all 12 files.

 

 

Note: The workflow used to achieve the solution is attached which can be downloaded to see how the solution works.

 

If you believe your problem has been resolved. Please mark helpful answers as a solution so that future users with the same problem can find them more easily!!!!

 

Many thanks

Shanker V

ShankerV
17 - Castor

Hi @VaishnaviGinni 

 

Detailing how my workflow works:

 

Step 1:  I assume you have all the files in one folder like 2022, 2023 and so on based on year.

Directory tool helps to source the file names first.

 

ShankerV_0-1672306371175.png

Step 2:  I assume you have all the files have same sheet names Sheet 1,  Sheet 2, Sheet 3, Sheet 4, Sheet 5 and so on.

I read the sheet names in below.

 

ShankerV_1-1672306464826.png

 

Step 3: I append the Path of file name and Sheet names together.

ShankerV_2-1672306527105.png

 

grazitti_sapna
17 - Castor

@VaishnaviGinni , Try using the below workflow for your files.

Sapna Gupta
ShankerV
17 - Castor

@VaishnaviGinni 

 

Step 4: Using formula tool, I join the filename and sheet name

 

ShankerV_0-1672306725712.png

 

Step 5: Macro helps to read the data's from each file and sheet one by one.

I have made the output file name as field: Full path for understanding purpose to know which data has been read from which file and sheet.

 

ShankerV_1-1672306856478.png

 

ShankerV_2-1672306898995.png

 

Hope this helps!!! Let me know if you have any more questions!!!

 

Happy new year in advance!!!!

Felipe_Ribeir0
16 - Nebula

Hi @VaishnaviGinni 

 

You can use this adapted version of the batch macro input (https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/The-Ultimate-Input-Data-Flowchart/t...) to do it. This will give you the sheetnames of each file and then import them all to the workflow. Just follow the instructions inside of workflow.

 

Felipe_Ribeir0_0-1672312823732.png

 

 

BrandonKO
Alteryx Alumni (Retired)

This is one of the better macros floating around if your data is all over the place. https://community.alteryx.com/t5/Engine-Works/The-Ultimate-Alteryx-Holiday-gift-of-2015-Read-All-Exc...

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