Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Combine multiple excel files with different file/tab names but same columns

znooredeen004
7 - Meteor

Hi All,

 

I have 40 excel files named this way:

 

Time Sheet Analysis - JohnDoe.xlsx

Time Sheet Analysis - MaryJane.xlsx

Time Sheet Analysis - SallyMae.xlsx

 

Each file then has one tab with their name one it. For example if you open JohnDoe.xlsx there will be one tab name JohnDoe. However each file has the same columns. 

 

What would be the best way to best way to combine all 40 excel files into one data sheet?

5 REPLIES 5
Emil_Kos
17 - Castor
17 - Castor
kelsey_kincaid
12 - Quasar
12 - Quasar

Hi @znooredeen004 ,

If all of these files are in a single folder, you can use a wildcard in your input data tool to pull in all at the same time. It will skip any files that have a different schema. If this doesn't work for you, you can use a directory tool and a batch macro to combine the files as well.

 

 

kelsey_kincaid_0-1612291006378.png

 

ArtApa
Alteryx
Alteryx

Hi @znooredeen004 - If the schema for all files is truly the same then the solution from @kelsey_kincaid is the best. Otherwise, please read the following article: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/CS-Macro-Dev-Reading-in-Multiple-Fi... 

znooredeen004
7 - Meteor

Hi @kelsey_kincaid - Unfortunately I don't think I'm able to use the wildcard because every sheet has a different name (unless I'm not configuring the input tool correctly)

znooredeen004
7 - Meteor

@ArtApa This also worked out very easily!

Labels