separate name and address

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Everyone,
I have thousands of cells with names and addresses, and each cell combines
both. I'd like to separate "Jane Doe 123 Street Road" into "Jane Doe" in one
column then the rest of the address in another. I've tried text to columns
and the formulas =LEFT, =MID, etc None of these have worked because
everyone's name is a different number of characters. Any help is greatly
appreciated.
Thank you,
Aaron
 
If it is always Name-space-name-space-address you could use

=LEFT(A1,FIND(" ",A1,FIND(" ",A1)+1)-1)

and

=RIGHT(A1,LEN(A1)-FIND(" ",A1,FIND(" ",A1)+1))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
try this

Sub findnuminstrall()
For Each c In Selection
For i = 1 To Len(c)
If Mid(c, i, 1) Like "*[0-9]*" Then Exit For
Next i
c.Offset(, 1) = Left(c, i - 1)
c.Offset(, 2) = Right(c, Len(c) - i + 1)
Next c
End Sub
 
Hi Everyone,
I have thousands of cells with names and addresses, and each cell combines
both. I'd like to separate "Jane Doe 123 Street Road" into "Jane Doe" in one
column then the rest of the address in another. I've tried text to columns
and the formulas =LEFT, =MID, etc None of these have worked because
everyone's name is a different number of characters. Any help is greatly
appreciated.
Thank you,
Aaron

Is there some consistency?

Does the address always start after the 2nd space?

Does the address always start with a number?
--ron
 
Thank you everyone!!

Bob Phillips said:
If it is always Name-space-name-space-address you could use

=LEFT(A1,FIND(" ",A1,FIND(" ",A1)+1)-1)

and

=RIGHT(A1,LEN(A1)-FIND(" ",A1,FIND(" ",A1)+1))

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Copy to another worksheet IF 3
separating text 2
SUM 2
rows within a cell? 4
Extract Mailing Address to multiple cells 1
Insert a semicolon in lieu of ALT Enter 4
search array 3
Extract text from cell 9

Back
Top