Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
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