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: 
anuradhaa
Partner - Creator II
Partner - Creator II

Read Text when exporting from excel

IDLable
1dfdfd,Sprint1,dgd
2Sprint1
3fdfdg,gdgfg,ghfhfh,Sprint1
4fsfsdf,Sprint2
5Sprint2
6dfd,3434,gdg434,Sprint1,egrrg,555

I have above data set in excel. i want to find the the word 'Sprint%' in the column Lable and store the value (like Sprint1,Sprint2) in a separate column call Sprint when loading that excel. is it possible.

3 Replies
Anonymous
Not applicable

use function mid:

=mid(Lable,FindOneOf(Lable,'Sprint%'),7) - works if Sprintx has only values 0--9

if your number after Sprint contain more than 1 Digit you Need to find the right comma after Sprint to get the correct lenght (instead 7)

anuradhaa
Partner - Creator II
Partner - Creator II
Author

here when there is a text startng with S then it is also consider as 'Sprint%' when we use finfoneof

tobivogt
Partner - Contributor III
Partner - Contributor III

Hi,

maybe splitting the substrings in Lable field would make it a bit easier.

Meets the following script your requirements:

TEST:

LOAD * INLINE [

ID, Lable

1, "dfdfd,Sprint1,dgd"

2, "Sprint1"

3, "fdfdg,gdgfg,ghfhfh,Sprint1"

4, "fsfsdf,Sprint2"

5, "Sprint2"

6, "dfd,3434,gdg434,Sprint1,egrrg,555"

];

NEU:

LOAD * where SUB_LABLES like 'Sprint*';

LOAD

  *,

  subfield(Lable,',') as SUB_LABLES

resident TEST;

Regards,

Tobias