Seperating information in a cell

A

andyK

What formula can be used to sepearte information in a cell and put into
several cells? I exported infromation contained in a pdf file into Excel. In
one of the columns each cell has a full name, Street address, City, state and
zip. I want to have first name, last name, street address, city, state and
zip extracted and put into different columns. Can this be done?
 
R

Rick Rothstein \(MVP - VB\)

How is the full name shown in the text... <last name><comma> <first name> or
simple <first name> <last name>? Are there ever any middle names or titles
(Mr., Mrs, Dr., etc.)?

Rick
 
A

andyK

The Name is shown in each cell like the following:

First Name Middle Initial Last Name

(There are no commas just a space between First Middle and Last name
 
R

Rick Rothstein \(MVP - VB\)

What do you put if there is no middle initial (like for my wife... she
doesn't have a middle name)? The reason I ask is if you put nothing, then it
will be hard to tell the difference between these to names (I know people
with names like these)...

Mary Anne Jones (Mary Anne is her full first name)

Tom Della Rossa (Della Rossa is his full last name)

Rick
 
A

andyK

If there is no middle initial then nothing goes as They wanted the first name
column to have either First name alone or First name than a space and then
middle initial

Thanks, Andy
 
R

Rick Rothstein \(MVP - VB\)

I think you added something new from your first post.... if there is a
middle initial, it is to be linked with the first name and placed in the
first name column, is that correct? Three more questions...

1) Is the state name a 2-character abbreviation or is it spelled out fully?

2) Is the zip code (which I presume you want in its own column) **always**
5-digits long or could it be with the dash and additional 4 digit tacked on?

3) Is all the data separated by a <comma><space> as you show (except for the
zip code which I presume is just separated from the state name by a single
<space>)?

Rick
 
A

andyK

Yes that is correct with the middle initial. State is two characters, zip is
5 numbers, all information is only seperated by a space except city and state
which is by a comma.
 
R

Rick Rothstein \(MVP - VB\)

??? The street address is separated from the name section by only a single
space? And the street address is separated from the city by only a single
space? No commas?? Really??? Since street addresses can be made up of more
than one word (discounting the number, assuming it has a number) and city
names can be made up of more than one word and since we don't have a lock on
multi-part names with middle initials either there or not there, I would say
this just went from a doable (better than 99% of the time) to damn near
impossible to do any more. Are you positive the name, address and city names
sections are only separated by a **single** space?

Rick
 
A

andyK

Yes. This is not for something we will have to do all the time. It was for a
pdf file that I converted and exported into Excel and need to have these
items seperated so that we can sort by different items.

Thanks Andy
 
R

Rick Rothstein \(MVP - VB\)

Is there any chance you can export the data again using a consistent
delimiter (a <comma><space> for example) between the name field and address,
between the between address and city?

Rick
 

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