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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

loading 1 cell value

HI All,

i have a value in file.XLSM  in one cell

for eg cell C2 has a value of 10

i need to load value 10 in my script and store in a variable called test

please advise if possible

thanks

6 Replies
Not applicable
Author

Hi matharasu,

Sounds like a very specific question, for a broader problem...

What exactly is your problem? I think you can just load the value of cell2 into qlikview (or is that already the problem)?

When done, you can store it in a variable with this code:

let test=peek(Fieldname [ , Row [ , TableName ] ] )

Hope it helps.

Good luck!

Not applicable
Author

the problem is the sheet present in file.xlsm contains lot of other information which is not relevant

thus is there a way to load a specific cell from a sheet.

thanks

Anonymous
Not applicable
Author

Hi Matharsu,

Can You Share the test data file for same.

Not applicable
Author

load

columnname

from tablename.xslm

where columnname = '10';

Let test = columnname;

er_mohit
Master II
Master II

load a,

b, value

from table

where exists(value=10);

Not applicable
Author

I just tested. It is no problem. Just load your data from excel using the wizard in the loadscript for loading the first table. Usw rowno() for determining which row you need and then you have your data.

This is the script i used.

testExcelTemp:

LOAD

RowNo()as row,

          B,

     C,

     D,

     E,

     F,

     G,

     H,

     I,

     J,

     K,

     L,

     M,

     N

FROM

x.xlsx

(ooxml, no labels, table is Sheet1) ;

NoConcatenate

Final:

load J

resident

testExcelTemp

where row = 11;

drop table testExcelTemp;