Hello
I'm wondering, if there is formula to extract numbers from an alphanumeric string. The numbers will be 5 digits, but the placement within the string will vary. I was using MID, but I have to keep changing the formula based on the placement of the numbers in the string and it's not very efficent. Thanks!
Examples are:
[TABLE="width: 227"]
<tbody>[TR]
[TD]22047 - Cjljj
S022509 Chhheefe 5/12/14
Self Pay # 022597 jjjkjkj
jljlj cheque #022378
[TABLE="width: 170"]
<colgroup><col style="width: 170pt; mso-width-source: userset; mso-width-alt: 8265;" width="226"> <tbody>[TR]
[TD="width: 226, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 170"]
<colgroup><col style="width: 170pt; mso-width-source: userset; mso-width-alt: 8265;" width="226"> <tbody>[TR]
[TD="width: 226, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 227"]
<tbody>[TR]
[TD]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
I'm wondering, if there is formula to extract numbers from an alphanumeric string. The numbers will be 5 digits, but the placement within the string will vary. I was using MID, but I have to keep changing the formula based on the placement of the numbers in the string and it's not very efficent. Thanks!
Examples are:
[TABLE="width: 227"]
<tbody>[TR]
[TD]22047 - Cjljj
S022509 Chhheefe 5/12/14
Self Pay # 022597 jjjkjkj
jljlj cheque #022378
[TABLE="width: 170"]
<colgroup><col style="width: 170pt; mso-width-source: userset; mso-width-alt: 8265;" width="226"> <tbody>[TR]
[TD="width: 226, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 170"]
<colgroup><col style="width: 170pt; mso-width-source: userset; mso-width-alt: 8265;" width="226"> <tbody>[TR]
[TD="width: 226, bgcolor: transparent"] [/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 227"]
<tbody>[TR]
[TD]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]