Posted to microsoft.public.excel.worksheet.functions
|
|
extracting numbers within text string!
yes Domenic!
its works like a charm!
BTW can u pl explain the rational behind using the expression
"9.99999999999999E+307" just for acadamic interest?!
-via135
Here's another way...
=LOOKUP(9.99999999999999E+307,--MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A
1&"0123456789")),ROW(INDEX(A:A,1):INDEX(A:A,LEN(A1 )))))
Note that both my formula and Ron's will omit leading zeros, if they
exist. If you'd like to keep them when they exist, try...
=MID(A1,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A1&"01234 56789")),SUMPRODUCT((LE
N(A1)-LEN(SUBSTITUTE(A1,{0,1,2,3,4,5,6,7,8,9},"")))))
Hope this helps!
--
via135
------------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...o&userid=26725
View this thread: http://www.excelforum.com/showthread...hreadid=539020
|