Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Extract only numbers in the String

Hi All

i have an issues i need to extract the Cheque number from the bank Statement Excel

The String like this

CHQ DEPOSIT002423xxx BANK LTDCHQ No 002423

In this Above String i need to extract the Red Number alone other string and number i don't want

Kindly help me to achieve this...

Thanks

Siraj

1 Solution

Accepted Solutions
MayilVahanan

Hi

Try like this

=Keepchar(TextBetween('CHQ DEPOSIT002423xxx BANK LTDCHQ No 002423','','BANK'),0123456789)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

7 Replies
PrashantSangle

hI,

use

KeepChar(fieldname,'0123456789')

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Anonymous
Not applicable
Author

hi result Come like this

002423002423

i want only of 002423 this kindly help me.

arulsettu
Master III
Master III

try this

=KeepChar(Left('CHQ DEPOSIT002423xxx BANK LTDCHQ No 002423',20),'0123456789')

MK_QSL
MVP
MVP

=KeepChar(TextBetween('CHQ DEPOSIT002423xxx BANK LTDCHQ No 002423',' ',' '),'0123456789')

PrashantSangle

If Nos is always come after last space then

you can try

subfield(FieldName,' ',-1)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
MayilVahanan

Hi

Try like this

=Keepchar(TextBetween('CHQ DEPOSIT002423xxx BANK LTDCHQ No 002423','','BANK'),0123456789)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Hi thanks for all

All the answers working fine

Thanks to all..

Siraj