ExcelCSE.com

Menu
  • Excel 101
  • Excel Functions
  • Excel Formula
  • Contact Us
How to Use Excel > Excel Formula > How to Combine and Separate First and Last Name in Excel

How to Combine and Separate First and Last Name in Excel

How to Combine and Separate First and Last Name in Excel
Table of contents :
  • How to Combine First and Last Name in Excel
    • Solution #1, Using Ampersand Sign
    • Solution #2, Using CONCATENATE Function
    • Solution #3, Using TEXTJOIN Function
    • Solution #4, Using Flash Fill Menu
    • Solution #5, Using NOTEPAD
    • Which One is the Best Solution?
  • How to Separate First and Last Name in Excel
    • Solution #6, Using Excel Formula
    • Solution #7, Using Text to Column Menu
    • Which One is the Best Solution?

Combine Separate First and Last Name in Excel

How to Combine First and Last Name in Excel

How to combine first and last names in excel into one column without losing data.

Combine first and last name in excel

Solution #1, Using Ampersand Sign

The Formula

=A2&" "&B2

The Result

How to combine first and last name in excel

Ampersand sign is a formula solution, with no excel function.

Solution #2, Using CONCATENATE Function

The Formula

=CONCATENATE(A2," ",B2)

The Result

Excel formula to combine first and last name

Similar to solution #1, you must write all the cell addresses together with the separator but the formula using an Excel function.

Solution #3, Using TEXTJOIN Function

The Formula

=TEXTJOIN(" ",TRUE,A2:B2)

The Result

How to combine last name and first name in excel

a simpler formula, you only write the separator once, cell addresses are combined in the form of a range address, no need to write the cell address one by one.

For all solutions using a formula, don’t forget to do a Copy – Paste Special – Values for all combined names.

For what?

  • You can delete the first, and last name columns and no error occurs
  • You can copy the combined name to another place without any problems

Read the following article for a detailed explanation of paste special

  • Paste Special Excel

Solution #4, Using Flash Fill Menu

Flash Fill is no formula solution. Place the cursor in cell C2. Type first and last name for the first name.

Do the same for the second name, after you type two or three letters, Excel displays all combined first and last name for all names. Press the ENTER button.

Combine first and last name

Solution #5, Using NOTEPAD

Do a copy for all first and last name then paste in NOTEPAD. There is a space between the two with varying widths, that is a TAB character.

Replace the TAB character to space with the “Replace” menu. Copy the results and paste them again in Excel. You got the full name with no formula 🙂

How do i combine first and last names in excel

Which One is the Best Solution?

If you choose to use a formula, my choice is solution #3 using the TEXTJOIN function. Use the range address, and you get a combined first and last names.

For no formula solution, my choice is solution #4 Using the “Flash Fill” menu. If you can’t do it in your Excel version, do it using NOTEPAD, solution #5.

Which of the two is better? A formula solution or no formula solution? I chose to use the “Flash Fill” Menu, no formula solution. What about your choice?

How to Separate First and Last Name in Excel

The first case opposite. How to separate first and last name from the full name?

Separate first and last name in excel

Solution #6, Using Excel Formula

The formula for First Name column

=LEFT(A2,SEARCH(" ",A2)-1)

The Result

How to separate first and last name in excel

The SEARCH function is looking for the space position that separates the first and last name. The LEFT function takes characters from the first character until the space position, reduced by 1.

The formula for Last Name column

=RIGHT(A2,LEN(A2)-SEARCH(" ",A2))

The Result

Excel formula to separate first and last name

The RIGHT function takes n characters from the right, to find out the n value, use the LEN function to calculate the character length minus the space position.

Solution #7, Using Text to Column Menu

The Text to Column menu is in the “Data” tab, the “Data Tools” group. You can access it using a shortcut /, A, E.

Block range A2:A14. Type /, A, E in sequence. A dialog appears for the text to column

Separate first and last name in excel formula

Select delimited then click next.

Excel formula to separate first and last name with comma

Excel provides many separators, because of space separate first and last names, then select space and click next.

Formula to separate first and last name in excel

You can format the separated data according to the conditions. For first and last names all is text. Change them into text, do it one by one. Click Finish.

How do i separate first and last names in excel

The full name disappears, change to first and last name

Which One is the Best Solution?

The “Text to Column” menu is my choice, no more questions.

Regardless of the number of words, three words, four words or even more “Text to Column” can separate them easily. If you use the excel formula, it could be your nightmare.

Related Function

Function used in this article
  • Excel CONCATENATE Function
  • Excel TEXTJOIN Function
  • Excel LEFT Function
  • Excel RIGHT Function
  • Excel SEARCH Function
  • Excel LEN Function

Related Articles

Another articles related to this article
  • Paste Special Excel
  • Flash Fill Excel
Usefull links
  • Microsoft Excel Combine First and Last Name documentation
Share
Tweet
Google+
Email
Prev Article
Next Article

Related Articles

How to Create a Formula in Excel
How to Create a Simple Formula in Excel To create …

How to Create a Formula in Excel

How to Subtract Multiple Cells from One Cell in Excel
For example, there are data such as the image below. …

How to Subtract Multiple Cells from One Cell in Excel

Excel provides three different functions to extract a day, month, …

How to Extract Day, Month and Year from Date in Excel

How to Merge Cells in Excel
There are several ways to merge cells in excel, using …

How to Merge Cells in Excel

IFERROR VLOOKUP
There is a condition, you have written the VLOOKUP function …

IFERROR VLOOKUP – Solution for VLOOKUP NA Error

Tags:Combine First and Last Name in Excel CONCATENATE Function Excel Formula to Combine First and Last Name Excel Formula to Separate First and Last Name Excel Formula to Separate First and Last Name with Comma Flash Fill Formula to Separate First and Last Name in Excel How to Combine First and Last Name in Excel How to Separate First and Last Name in Excel LEFT Function LEN Function Paste Special RIGHT Function SEARCH Function Separate First and Last Name in Excel Separate First and Last Name in Excel Formula TEXTJOIN Function

Categories

  • Excel 101
  • Excel Formula
  • Excel Functions

Recent Posts

  • Get the Original Price from Percentage Increase/Decrease
  • How to Add/Subtract Percentage in Excel
  • How to Extract Day, Month and Year from Date in Excel
  • How to Add Seconds, Minutes and Hours to a Time in Excel
  • How to Add Days, Weeks, Months and Years to a Date in Excel
  • How to Calculate Time Difference in Excel
  • Calculate Number of Days, Weeks, Months and Years Between Two Dates in Excel
  • Flash Fill Excel
  • Paste Special Excel
  • Excel TEXTJOIN Function
  • Excel CONCAT Function
  • Excel CONCATENATE Function
  • Excel REPLACE Function
  • Excel SUBSTITUTE Function
  • Excel REPT Function
  • Excel FIND Function
  • Excel SEARCH Function
  • Excel MID Function
  • Excel RIGHT Function
  • Excel LEFT Function

ExcelCSE.com

The Ultimate Guide How to Use Excel Better
Copyright © 2024 ExcelCSE.com
Contact Us - Privacy Policy - Sitemap | Theme by MyThemeShop.com

Ad Blocker Detected

Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker.

Refresh