Free Trial

Alteryx Designer Desktop Discussions

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

HELP!! HOW TO READ 20 input sheets from a DYNAMIC input EXCEL file -

amruta
8 - Asteroid

I do know how to read a file and read 20 sheets from an excel without having to manually read it 20 times. (I can create a input and do dynamic input and macro to read the sheets.)

but how to create a dynamic file Browse and read 20 sheets in the excel file.

example v1 to v20 are the sheet names, the sheet names in the excel are fixed.

good thing is input format for the 20 sheets is same, see attached example file attached which has 5 tabs. (I cannot attach the actual file)

8 REPLIES 8
Qiu
21 - Polaris
21 - Polaris

@amruta 
What you mean by "a dynamic file Browse "?
What is the difference between it and you have achieved as below?


 (I can create a input and do dynamic input and macro to read the sheets.)

but how to create a dynamic file Browse and read 20 sheets in the excel file.




KGT
12 - Quasar

So, you have a macro that gets a list of all the sheet names? just construct the list of qualified inputs, filename.xlsx|||Sheetname, and feed that to the Dynamic Input. I'm not sure what solution you have in your first statement, but I can't see how this is different. Did you already have the sheet names in that example and don't in this question?

 

If I've got the right of that, then try the attached macro to get the sheeetnames, then a formula to construct the input for the DynamicInput.

amruta
8 - Asteroid

if I have a input file, always same file name and from same folder, then I can read the tabs.

But if I do a file browse tool (instead of a fixed file name and file path) then I am not able to retain the value of file name that is being browsed so cant take it further to read all the tabs

KGT
12 - Quasar

Your File Browse will connect to an Input tool, right? You just need to configure that Input tool to Output Filename. If it doesn't connect to an input tool, then the solution may be a bit more bespoke depending on your situation

 

AlteryxGui_R0HSMnTnuV.png

ntakeda
12 - Quasar

This configuration works.
Please check the image.

 

1. Input tool

2025-05-16_10h20_08.png

 

2. Dynamic input tool

2025-05-16_10h20_18.png

apathetichell
19 - Altair

@amruta--- this is an incredibly common use case in Alteryx. Instead of using capital letters to clarify that this dynamic --- search community for how to build a batch macro to accomplish what you need.

amruta
8 - Asteroid

Thank you for this.

 

amruta
8 - Asteroid

@ntakeda Thank you, that configuration almost worked. 

Earlier I was not reading doing <list of Sheet names>, I was only getting the file name, and then adding sheet names. (which was causing the issue)

But your way , it worked,  I had the file with all <List of sheet names> and then use a join to filter down only select the 20 sheets of interest and then use the macro to read. (could not use dynamic input due to mismatch data type access the sheet names)

 

c.PNG

Labels
Top Solution Authors