Alteryx Designer Desktop Discussions

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

Import data from multiple sheets at once

vishtrack
7 - Meteor

Hi Folks,

 

I have scenario where users have an Excel file which contains about 500+ sheets (different tabs) amd needs to be imported for analysis. How do I achieve this? Thank you in advance.

 

 

9 REPLIES 9
jdminton
12 - Quasar

@vishtrack This is one of the most frequently asked questions. Here is a guide on how to do this. In essence, if your fields are the same for all sheets, you can use a dynamic input. If they are different (any difference), you will need to use a batch macro.

https://knowledge.alteryx.com/index/s/article/The-Ultimate-Input-Data-Flowchart-1583459854309

 

alexnajm
17 - Castor
17 - Castor
Raj
15 - Aurora

@vishtrack you can use this macro 
Hope this helps.

vishtrack
7 - Meteor

Thank you all for the response.

I tried using the provided workflows changing the file.

I am getting the same error on all "Record#100: Tool #1 'xyz tab name' does not match a sheet or nand range in 'file name xx' or the file is corrupted".

I am able to open and edit the Excel file, I don't think the file is corrupted. Need help here pls. Thank you

jdminton
12 - Quasar

@vishtrack did you import the list of sheet names? It isn't really possible to tell what is wrong without the workflow.

mzak89
7 - Meteor

@vishtrack Make sure that you have indicated the end of the sheet name with the $ sign and wrap the sheet name around a single quote like this:

"My path|||'Sheet Name$'"

Otherwise you will end up with an error if there is a space or other white character in your sheet name


vishtrack
7 - Meteor

@mzak89 Hi- i think you are right, I am getting error only in the ones with leading spaces. Tried cleansing though days cleansing tool, but this is still showing the same error.

I am using 'avoid Excel which has missing sheet in Dynamic input tool' workflow shared in the chat.

Where do I need to add this in the workflow? Thank you

mzak89
7 - Meteor

@vishtrack  I can't see the workflow anywhere.

But do not cleanse.

I do not know how your macro is constructed. But if in the macro you use "replace a specific string" feature, instead of cleansing, modify your sheet names like this with formula tool


 

Replace([Sheet Names], [Sheet Names], "'" + [Sheet Names] + "$'")

 

  

vishtrack
7 - Meteor

Works like a charm, thank you.

Labels