Excel Split Full Name

sqldba20

New Member
Joined
Jun 24, 2024
Messages
1
Office Version
  1. 365
I have data-set with full name. I want to split the first and Middle name in one column and the Last name in separate column. Some of the names have middle names between first and last name whereas as some do not. Also, some have last name with I and II (record 6 and 7). I tried =RIGHT(A12,LEN(A12)-RIGHT(FIND(" ",A12,1))) but it is putting the Middle Name and Last Name together.


ExcelDesiredOutPut.JPG



Thanks You!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Maybe there are more possible combinations but try this as a start:

Excel Formula:
=LET(
spaces,LEN(A12)-LEN(SUBSTITUTE(A12," ","")),
IFS(spaces=1,HSTACK(TEXTBEFORE(A12," ",1),TEXTAFTER(A12," ",1)),spaces>1,HSTACK(TEXTBEFORE(A12," ",2),TEXTAFTER(A12," ",2))))
 
Upvote 0
Solution
Upvote 0
Investigate Flash Fill which does not require any formula. It is on the Data Tab --Data Tools
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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