A Different approach that may work
Ron - Don't know if you are still monitoring this or will receive an email
notification of this post but I wanted to thank you for this excellent tool.
It's saved me a lot of time and trouble and its much appreciated. That's
besides the fact that its going to make me look good too!
Thanks,
Bill
"Ron Coderre" wrote:
I've been playing with this formula, which pulls from the first digit found
thru the last digit found:
=MID(A1,MATCH(1,--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),0),1+MAX(--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))*ROW(INDIREC T("1:"&LEN(A1))))-MATCH(1,--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),0))
Note: Commit that array formula by holding down the [Ctrl] and [Shift] keys
when you press [Enter].
So...
"OFF 11-4005ABC" would result in 11-4005
"OFF///130H" would result in 130
etc
I think that handles all of the pertinent scenarios...let me know.
***********
Regards,
Ron
"Ron Coderre" wrote:
Nope....it misses punctuation within the numbers, as in:
OFF 11-4005
***********
Regards,
Ron
"Ron Coderre" wrote:
I know this is a bit late, but I just came up with this, which seems to work
well:
=MID(A1,MATCH(1,--ISNUMBER(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)),0),COUNT(--MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1)))
If finds the first digit location and the count of digits in the string and
uses those values in the MID function.
***********
Regards,
Ron
"Corey" wrote:
Hello. I have a column with data that contain numerics and text:
ON 3127
ON2679
O/F 20R
OFF///130H
Is there a formula I can input in an adjacent cell to only pull out the
numbers to give me the following:
3127
2679
20
130
Any help is appreciated. Thanks!
|