Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Combine Multiple excel files with same name containing in multiple folders

ankurgupta16
6 - Meteoroid

Hi All,

 

I have a requirement where in I have two Folders each having multiple files with same names . I want to combine the files with same name . Each file has multiple tabs.

 

 

Folder 1 

 

File 1 - Sheet 1,2,3

File 2 - Sheet 1,2,3

 

Folder 2

 

File 1 - Sheet 4,5

File 2 - Sheet 4,5

 

Output expected

 

Folder 3

 

File 1 - Sheet 1,2,3,4,5

File 2 - Sheet 1,2,3,4,5

 

 

7 REPLIES 7
mceleavey
17 - Castor
17 - Castor

Hi @ankurgupta16 ,

 

I've attached an example file. I've built a couple of tools to do exactly this.

 

mceleavey_0-1623833061836.png

 

The first tool loads in the sheet names and appends them to the file name, the second loads them in and unions together.

 

You just need to re-point in the directory tools.

Hope this helps,

 

M.

 



Bulien

ankurgupta16
6 - Meteoroid

 

Thanks for the prompt reply, I am having trouble using it as I am new to ALTERYX, Do you think we can achive this without Macro 

ankurgupta16
6 - Meteoroid

Can you please upload as a package ?

mceleavey
17 - Castor
17 - Castor

Hi @ankurgupta16 ,

 

I've attached it as a package. You can only use that if you're on the latest version of Alteryx.

If not, in the original post, save the macros to your macro folder.

You can set your macro folder in the Options->User Settings->Edit User Settings->Macros tab.

 

M.



Bulien

ankurgupta16
6 - Meteoroid

Thanks you mceleavey ! I got my ALTERYX upgraded 

It partly worked.  Two queries

 

1) I am getting below error

2)  My sheets dont  have same data structure

 

 

ankurgupta16_0-1623910156325.png

 

mceleavey
17 - Castor
17 - Castor

@ankurgupta16 ,

 

can you share a couple of the files so I can see the data structure?

Also, can you confirm they are .xlsx files?

 

M.



Bulien

ankurgupta16
6 - Meteoroid

Below are files. Zip is not supported so Need to rename the file ABC-2  and put them in multiple folders. In my Folders there are multiple files  in both folders

Labels