Complex =mid formula

F

foff

I have a field which is lets say 13 ABC Street

Now I'm trying to isolate the street name from the street number. I
tried this:

=mid(A1,SEARCH(" ",A1,1,len(a1)-search(" ",a1,1)

But it doesen't let me. What this does is searches for the first space
and returns a value of 3, so this tells the =mid to start from the third
character. Then I do a LEN to get the total number of characters then
SUBTRACTED by another search which should give me:

=mid(a1,3,10)
 
F

foff

funniest thing, excel asked me to correct it and offered this:

=MID(A1,SEARCH(" ",A1,1),LEN(A1)-SEARCH(" ",A1,1))

Which is just a bracket in the end could've sworn I tried it.

EDIT:

Ok this one does it:

=MID(A1,SEARCH(" ",A1,1)+1,LEN(A1)-SEARCH(" ",A1,1))
 
K

KL

Hi foff,

If you only need to sparate the number from the rest of the text, you could
use these formulae:

=LEFT(A1,FIND(" ",A1)-1)
=TRIM(MID(A1,FIND(" ",A1),LEN(A1)))

Reagards,
KL
 

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

Similar Threads

MID / LEN 2
Formula anomaly 7
Nested MID and FIND - OR? 3
Search / Mid function 4
MID Formula 9
IsNumber & Mid function 3
Int Iserror Len Mid Find formula 1
tag Numbers 8

Top