String stuff again!!

G

Guest

Hi,

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

i.e. asdf12345asdfg

to give 12345

Cheers

Manny
 
J

JulieD

Hi

if all your strings start with four alpha followed by five numeric then use
=MID(A1,5,5)

Cheers
JulieD
 
F

Frank Kabel

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"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top