Hello Henrik,
Here is a UDF (user defined function) that does what you want
If you are not familiar with UDFs, email me at my private email not the
group
Function t2n(textin)
For j = 1 To Len(textin)
mychar = Mid(textin, j, 1)
If IsNumeric(mychar) Then temp = temp * 10 + mychar
'Debug.Print mychar, temp
Next j
t2n = temp
End Function
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email
"Henrik" wrote in message
...
Hi,
I need to extrapolate the numeric values from a list of text strings.
However, the numeric portion of each string is not consistent from
observation to observation. Does anyone have any idea about how to do this
in
excel.
I.e.
one observation might be
NHY939591C
the numeric portion is
939591
PW086877B
numeric portion is
086877
AB087623
numeric portion is
087623
Your ideas are much appreciated.
Thanks,
Henrik