View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default String stuff again!!

Hi
if the number is somethere in the middle of a string try:
=
IF(ISNUMBER(LOOKUP(2,1/MID(A1,seq,1),seq)),MID(A1,LOOKUP(2,1/MID(A1,102
4-seq,1),1024-seq),LOOKUP(2,1/MID(A1,seq,1),seq)-LOOKUP(2,1/MID(A1,1024
-seq,1),1024-seq)+1),"")


where seq is a defined name with the formula:
=ROW(INDIRECT("1:1024"))


--
Regards
Frank Kabel
Frankfurt, Germany


Mannyluk wrote:
Hi,

Can someone tell me the function used to ectract a number from a
string??

i.e. asdf12345asdfg

to give 12345

Cheers

Manny