How can I parse First, Middle Initial, Last name in Crystal Reports with inconsistent data?

I am trying to parse a Full Name field into First, Last, & Middle Initial in Crystal Reports.  I am able to get the Last name, but am having issues getting the first & middle initial.  The issue lies in the data. (And my lack of knowledge).  The data looks like:

Smith; John
Smith; John D.
Smith; John D
Smith; John David

I was able to parse the last name, but I am unsure how to get the first & middle separated.  I can get them both, but I can't figure out how to get them separated when the data is inconsistent.  
Any help would be greatly appreciated!  Thanks!
jennifer georgeAsked:
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.

mlmccCommented:
Try this idea

LastName
Split({FullNameField}, ';')[1]

Open in new window


FirstName
If UBound(Split({FullNameField}, ' ')) > 1 then
    Split({FullNameField}, ' ')[2]
Else
    ' '

Open in new window


Middle Name
If UBound(Split({FullNameField}, ' ')) > 2 then
    Split({FullNameField}, ' ')[3]
Else
    ' '

Open in new window


MiddleInitial
If UBound(Split({FullNameField}, ' ')) > 2 then
    Left(Split({FullNameField}, ' ')[3], 1)
Else
    ' '

Open in new window


mlmcc
0

Experts Exchange Solution brought to you by

Your issues matter to us.

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

Start your 7-day free trial
jennifer georgeAuthor Commented:
Worked perfect!  Thank you!
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
Crystal Reports

From novice to tech pro — start learning today.