Forum Discussion
Extracting 7-digit number from text string
Hi,
I have a bank statement that needs recon. I need to extract number ranging from1000000 to 2000000 from a column. Is there a formula or ways to extract the specific number range into a different column.
5 Replies
- djclementsSilver Contributor
Syed_001 If possible, could you please share an example of a complete text string from which you want to extract the number? An appropriate solution may depend on the other text present in the string, as well as the location of the number within the string. Use "dummy" data in your example, so you're not sharing any sensitive information, but please be sure to follow the same format as your real data.
- Syed_001Copper Contributor
Hi djclements,
These are dummy sample of the text.
- XXXXXX7209 MOHD SYE BIN OMAITR 1004925 JSC6896 RFD
- XXXXXX4020 HONG KONG ISLAND IND AB 1005049
The number will always be between 1000000 to 2000000. The position of the number varies.
- peiyezhuBronze Contributor=WEBSERVICE("http://e.anyoupin.cn/eh3/?preg_match~(?<=\D)\d{7}(?=\D)~" & A2)