Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Looping through excel files with slightly diff column headers, consolidating into one file

teeefarnee
6 - Meteoroid

Hi, 

 

I have multiple excel files that look like this:

teeefarnee_0-1644542792224.png

Eventually I just want to output it to an excel file like this - with the years mapping to the correct column header

teeefarnee_1-1644542871963.png

 

The data is all stored in the same sheet in the different excel files, just that the years might not be the same (eg. some might start in 2021, 2023 etc) and I want to map it accordingly. attached is an example of the excel file :( appreciate any help i can get!

 

2 REPLIES 2
Qiu
21 - Polaris
21 - Polaris

@teeefarnee 
There is a Macro to import multiple sheets with different schema by @mceleavey and I made some modification.
Please make some necessary adjustment to the macro for real data.

0211-teeefarnee.PNG

 

teeefarnee
6 - Meteoroid

Hi! thank you for your help - im very new to alteryx, so is it possible if u run me through with me the working;

 

also, how would i go about inputting different excel files?

Labels
Top Solution Authors