Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to load excel excluding one sheet?

Hi guys,

Just wanna ask on how to load excel file to qlikview excluding one/several sheets. See example below.

Sheet names: Master File, Product 1, Product 2, Product 3, Product 4.

From the given sheet names, I want to load the excel file EXCEPT sheet name: Master File.

Please help me get over this. Thanks.

Best regards,

Bill

1 Solution

Accepted Solutions
erichshiino
Partner - Master
Partner - Master

Hi,

In that script, you can change this line:

    IF wildmatch('$(sheetName)', 'Sales*') THEN  // Only sheetNames that begin "Sales"

to

    IF not(wildmatch('$(sheetName)', 'Master File*')) THEN  // All sheetNames that are not Master File

Hope this helps,

Erich

View solution in original post

4 Replies
adhudson
Creator II
Creator II

Hi,

     You can use the following file as a solution.

     There you have to define the name of the sheets to load in the script.

     If you want to load Except 'Master File' Sheet, you can use the following coding.

     for each vSheetNames in 'Product1$', 'Product2$', 'Product3$', 'Product4$'

         

          Load Statement....

     Next

     Hope this helps

Regards

Andrew Hudson

erichshiino
Partner - Master
Partner - Master

Hi,

if you are using QV on a win32bit environment (where you can use OLE Jet), you can use the example posted by Celabarasan: http://community.qlik.com/message/195769#195769

You just need to adapt the script to read tables that start with 'Product*'

Hope this helps,

Erich

Not applicable
Author

These are possible sheetnames (and there's no definite number of sheets, it can be more than 10, or less than 10.) Only sheetname of sheet1 is fixed.

POSSIBLE SHEETNAMES

  1. Master file
  2. Netbook
  3. Notebook
  4. Mouse
  5. Wire

And etcetera

erichshiino
Partner - Master
Partner - Master

Hi,

In that script, you can change this line:

    IF wildmatch('$(sheetName)', 'Sales*') THEN  // Only sheetNames that begin "Sales"

to

    IF not(wildmatch('$(sheetName)', 'Master File*')) THEN  // All sheetNames that are not Master File

Hope this helps,

Erich