# Split full name to first and last name

This post will guide you how to split the full name to the first name and last name in the different cells in excel. How to create an excel formula to split the full name to first name and last name. How to get the middle name from the full name string using a formula.

## Split full name to first and last name

Assuming that you have a full name list in a table or range B2:B3 and you want to get the first name from this full name list and then put it in another cell. Or you just only want to extract the last name from the full name string, and put it in other cell. You can use a combination of the LEFT function and FIND function to create a formula to extract the first name from the full name.

You can create another formula based on the RIGHT function, the LEN function, the FIND function and the SUBSTITUTE function to extract the last name.

### Split full name to get first name

You can write down the following formula to get the first name:

`=LEFT(B2, FIND(" ",B2,1)-1)`

Let’s see how this formula works:

= FIND(” “,B2,1)-1 This formula returns the position of the first space character in the full name string. And the number is subtracted 1 to get the length of the first name in the full name string.

=LEFT(B2, FIND(” “,B2,1)-1) This formula will extract the first name from the full name string based on the length of the first name returned by the FIND function.

### Split full name to get Last name

You can use the following formula to extract the last name:

`=RIGHT(B2, LEN(B2)- FIND("#",SUBSTITUTE(B2," ","#",2),1))`

Let’s see how this formula works:

= SUBSTITUTE(B2,” “,”#”,2) This formula locate the position of the second space string and then replace it with hash character. It goes into the FIND function as its Text argument.

= FIND(“#”,SUBSTITUTE(B2,” “,”#”,2),1) This formula returns the position of the hash character in the text string that returned by the SUBSTITUTE function. The number is also the position of the second space character in the full name string.

= LEN(B2)- FIND(“#”,SUBSTITUTE(B2,” “,”#”,2),1) This formula returns the length of the last name in the full name string.

=RIGTH() This formula extracts the right most characters based on the length of the last name.

### Split full name to get Middle name

If you want to extract the middle name from the full name string, you can write down the following formula:

`= MID(B2,FIND(" ",B2)+1,FIND("#",SUBSTITUTE(B2," ","#",2),1)- FIND(" ",B2,1)-1)`

Let’s see how this formula works: This formula returns the position of the hash character in the text string that returned by the SUBSTITUTE function. The number is also the position of the second space character in the full name string.

= FIND(” “,B2,1)-1 This formula returns the position of the first space character in the full name string. And the number is subtracted 1 to get the length of the first name in the full name string.

=FIND(“#”,SUBSTITUTE(B2,” “,”#”,2),1)- FIND(” “,B2,1)-1 This formula returns the length of the middle name in the full name string.  And it goes into the MID function as its num_chars argument.

= FIND(” “,B2)+1 This formula returns the position of the first character of middle name in the full name string. It goes into the MID function as its start_num argument.

=MID() This formula extracts the middle name from the full name based on the start_num and num_chars arguments.

### Related Formulas

• Get first word from text string
If you want to extract the first word from a text string in a cell, you can use a combination of the IF function, the ISERR function, the LEFT function and the FIND function to create a complex excel formula..…
• Split Multiple Lines from a Cell into Rows
If you have multiple lines in a cell and each line is separated by line break character or press “alt + enter” key while you entering the text string into cells, and you need to extract the multiple lines into the separated rows or columns, you can use a combination with the TRIM function, the MID function, the SUBSTITUTE function, the REPT function, the LEN function to create a complex excel formula..…
• Get last word from text string
If you want to get the last word from a text string, you can create an excel formula based on the RIGHT function, the LEN function, the FIND function and the SUBSTITUTE function..…
• Extract nth word from text string
If you want to extract the nth word from a text string in a single cell, you can create an excel formula based on the TRIM function, the MID function, the SUBSTITUTE function, the REPT function and the LEN function..…
• count specific words in a cell or a range
If you want to count the number of a specific word in a single cell, you need to use the SUBSTITUTE function to remove all that certain word in text string, then using LEN function to calculate the length of the substring that without that specific word.…
• Extract word that starting with a specific character
Assuming that you have a text string that contains email address in Cell B1, and if you want to extract word that begins with a specific character “@” sign, you can use a combination with the TRIM function, the LEFT function, the SUBSTITUTE function, the MID function, the FIND function, the LEN function and the REPT function to create an excel formula.…

### Related Functions

• Excel LEFT function
The Excel LEFT function returns a substring (a specified number of the characters) from a text string, starting from the leftmost character.The LEFT function is a build-in function in Microsoft Excel and it is categorized as a Text Function.The syntax of the LEFT function is as below:= LEFT(text,[num_chars])…t)…
• Excel FIND function
The Excel FIND function returns the position of the first text string (sub string) within another text string.The syntax of the FIND function is as below:= FIND(find_text, within_text,[start_num])…
• Excel RIGHT function
The Excel RIGHT function returns a substring (a specified number of the characters) from a text string, starting from the rightmost character.The syntax of the RIGHT function is as below:= RIGHT (text,[num_chars])…
• Excel Substitute function
The Excel SUBSTITUTE function replaces a new text string for an old text string in a text string.The syntax of the SUBSTITUTE function is as below:= SUBSTITUTE  (text, old_text, new_text,[instance_num])….
• Excel LEN function
The Excel LEN function returns the length of a text string (the number of characters in a text string).The syntax of the LEN function is as below:= LEN(text)…
• Excel MID function
The Excel MID function returns a substring from a text string at the position that you specify.The syntax of the MID function is as below:= MID (text, start_num, num_chars)….
Related Posts
How to Remove All Asterisk Characters from Cells in Excel

Sometimes when we opening an excel spreadsheet to check data, we may notice that there are some asterisks exist in texts for security or other reasons. If you feel these special characters are invalid you can remove them from cells. ...

How to Convert Date Format from Dot MM.DD.YYYY to Slash MM/DD/YYYY in Excel

We often enter dates in excel tables, and we can enter current date by quickly press ‘Ctrl+;’ simultaneously. If in some cases we enter a date format that is not what we want, we have to switch the date format ...

How to Remove Quotes for Text or Strings in Excel

When we importing data from other source into Excel we may import quotes or quotations from initial file. And we want to remove these quotes from current file, if we remove them one by one it needs a lot of ...

How to Remove Specific Character from Text Cell in Excel

This post will guide you how to remove a specific character from text cell in Excel. How do I remove certain character from a cell with a formula in Excel 2013/2016. Remove Specific Character Using Find and Replace function Remove ...

How to Count Comma Separated Value in One Cell in Excel

This post will guide you how to count values in a single cell separated by commas with a formula in Excel. How do I count comma separated values in one cell in Excel 2013/2016. Is it possible to have a ...

How to Count the Number of Letters or Numbers separately in a Cell in Excel

This post will guide you how to count the number of a given character in a cell in Excel. How do I count only numbers within a single cell excluding all letters and other characters with a formula in Excel. ...

How to Remove the First/Last Word from Text string in Cell

This post will guide you how to remove the first and the last word from a text string in cells in Excel. How do I use a formula to remove first and last word of a text string in Excel. ...

How to Remove Line Breaks (Carriage Returns) in Excel

This post will explain that how to remove line breaks in your data set in Excel. How do I remove carriage returns or line breaks with a formula in Excel. How to remove line breaks with VBA Macro in Excel. ...

How to Convert DD-MM-YYYY text string or date to a standard date format in Excel

This post will guide you how to convert dd-mm-yyyy test string or a date to a standard date format mm/dd/yyyy with a formula in Excel. Convert Text DD-MM-YYYY to Date Format Video: Convert DD-MM-YYYYY to Standard Date Format Convert Text ...

How to convert Column Letter to Number in Excel

This post will guide you how to convert column letter to number in Excel. How do I convert letter to number with a formula in Excel. How to convert column letter to number with VBA macro in Excel. How to ...

Sidebar