How to split full name to first and last name in Excel?
Supposing you have a name roster as the first screen shot shows in single column below, and you need to split the full name to the first name column， middle name column and last name column as the following screenshot shown. Here are some tricky methods to help you solve this problem:
Split full names to first and last names by comma or other delimiters:
If your full names are separated by comma or other delimiters in cell,Kutools for Excel' Split Cells feature also can do you a favor, see screenshot: Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now! |
Split full name to first and last name with formulas
Split full names to first and last names:
You can use the Left function, Right function and Find function to spit a full name to the first name and last name with following steps:
1. Enter the formula of =LEFT(A2,FIND(" ",A2,1)-1) in a blank cell, says Cell C2 in this case, and then drag the fill handle down to the cells which you want to fill this formula, and all first names have been extracted at once, see screenshot:
2. Then enter the formula of =RIGHT(A2,LEN(A2)-FIND(" ",A2,1)) in another blank cell, Cell D2, and drag the fill handle down to the cells which you want to apply this formula, and all last names have been extracted in column D as following screenshot shown:
Split full names to first, middle and last names:
If you want to split full names to first, middle and last names into separate columns, the following formulas may do you a favor.
1. Enter this formula: =LEFT(A2,SEARCH(" ",A2)) into a blank cell C2, and then drag the fill handle down to the cells to apply this formula, and all first names have been split into column C, see screenshot:
2. Then enter this formula: =MID(A2,SEARCH(" ",A2,1)+1,SEARCH(" ",A2,SEARCH(" ",A2,1)+1)-SEARCH(" ",A2,1)) into a blank cell D2, and then drag the fill handle down to the cells to apply this formula, and all middle names have been split into column D, see screenshot:
3. At last, enter this formula: =RIGHT(A2,LEN(A2)-SEARCH(" ",A2,SEARCH(" ",A2,SEARCH(" ",A2)+1))) into a blank cell E2, and then drag the fill handle down to the cells to apply this formula, and all first names have been split into column E, see screenshot:
Split full name to first and last name with Text to Column command
It is not easy to remember the function. Please do not worry about it. The second way will guild you to split the full name column easily.
1. Select the column that you will split, in this case it is A2:A13.
2. Click the Text to Columns button under Data Tab.
3. In the Convert Text to Columns Wizard – Step 1 of 3 dialog box, check the Delimited option, and click Next button.
4. In the Step 2 of 3 wizard, only check the Space option in the Delimiters section, and click Next button.
5. In the following wizard, check the Text option in the Column data format section, and specify the Destination cell where you want to put the results. See screenshot:
6. Click the Finish button. Then you will see the full name column has been separated into first name column, middle name column and last name column at once.
Split full name to first and last name with Kutools for Excel quickly and easily
If you are tired with the above two methods, here, I can recommend you a useful tool – Kutools for Excel, with its Split Names feature, you can quickly split the full names to first and last names, or split full names to first, middle and last names as you need.
Kutools for Excel : with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. |
After installing Kutools for Excel, please do as follows:
1. Select the name range that you want to split.
2. Click Kutools > Text > Split Names, in the Split Names dialog box, specify the Split types you want, if you want to split the full name to first and last name, please check First name and Last name, see screenshot:
3. Then click OK button, and another dialog will appear, please select a cell where you want to put the result in the dialog, see screenshot:
4. And click OK button, the full names have been split into first name column and last name column, see screenshot:
Note: If your full name contains first, middle and last names needed to be split into three columns separately, you just need to check First name, Middle name and Last name in the Split Names dialog box and you will get the following result:
Download and free trial Kutools for Excel Now !
Split full name to first and last name with Kutools for Excel quickly
Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!
Recommended Productivity Tools
Office Tab
Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.
Kutools for Excel
Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!
200 New Features for Excel, Make Excel Much Easy and Powerful:
- Merge Cell/Rows/Columns without Losing Data.
- Combine and Consolidate Multiple Sheets and Workbooks.
- Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
- Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
- More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...
Comments
=LEFT(TRIM(MID( SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),FIN D(" ",TRIM(MID(SUBS TITUTE(A1," ",REPT(" ",LEN(A1))),LEN(A1),1000)),1)-1)
where A1 is the cell in which the name is located....
Its not working out to split the name contains first name, mid name, last name.
Can u please help me to split the same for the below given names.
With space & without space.
My constraint for the another category is can we split the names my upper case.
E.g (1): William J Smith
E.g (2): WilliamJSmith
I was trying to use your formula for the change of first, middle and last name in three different- different column of One complete name but I did not get correct answer of this questions, So please resolve this problem and sent me on my e-mail id.
(Note:- My e-mail id is "manishgupta.gupta884gmail.com")
i think writing formula for E.g(2)is imposible even for Mocrosoft people... however i can give you the formula for E.g(2).. go for it
(1).First name
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),1,LEN(A1)))
(2).Mid Name
=IFERROR(IFERROR(LEFT(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),FIN D(" ",TRIM(MID(SUBS TITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),1)- 1),RIGHT(A1,LEN (A1)-FIND(" ",A1,1))),A1)
(2).Last name
=IFERROR(RIGHT(RIGHT(A1,LEN(A1)-FIND(" ",A1,1)),LEN(RI GHT(A1,LEN(A1)- FIND(" ",A1,1)))-FIND( " ",RIGHT(A1,LEN( A1)-FIND(" ",A1,1)),1)),IF ERROR(IFERROR(L EFT(TRIM(MID(SU BSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),FIN D(" ",TRIM(MID(SUBS TITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),1)- 1),RIGHT(A1,LEN (A1)-FIND(" ",A1,1))),A1))
A1 is the cell address where your name is located....
Plz note that dont copy and past the above formula, because while copy and pasting it generates some "space" in-between formulas,,, thus it will throw error... so its better to type the above formula self as-it-is...
** Even this formulas are not working, kindly give your Email ID so that i can send the excel sheet with formula,, or mail me at vinaysagarsdgmail.com
(After correcting mistake in typing)
i think writing formula for E.g(2)is imposible even for Mocrosoft people... however i can give you the formula for E.g(1).. go for it
(1).First name
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),1,LEN(A1)))
(2).Mid Name
=IFERROR(IFERROR(LEFT(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),FIN D(" ",TRIM(MID(SUBS TITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),1)- 1),RIGHT(A1,LEN (A1)-FIND(" ",A1,1))),A1)
(2).Last name
=IFERROR(RIGHT(RIGHT(A1,LEN(A1)-FIND(" ",A1,1)),LEN(RI GHT(A1,LEN(A1)- FIND(" ",A1,1)))-FIND( " ",RIGHT(A1,LEN( A1)-FIND(" ",A1,1)),1)),IF ERROR(IFERROR(L EFT(TRIM(MID(SU BSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),FIN D(" ",TRIM(MID(SUBS TITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),1)- 1),RIGHT(A1,LEN (A1)-FIND(" ",A1,1))),A1))
A1 is the cell address where your name is located....
Plz note that dont copy and past the above formula, because while copy and pasting it generates some "space" in-between formulas,,, thus it will throw error... so its better to type the above formula self as-it-is...
** Even this formulas are not working, kindly give your Email ID so that i can send the excel sheet with formula,, or mail me at vinaysagarsdgmail.com
Regards
Ranjan Kumar
ok... Send me the sheet showing error to my e mail, so that i can correct all the errors... My id - vinaysagarsdgmail.com
thanks..
Your Great Fan!
Regards.
This post actually made my day. You cann't imagine just how much
time I had spent for this info! Thanks!
Also visit my blog post; fatih evden eve nakliyat
=TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),1,LEN(A1)))
(2).Mid Name
=IFERROR(IFERROR(LEFT(TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),FIN D(" ",TRIM(MID(SUBS TITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),1)- 1),RIGHT(A1,LEN (A1)-FIND(" ",A1,1))),A1)
(2).Last name
=IFERROR(RIGHT(RIGHT(A1,LEN(A1)-FIND(" ",A1,1)),LEN(RI GHT(A1,LEN(A1)- FIND(" ",A1,1)))-FIND( " ",RIGHT(A1,LEN( A1)-FIND(" ",A1,1)),1)),IF ERROR(IFERROR(L EFT(TRIM(MID(SU BSTITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),FIN D(" ",TRIM(MID(SUBS TITUTE(A1," ",REPT(" ",LEN(A1))),LEN (A1),1000)),1)- 1),RIGHT(A1,LEN (A1)-FIND(" ",A1,1))),A1))
A1 is the cell address where your name is located....
Plz note that dont copy and past the above formula, because while copy and pasting it generates some "space" in-between formulas,,, thus it will throw error... so its better to type the above formula self as-it-is...
Thank you.
The first name worked great.
thanks a lot
middlename:=IFERROR(LEFT(TRIM(MID(TRIM(A1),FIND(" ",TRIM(A1)),50) ),FIND(" ",TRIM(MID(TRIM (A1),FIND(" ",TRIM(A1)),50) ))),"No Middle Name")
lastname:=RIGHT(TRIM(A1),LEN(TRIM(A1))-FIND(" ",TRIM(A1))-IFE RROR(FIND(" ",TRIM(MID(TRIM (A1),FIND(" ",TRIM(A1)),20) )),0))
but if there is two midlle names it will only show one please could u send one which will show all middle names i.e. even if there is 3 midlle names
thanks
[i have one wich shows first and midlle e.g. name: Paul James John Smith (to show all besides last name is : =LEFT(A1,LEN(A1 )-FIND(" ",A1,1)+1)]
substitute where applicable to your cell.
" " will bring a space in between the names.
vishal1mittal
akash#sharma
Prateek_bansal
plz help me..plz
=MID(A2,LOOKUP(1,--((MID(A2,ROW(INDIRECT("1:" &LEN(A2))),1))= " "),ROW(INDIRECT ("1:" &LEN(A2)))),50)
Is there any way of the formula being able to distinguish between those with two and one names listed?
=IF(ISERROR(LEFT(J3,FIND(" ",J3,1)-1)),J3, LEFT(J3,FIND(" ",J3,1)-1))
=IF(ISERROR(RIGHT(J3,LEN(J3)-FIND(" ",J3,1)))," ",RIGHT(J3,LEN( J3)-FIND(" ",J3,1)))
I want Andre in column A and Van Damme in Column B
how??
Andres, Isabelita
how can i split firstname and last name?
another
Bayabos, Rowena V.
how can i split firstname, middle name and lastname? hope someone can help me..
i have given below text:
0-7-F SPORTS-CHAPPAL
Need : F SPORTS-CHAPPAL
how to combine excel formula?,below are the formula that need to combine:
=TEXT(E3,"hh:mm")
=M3+"9:00:00"
=TEXT(U3,"hh:mm")
=M3&"-"
=IFERROR(CONCATENATE(AK3,AC3)," ")
thank u very much.....
Thanks!
I need help to trim and split names.
I have to split a full name such as "SANDRA K GREEN MD" into Last name, first name and middle initials in separate columns. I can trim off the MD after the full name if is easier.
Please help! Thanks so much!
ex: SANDRA K GREEN MD
I need to trim off MD if is easier and have Last name, first name and middle initial in separate cells.
Thanks so much!
To separate any name with a First Name, Middle Name(Initial), Last Name and Suffix, please use the below formula in the designated cells
Assuming A1 contains : SANDRA K GREEN MD
B1 : =LEFT(A1,SEARCH (" ",A1,1)-1)
C1 : =MID(A1,SEARCH( " ",A1,1)+1,SEARC H(" ",A1,SEARCH(" ",A1,1)+1)-SEAR CH(" ",A1,1)-1)
D1 : =MID(A1,SEARCH( " ",A1,SEARCH(" ",A1,1)+1)+1,SE ARCH(" ",A1,SEARCH(" ",A1,SEARCH(" ",A1,1)+1)+1)-S EARCH(" ",A1,SEARCH(" ",A1,1)+1)-1)
E1 : =RIGHT(A1,LEN(A 1)-SEARCH(" ",A1,SEARCH(" ",A1,SEARCH(" ",A1,1)+1)+1))
If you wish to eliminate the suffix you could leave the E1 cell blank.
if you want to split First Name Middle name and Last Name
Use the convert text to column option mentioned in the blog and
when the popup window shows
Treat consecutive delimiters as one
UNTICK the option
It will split the name in three parts.But all names should have three parts or else the names with only two parts will show last name in middle name column.
TRY THIS OUT!!!
For First Name & Last Name --> Assuming A1 contains : WilliamSmith
Last Name - C1 : =MID(A1,MATCH(1 ,(CODE(MID(A1,R OW($1:$255),1)) >=65)*(CODE(MID (A1,ROW($2:$255 ),1)) Assuming A1 contains : WilliamJSmith
Formula extension - E1 : =MID(A1,MATCH(1 ,(CODE(MID(A1,R OW($1:$255),1)) >=65)*(CODE(MID (A1,ROW($2:$255 ),1))=65)*(CODE(MID(E1,ROW($2:$255),1))
Please help me.
as i want to split below name.
Raj Narayan Shankar Pandey
Please help !!
Kindly help me.
As i want to split below name, i have couple (1000) of candidate names in excel like below mentioned format
MukeshKumarR
JojimonMathew
YuvarajIndiresan
Please suggest!!!!!
Hello, Abirami:
Maybe the following article can solve your problem, please view it:
http://www.extendoffice.com/documents/excel/3336-excel-split-text-by-capital-letter.html
Regards @freshersidea.com
John,,Doe,123-45-6789
John,A,Doe,123-45-6789
John,Dee,Doe,123-45-6789
John,D,de la,Doe,123-45-6789
John,,DoeIII,123-45-6789
Kindly help me.
As i want to split below name, i have couple (1000) of candidate names in excel like below mentioned format
MASTERS/University of Dhaka/Mathematics/1ST/2005
Please suggest!!!!!