Textsplit Full name

ExcelNewbie2020

Active Member
Joined
Dec 3, 2020
Messages
293
Office Version
  1. 365
Platform
  1. Windows
Sirs,

I have a data from column A consist of full name arrange by Given Name, Middle Initial and Surname. I would like to separate the full names to 3 columns. As seen in the table..I hope this could be done by a formula or vba.. many thanks


Book3
ABCD
1Expected Result
2Arrange by Given Name/Middle Initial/SurnameSurnameGiven NameMiddle Initial
3Aidan D SimpsonSimpsonAidanD
4Keith Beau S Caldwell SrCaldwell SrKeith BeauS
5Isis Jon D JohnsonJohnsonIsis JonD
6Mark Joseph Martin K PrincePrinceMark Joseph MartinK
7Zayne J Shah JrShah JrZayneJ
8Victoria Monique Z DominguezDominguezVictoria MoniqueZ
9Sammy Charles T De VeraDe VeraSammy CharlesT
10Penelope P De LeonDe LeonPenelopeP
11
Sheet3
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
@ExcelNewbie2020 Does this help?

MayMrXL.xlsm
ABCD
1Expected Result
2Arrange by Given Name/Middle Initial/SurnameSurnameGiven NameMiddle Initial
3Aidan D SimpsonSimpsonAidanD
4Keith Beau S Caldwell SrCaldwell SrKeith BeauS
5Isis Jon D JohnsonJohnsonIsis JonD
6Mark Joseph Martin K PrincePrinceMark Joseph MartinK
7Zayne J Shah JrShah JrZayneJ
8Victoria Monique Z DominguezDominguezVictoria MoniqueZ
9Sammy Charles T De VeraDe VeraSammy CharlesT
10Penelope P De LeonDe LeonPenelopeP
11   
Sheet16
Cell Formulas
RangeFormula
B3:B11B3=TRIM(RIGHT(SUBSTITUTE(A3," "&D3&" ",REPT(" ",999)),999))
C3:C11C3=TRIM(LEFT(SUBSTITUTE(A3," "&D3&" ",REPT(" ",999)),999))
D3:D11D3=IFERROR(MID(A3,SEARCH(" ? ",A3)+1,1),"")
 
Upvote 0
Solution
@ExcelNewbie2020 Does this help?

MayMrXL.xlsm
ABCD
1Expected Result
2Arrange by Given Name/Middle Initial/SurnameSurnameGiven NameMiddle Initial
3Aidan D SimpsonSimpsonAidanD
4Keith Beau S Caldwell SrCaldwell SrKeith BeauS
5Isis Jon D JohnsonJohnsonIsis JonD
6Mark Joseph Martin K PrincePrinceMark Joseph MartinK
7Zayne J Shah JrShah JrZayneJ
8Victoria Monique Z DominguezDominguezVictoria MoniqueZ
9Sammy Charles T De VeraDe VeraSammy CharlesT
10Penelope P De LeonDe LeonPenelopeP
11   
Sheet16
Cell Formulas
RangeFormula
B3:B11B3=TRIM(RIGHT(SUBSTITUTE(A3," "&D3&" ",REPT(" ",999)),999))
C3:C11C3=TRIM(LEFT(SUBSTITUTE(A3," "&D3&" ",REPT(" ",999)),999))
D3:D11D3=IFERROR(MID(A3,SEARCH(" ? ",A3)+1,1),"")
Thank you sir.. it does work.. while i'm running the formula, i noticed that my raw data has an input of middle name in it instead of initial. can we possibly tweak the formula so it can also extract the middle names?

Book3
ABCD
1Expected Result
2Arrange by Given Name/Middle Initial/SurnameSurnameGiven NameMiddle Name/Initial
3Aidan D SimpsonSimpsonAidanD
4Keith Beau S Caldwell SrCaldwell SrKeith BeauS
5Isis Jon D JohnsonJohnsonIsis JonD
6Mark Joseph Martin K PrincePrinceMark Joseph MartinK
7Zayne J Shah JrShah JrZayneJ
8Victoria Monique Z DominguezDominguezVictoria MoniqueZ
9Sammy Charles T De VeraDe VeraSammy CharlesT
10Penelope P De LeonDe LeonPenelopeP
11Camilla Wyatt LennonLennonCamillaWyatt
12Larry Walker PortlandPortlandLarryWalker
13Aubrey Chelsea Truett BeckleyBeckleyAubrey ChelseaTruett
14Mark Donald Rhodes De ChavezDe ChavezMark DonaldRhodes
Sheet3
Cell Formulas
RangeFormula
B3:B10B3=TRIM(RIGHT(SUBSTITUTE(A3," "&D3&" ",REPT(" ",999)),999))
C3:C10C3=TRIM(LEFT(SUBSTITUTE(A3," "&D3&" ",REPT(" ",999)),999))
D3:D10D3=IFERROR(MID(A3,SEARCH(" ? ",A3)+1,1),"")
 
Upvote 0
@ExcelNewbie2020 Sorry but for me the absence of the single initial makes the overall structure of the names too ill-defined to sensibly provide a formula solution.
 
Upvote 0
@ExcelNewbie2020 Sorry but for me the absence of the single initial makes the overall structure of the names too ill-defined to sensibly provide a formula solution.

Mr. Snakehips. For what it’s worth, your method of getting the first initial is very helpful to me. My names tend to have a period after the initial so I modified the find to “?.” Works like a charm.

Thank you!
 
Upvote 0
Mr. Snakehips. For what it’s worth, your method of getting the first initial is very helpful to me. My names tend to have a period after the initial so I modified the find to “?.” Works like a charm.

Thank you!
Mr Carter. Worth a lot to think it has proved useful. Thank you!
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,683
Members
449,116
Latest member
HypnoFant

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