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: 
madhumitha
Creator
Creator

Extracting data from Excel

Hello All,

Below is the format of my source excel. I am trying to extract the break down fields (both Alphabet and the numbers) as a different table in my script. How should I approach it?

   

Primary Doc noADXXXXXX
Primary Date StartDD-MM-YYY
Primary Date EndDD-MM-YYY
Primary Reference125
Secondary Doc noADXXXXXX
Secondary Date StartDD-MM-YYY
Secondary Date EndDD-MM-YYY
Secondary Reference125
Completeness% Complete
Some long TextXX%
Break Down
ABC15
QEF12
REF3
GAR2
1 Solution

Accepted Solutions
Ralf_Heukäufer
Partner - Creator III
Partner - Creator III

I think not directly,

you can save the number of lines to a variable and work with an if clause in the next read like:

if (rowno() > myvaraible, exit script)

or you can read a fixed number of lines with the first command:

First ‒ Qlik Sense

View solution in original post

7 Replies
Ralf_Heukäufer
Partner - Creator III
Partner - Creator III

Hello,

can you upload an example Excel file?

madhumitha
Creator
Creator
Author

Hi ,

I have attached the excel.

I am trying to extract E-Doc Name and No of Queries into one table in QV.

Thanks in Advance

Ralf_Heukäufer
Partner - Creator III
Partner - Creator III

For that you can use:

LOAD

    "E-Doc name",

    "NO of Queries"

FROM [lib://Path to your File/Sample.xlsx]

(ooxml, embedded labels, header is 20 lines, table is Sheet1);

header is 20 lines says here he begins to read after line 20 as header

madhumitha
Creator
Creator
Author

Thanks Ralf.

It extracts data.

Is there anyway I could stop the extraction when QV finds a newline in the excel?

Ralf_Heukäufer
Partner - Creator III
Partner - Creator III

I think not directly,

you can save the number of lines to a variable and work with an if clause in the next read like:

if (rowno() > myvaraible, exit script)

or you can read a fixed number of lines with the first command:

First ‒ Qlik Sense

Ralf_Heukäufer
Partner - Creator III
Partner - Creator III

Is that what you wanted to know, or did I misunderstand your second question?

If the answer was correct please mark your Your Question as correct.

madhumitha
Creator
Creator
Author

Sure Ralf.

I will do that thanks!