On Thu, 25 May 2006 23:44:26 -0500, lehainam
wrote:
Dear all,
In Excel, is there any function that I can get number only in string
that has number & text
Ex: in cell A1 589as56
I would like to get the string 58956 only
Thank you very much
Nam
You could download and install Longre's free morefunc.xll add-in from
http://xcell05.free.fr/ (which will also give you acess to many other useful
functions) and then use this Regular Expression formula (with your string in
A1):
=REGEX.SUBSTITUTE(A1,"\D")
The formula substitutes <nothing for everything in A1 that is not a digit.
--ron