Split Full Name--Including Title & Suffix--Using a Formula

KimprintCreative

New Member
Joined
Sep 25, 2014
Messages
5
Hello! So, I have a spreadsheet with the title, first name, middle initial, last name, and suffix in one cell. Using a formula, is there a way I can split all of this and, if a cell does not have all four components, just have it fill in what it does have?

So...

A1 = Rev. Kimberly E. Holmes, DMin
B1 = Rev.
C1 = Kimberly
D1 = E.
E1 = Holmes
F1 = DMin

Sometimes the title will be a full one (Pastor, Minister, etc) and sometimes an abbreviated one (Dr., Atty,. etc).

Thank you in advance to anyone reading this who can/will offer help and thank you to the mods in case I have posted this in the wrong place or am asking a question that has already been answered. :LOL:
 
... better formula for column B ..

Split Names (2)

*ABCDEF
1Rev. Kimberly E. Holmes, DMinRev.KimberlyE.HolmesDMin
2Reverend Kimberly E. Holmes, DMinReverendKimberlyE.HolmesDMin
3Kimberly E. Holmes, DMin*KimberlyE.HolmesDMin
4Kimberly Holmes, DMin*Kimberly*HolmesDMin
5Kimberly Holmes*Kimberly*Holmes*
6Kimberly Holmes, Dmin*Kimberly*HolmesDmin
7Rev Kimberly Holmes, DMinRevKimberly*HolmesDMin
8Rev. Kimberly E. HolmesRev.KimberlyE.Holmes*
9Minister Kimberly Holmes, DminMinisterKimberly*HolmesDmin
10Min. Kimberly Holmes, DminMin.Kimberly*HolmesDmin
11Min. Kimberly X. HolmesMin.KimberlyX.Holmes*
12Pastor Kimberly Z. Holmes, DmaxPastorKimberlyZ.HolmesDmax

<tbody>
</tbody>

Spreadsheet Formulas
CellFormula
B1=IF(LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+(D1="")+(F1="")=4,LEFT(A1,FIND(" ",A1)-1),"")
C1=TRIM(LEFT(SUBSTITUTE(A1,B1,"",1),FIND(" ",SUBSTITUTE(A1,B1,"",1),2)))
D1=MID(A1,SEARCH(" ?. ",A1&" .. ")+1,2)
E1=MID(SUBSTITUTE(A1,", "&F1,""),LEN(B1&C1&D1)+COUNTIF(B1:D1,"?*")+1,LEN(A1))
F1=REPLACE(A1,1,FIND(",",A1&",")+1,"")

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

Thank you! :) I took some of the formatting I had out in the sheet to simplify things and now it is working for me. :) Now the challenge is getting it to copy to all the cells. For some reason, when I copy the cells it sets the reference to two cells above. :confused: :LOL:

Does anyone know how I can mark this as solved?
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Thank you! I took some of the formatting I had out in the sheet to simplify things and now it is working for me. Now the challenge is getting it to copy to all the cells. For some reason, when I copy the cells it sets the reference to two cells above. :confused: :LOL:
If you put those formulas in row 1 and copy them to other rows they should be fine.

If you put those formulas in row 3 and then copy them, they will all refer to two rows above themselves.



Does anyone know how I can mark this as solved?
Your sentence above has done it! :)
We don't do any more than that in this forum as somebody else might still come along with a better answer.
 
Upvote 0

Forum statistics

Threads
1,215,159
Messages
6,123,348
Members
449,097
Latest member
thnirmitha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top