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.

Read from a Multi Sheet Excel file, and display all Field column names

alex_Intellese
6 - Meteoroid

How can I take a Excell FIle that has multiple tabs / sheets and read ONLY the field names and organized them into a single column?

 

Attached is a sample file

4 REPLIES 4
apathetichell
20 - Arcturus

Hi - I noticed that the sample file you posted is an older excel file (.xls) can you confirm that the files you are trying to do this for are vintage excel files (.xls) - not .xlsx?

apathetichell
20 - Arcturus

I'm 95% sure that if these are .xls files you'll need an R or Python solution. I have something that will work with .xls files but it will require R and it will require the readxl package. I really (really) like managing my R packages via R studio with a join path between R Studio and Alteryx. If you don't have that can you try running the following commands in an R tool:

 

install.packages("readxl", repos='http //cran.us.r-project.org')

library(readxl)

 

If it runs - let me know and I can then shoot over a workflow which will get you all of your sheets for .xls files.

 

FYI - my R Tool package installs won't execute like that because my native Alteryx R library path points to a write-protected location, so check to see if yours download and run... So if you get a "can't install packages xxx is write protected" error - then it's either R studio or wait for the python peeps to respond..

Hi @alex_Intellese 

 

Is the below what you are looking for?

 

christine_assaad_0-1626124604629.png

 

I used the solution provided in this post https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Listing-the-list-of-sheet-names-from-X... with a macro that would transpose the fields. Hope this helps. Cheers!

apathetichell
20 - Arcturus

@christine_assaadthe magic of R/Python solutions... I was looking at this post:

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/How-To-Read-XLS-files-with-several-...

 

But the macro seemed to be incomplete - as noted in my comment R version is pretty straight forward but perhaps this post should be edited or taken down?

Labels
Top Solution Authors