Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Getting a string out of a excel cell

hey i'm kind of new to qlikview, so any help would be much appreciated.

What i want to do is get a string out of a cell in a uploaded excel sheet. for example there is feild saying "msg="test message" " the length of the message is different every time....

what i want to do is get the "test message part".. thankyou in advance.. cheers

16 Replies
Not applicable
Author

new test message and some other message are samples mate... those are not the actual data...

what i basically want to do is get the value after "msg="

thanks anyway

cheers

Anonymous
Not applicable
Author

Hi,

Use subfield(), read about it in the help and apply the same. Use '=' as delimiter and you are done.

nizamsha
Specialist II
Specialist II

post sme qvw so we can have a try

if U want to remove  msg=mean then  subfield() is enough

Not applicable
Author

ok thanks.. ill try it

MK_QSL
MVP
MVP

In your script... instead of message, use below...

SubField(Replace(message,'"',''),'=',2)  as message

Update :

Method 2

Mid(message,Index(message,'"',1)+1,Index(message,'"',2)-Index(message,'"',1)-1) as message,

Method 3

TextBetween(message,'"','"') as message

Not applicable
Author

Try this

 

=SubField('"msg="test message" "','"',3)  or 

 

=SubField(YourMessageField,'"',3)

Not applicable
Author

i took it as an expression rather than on load thankyou all for the support.. much appreciated