Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
parvez933
Creator
Creator

Excel Sheets

Hi Everyone!

Can I know is there any other way of loading multiple excel sheets instead of using "For EACH loop"

A.xls--->Sheet1, Sheet2, Sheet3, Sheet4

other than for each m in 'Sheet1', 'Sheet2', 'Sheet3', 'Sheet4'; load *; from ....... *.xls (;;..;;.;;. $(m));

4 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You can use another kind of loop. But you will need a loop. One option is to use an ODBC connection to the excel file and use the SQLTABLES function to retrieve a list of tables that exist in the excel file. Each sheet will be a table in that list. By using th SQLTABLES function you load that list into a table and then you can iterate of the records of that table to load the data from the excel sheets.  Heres' an example: https://community.qlik.com/t5/QlikView-Documents/Loading-Multiple-Excel-Sheets-Dynamically-along-wit...


talk is cheap, supply exceeds demand
parvez933
Creator
Creator
Author

Hey Gysbert!

I gone through the shared link before
https://community.qlik.com/t5/QlikView-Documents/Loading-Multiple-Excel-Sheets-Dynamically-along-wit...

Here we need an ODBC connection to the excel. As the windows change the ODBC connections has to be updated 32/64 bit. It is clumsy.
Can I know is there any other ways to achieve apart from the 2 ways as above.
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Sure, but even more cumbersome.

talk is cheap, supply exceeds demand
parvez933
Creator
Creator
Author

Hi Gysbert!
Even, more cumbersome!!!! Ok I will try with shared link then we will go for others!