# parse out three excel fields from one column

i have one column of data in excel that needs to be split.

A1
John Doe 7-12-69
Jane Smith 10-1-85
Alex Man 3-3-91

I need the above to be parses as:
B1 (First Name)            C1 (Last Name)             D1 (Date)
John                              Doe                               7-12-69
Jane                              Smith                             10-1-85
Alex                              Man                                3-3-91

there will be no middle names so the data will appear as above, including the dates (which do not have to be in data format but do have to take into account 6-8 characters to be included

thanks!
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
See attached;

Basically, I have created the below function;

Public Function SplitText(sString As String, sDelimeter As String, nElement As Integer) As String
SplitText = Split(sString, sDelimeter)(nElement - 1)
End Function
ee-SplitField.xls
0
VBA ExpertCommented:
Data>Text to columns... Delimited, Space, Finish.

Though the results will end up in A:C not B:D.
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:
Put these formulas in columns B-D and fill down
B1 = left(a1,find(" ",a1)-1)
C1=left(right(a1,len(a1)-len(b1)-1),find(" ",right(a1,len(a1)-len(b1)-1))-1)
D1=right(A1,len(a1)-len(b1)-len(c1)-2)

That should properly parse them into 3 columns
0
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.