We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Importing an Excel file with Multiple Sheets

cluk019
6 - Meteoroid

Hello there, 

 

I was wondering, is it possible to import an excel file with multiple sheets? I have attached a file for reference

 

Where I would only be using <To be Imported> tab's values to work out a formula as per <formula> tab?

 

Thanks!

9 REPLIES 9
TimN
13 - Pulsar

Hi,

Yes.  If the sheets have the same schema - same structure - then it's easy.  If each sheet is different then it can be done with a macro.  

TimN
13 - Pulsar
Felipe_Ribeir0
16 - Nebula

Hi @cluk019 

 

Yes, it is possible. Take a look at the attached workflow

 

Felipe_Ribeir0_0-1667745869723.png

1) Configure the input tool to export the sheet names and the file name

 

Felipe_Ribeir0_1-1667745946512.png

 

2)Use the formula tool to generate the full path for each sheet name

 

Felipe_Ribeir0_2-1667745993684.png

 

3)Use the dynamic input tool OR the batch input macro to import each sheet to Alteryx

 

Felipe_Ribeir0_3-1667746067267.png

 

If the provided answer helped you to solve the problem/was correct, please accept it as a solution :)

 

Thanks.

 

cluk019
6 - Meteoroid

Hello! Thanks for replying!

 

I understand your workflow completely, but can I just upload a file (which has 3 tabs) but I only want to import 1 tab, which is the <To be imported> tab?

 

Can you please guide me how?

 

Thanks!

Felipe_Ribeir0
16 - Nebula

Hi @cluk019 

 

You can use a filter tool to keep just the sheet/sheets that you want to import:

 

Felipe_Ribeir0_0-1667828039092.png

 

 

 

mjoshi043
5 - Atom

This was Great!

srhodes1996
5 - Atom

how can i tweak this marco to start import from a certain row?

apathetichell
20 - Arcturus

@srhodes1996- that's different value in the input data tool. Find the inner input data tool. attach a new action tool. attach a new control parameter.

 

set up the new action tool to update the part which tells it to what line to bring in your data from. feed in this value in your control parameter.

 

In the alternative -> in your inner macro:

use a record id.

use a filter to find the header row using the logic you know. isolate that record id.

append that one thing to your datastream. use a filter to find that row and the rows after.

use dynamic input to take column headers from the first row.

 

continue with your data.

dvkbalaji
5 - Atom

How to write these multiple sheet into another excel ?

Labels
Top Solution Authors