Alteryx Designer Desktop Discussions

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

Input all worksheets in the most recent Excel file?

KateC
8 - Asteroid

Is there a way to accomplish this using a Directory Input? I need all of the worksheets (3) in the most recent version of an Excel file, and I need to retain the sheet name as a field. 

3 REPLIES 3
RolandSchubert
16 - Nebula
16 - Nebula

Hi @KateC ,

the Directory tool return not only file names, but also time stamps (last access, last write). You can select the last file e.g. using Sort/Sample tool. You can use a macro to find all sheets in this file, create the complete name using a formula tool and use an additional macro to read all data.

 

2022-02-15_16-06-39.jpg

I've attached a sample workflow. Let me know if it works for you.

 

Best,

 

Roland

 

KateC
8 - Asteroid

Thanks! I am unable to open the sample workflow; apparently we don't have the latest version of Alteryx here.

RolandSchubert
16 - Nebula
16 - Nebula

I've set the version to 2021.1. and attached the files.

 

btw.: you can edit workflows using a text editor and change the version.

 

2022-02-15_16-24-59.jpg

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