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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Loading from multiple excel files using wilcards

Hi,

I am trying to load annual data from an excel source. Each year of data is held in a seperate excel file 'Data_2009.xls' 'Data_2010.xls' etc

I have previously used the wildcard in a load statement from QVD data files, however it does not seem to work for these excel files.

Can anyone advise what I am doing wrong? I get the data from the first file through just fine, but none of the data contained in the second file is loaded (even though a description appears in the Script Execution box showing that '000s of rows are detected).


[Data]:
LOAD
[Date],
[Data]
FROM
Data_*.xls (biff, embedded labels, table is Sheet1$)


3 Replies
syed_muzammil
Partner - Creator II
Partner - Creator II

Can you please attach the Xcel docs.

Not applicable
Author

Hi Phil,

that´s the way it normaly works.

Load for example your second excel file with a separate Load and see if you get your data.

Or: Upload a short example of your excel files (3 or 4 in a zip file).

Good luck!

Rainer

Not applicable
Author

Hi,

I have the same situation and this syntax works for me:



For each vFILE in filelist('yourpath/Data_*.xls');

Load

Date,

Data

From $(vFILE) (biff, embedded labels, header is 4 lines, table is Report$);

next vFILE;

You need to adjust the name of the xls sheet, number of header lines etc.

Cheers

Fredrik

PS. How do I paste code so that it looks good?