First name and last name in excel

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 Excel for iPad Excel for iPhone Excel for Android tablets Excel 2010 Excel 2007 Excel for Mac 2011 Excel for Android phones Excel Mobile Excel Starter 2010 More…Less

Let’s say you want to create a single Full Name column by combining two other columns, First Name and Last Name. To combine first and last names, use the CONCATENATE function or the ampersand (&) operator.

Important: In Excel 2016, Excel Mobile, and Excel for the web, this function has been replaced with the CONCAT function. Although the CONCATENATE function is still available for backward compatibility, you should consider using CONCAT from now on. This is because CONCATENATE may not be available in future versions of Excel.

Example

Copy the following example to a blank worksheet.

1

2

3

A

B

First Name

Last Name

Nancy

Davolio

Andrew

Fuller

Formula

Description (Result)

=A2&» «&B2

Combines the names above, separated by a space (Nancy Davolio)

=B3&», «&A3

Combines the names above, separated by a comma (Fuller, Andrew)

=CONCAT(A2,» «,B2)

Combines the names above, separated by a space (Nancy Davolio)

Note: To replace the formula with the results, select the cells, and on the Home tab, in the Clipboard group, click Copy Button image, click Paste Button image, and then click Paste Values.

Need more help?

You can always ask an expert in the Excel Tech Community or get support in the Answers community.

Need more help?

Watch Video – Split Names in Excel (into First, Middle, and Last name)

Excel is an amazing tool when it comes to slicing and dicing text data.

There are so many useful formulas as well as functionalities you can use to work with text data in Excel.

One of the very common questions I get about manipulating text data is – “How to separate first and last names (or first, middle, and last names) in Excel?“.

There are a couple of easy ways to split names in Excel. The method you choose will depend on how your data is structured and whether you want cowothe result to be static or dynamic.

So let’s get started and see different ways to split names in Excel.

Split Names Using Text to Columns

Text to Columns functionality in Excel allows you to quickly split text values into separate cells in a row.

For example, suppose you have the dataset as shown below and you want to separate the first and last name and get these in separate cells.

Split Names in Excel - Separate First and Last Name Dataset

Below are the steps to separate the first and last name using Text to Columns:

  1. Select all the names in the column (A2:A10 in this example)
  2. Click the ‘Data’ tabClick the Data tab in the Ribbon
  3. In the ‘Data Tools’ group, click on the ‘Text to Columns’ option.Click on Text to Columns option
  4. Make the following changes in the Convert Text to Column Wizard:
    1. Step 1 of 3: Select Delimited (this allows you to use space as the separator) and click on NextSelect Delimited in the Text to Columns Wizard Step 1
    2. Step 2 of 3: Select the Space option and click on NextSelect the space option in Text to Columns Wizard Step 2
    3. Step 3 of 3: Set B2 as the destination cell (else it will overwrite the existing data)Change the destination cells in Text to Columns Wizard Step 3
  5. Click on Finish

The above steps would instantly split the names into first and last name (with first names in column B and last name in column C).

Resulting Data where names have been separated

Note: In case there is any data in the cells already (the ones where Text to Columns output is expected), Excel will show you a warning letting you know that there is some data already in the cells. You can choose to overwrite the data or cancel Text to Columns and manually remove it first.

Once done, you can delete the full name data if you want.

A few things to know when using Text to Columns to separate first and last names in Excel:

  1. The result of this is static. This means that in case you have new data or the original data has some changes, you need to do this all over again to split the names.
  2. If you only want the First name or only the Last name, you can skip the columns you don’t want in step 3 of the ‘Text to Column Wizard’ dialog box. To do this, select the column in the preview that you want to skip and then select the ‘Do not import column (skip)’ option.
  3. In case you don’t specify the destination cell, Text to Column will overwrite the current column

Text to Columns option is best suited when you have consistent data (for example all names have first and last name only or all names have a first, middle, and last names).

In this example, I have shown you how to separate names that have space as the delimiter. In case the delimiter is a comma or a combination of comma and space, you can still use the same steps. In this case, you can specify the delimiter in Step 2 of 3 of the wizard. There is already an option to use the comma as the delimiter, or you can select ‘Other’ option and specify a custom delimiter as well.

While Text to Columns is a fast and efficient way to split names, it’s suited only when you want the output to be a static result. In case you have a dataset that may expand or change, you are better off using formulas to separate the names.

Separate First, Middle, and Last Names Using Formulas

Formulas allow you to slice and dice the text data and extract what you want.

In this section, I will share various formulas you can use to separate name data (based on how your data is structured).

Below are the three formulas you can use to separate first, middle, and last name (explained in detail later in the following sections).

Formula to get the first name:

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

Formula to get the middle name:

=MID(A2,SEARCH(" ",A2)+1,SEARCH(" ",SUBSTITUTE(A2," ","@",1))-SEARCH(" ",A2))

Formula to get the last name:

=RIGHT(A15,LEN(A15)-SEARCH("@",SUBSTITUTE(A15," ","@",LEN(A15)-LEN(SUBSTITUTE(A15," ","")))))

Get the First Name

Suppose you have the dataset as shown below and you want to quickly separate the first name in one cell and last name in one cell.

Dataset to get the first name from full name

The below formula will give you the first name:

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

Formula to Get the first name

The above formula uses the SEARCH function to get the position of the space character in between the first and last name. The LEFT function then uses this space position number to extract all the text before it.

This is a fairly straight forward use of extracting a part of the text value. Since all we need to do is identify the first space character position, it doesn’t matter whether the name has any middle name or not. The above formula is going to work just fine.

Now, let’s get a little more advanced with each example.

Get the Last Name

Let’s say you have the same dataset and this time you need to get the last name.

The below formula will extract the last name from the above dataset:

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

Get the last name from the full name

Again, quite straightforward.

This time, we first find the space character position, which is then used to find out the number of characters that are left after space (which would be the last name).

This is achieved by subtracting the position value of the space character with the total number of characters in the name.

This number is then used in the RIGHT function to fetch all these characters from the right of the name.

While this formula works great when there is only the first and last name, it wouldn’t work in case you also have a middle name. This is because we only accounted for one space character (between first and last name). Having a middle name adds more space characters to the name.

To fetch the last name when you have a middle name as well, use the below formula:

=RIGHT(A15,LEN(A15)-SEARCH("@",SUBSTITUTE(A15," ","@",LEN(A15)-LEN(SUBSTITUTE(A15," ","")))))

Now, this has started to become a bit complex… isn’t it?

Let me explain how this works.

The above formula first finds the total number of space characters in the name. This is done by getting the length of the name with and without the space character and then subtracting the one without space from the one with space. This gives the total number of space characters.

The SUBSTITUTE function is then used to replace the last space character with an ‘@’ symbol (you can use any symbol – something which is unlikely to occur as a part of the name).

Once the @ symbol has been substituted in place of the last space character, you can easily find the position of this @ symbol. This is done using the SEARCH function.

Now all you need to do is extract all the characters to the right of this @ symbol. This is done by using the RIGHT function.

Get the Middle Name

Suppose you have the dataset as shown below and you want to extract the middle name.

Data set from which middle name needs to be extracted

The following formula will do this:

=MID(A2,SEARCH(" ",A2)+1,SEARCH(" ",SUBSTITUTE(A2," ","@",1))-SEARCH(" ",A2))

Get middle name from the full name

The above formula uses the MID function, which allows you to specify a start position and the number of characters to extract from that position.

The start position is easy to find using the SEARCH function.

The hard part is to find how many characters to extract after this start position. To get this, you need to identify how many characters are there from the start position to the last space character.

This can be done by using the SUBSTITUTE function and replace the last space character with an ‘@’ symbol. Once this is done, you can easily use the SEARCH function to find the position of this last space character.

Now that you have the starting position and the position of the last space, you can easily fetch the middle name by using the MID function.

One of the benefits of using a formula to separate the names is that the result is dynamic. So in case, your dataset expands and more names are added to it or if some names change in the original dataset, you don’t need to worry about the resulting data.

Separate Names Using Find and Replace

I love the flexibility that comes with ‘Find and Replace‘ – because you can use wild card characters in it.

Let me first explain what’s a wild card character.

A wildcard character is something that you can use instead of any text. For example, you can use an asterisk symbol (*) and it will represent any number of characters in Excel. To give you an example, if I want to find all the names that start with the alphabet A, I can use A* in find and replace. This will find and select all the cells where the name starts with A.

If you’re still not clear, don’t worry. Keep reading and the next few examples will make it clear what wildcard characters are and how to use these to quickly separate names (or any text values in Excel).

In all the examples covered below, make sure you create a backup copy of the dataset. Find and Replace changes the data on which it’s used. It’s best to copy and paste the data first and then use Find and Replace on the copied dataset.

Get the First Name

Suppose you have a dataset as shown below and you want to get the first name only.

Separate the first name from full name using Find and Replace

Below are the steps to do this:

  1. Copy the name data in Column A and paste it in Column B.Copy and Paste the name to the adjacent column
  2. With the data in Column B selected, click the Home tabClick the home tab
  3. In the Editing group, click on Find & Select.
  4. Click on Replace. This will open the ‘Find and Replace’ dialog box.Click the Replace Option in the Find and Select drop down
  5. In the ‘Find and Replace’ dialog box, enter the following
    1. Find what:  * (space character followed by the asterisk symbol)
    2. Replace with: leave this blankEnter the Find What and Replace with values in the Find and Replace dialog box
  6. Click on Replace All.Click on Replace All

The above steps would give you the first name and remove everything after the first name.

Separate first name from full name using find and replace

This works even if you have names that have a middle name.

Pro Tip: The keyboard shortcut to open the Find and Replace dialog box is Control + H (hold the control key and then press the H key).

Get the Last Name

Suppose you have a dataset as shown below and you want to get the last name only.

Below are the steps to do this:

  1. Copy the name data in Column A and paste it in Column B.
  2. With the data in Column B selected, click the Home tab
  3. In the Editing group, click on Find & Select.
  4. Click on Replace. This will open the ‘Find and Replace’ dialog box.
  5. In the ‘Find and Replace’ dialog box, enter the following
    1. Find what: *  (asterisk symbol followed by a space character)
    2. Replace with: leave this blankWildcard to get the last name from a full name
  6. Click on Replace All.

The above steps would give you the last name and remove everything before the first name.

This works even if you have names that have a middle name.

Remove the Middle Name

In case you only want to get rid of the middle name and only have the first and the last name, you can do that using Find and Replace.

Suppose you have a dataset as shown below and you want to remove the middle name from these.

Below are the steps to do this:

  1. Copy the name data in Column A and paste it in Column B.
  2. With the data in Column B selected, click the Home tab
  3. In the Editing group, click on Find & Select.
  4. Click on Replace. This will open the ‘Find and Replace’ dialog box.
  5. In the ‘Find and Replace’ dialog box, enter the following
    1. Find what: * (space character followed by the asterisk symbol followed by the space character)
    2. Replace with:  (just put a space character here)Using wildcard to remove the middle name from a name
  6. Click on Replace All.

The above steps would remove the middle name from a full name. In case some names don’t have any middle name, they would not be changed.

Separate Names Using Flash Fill

Flash fill was introduced in Excel 2013 and makes it really easy to modify or clean a text data set.

And when it comes to separating names data, it’s right up in Flash Fill’s alley.

The most important thing to know when using Flash Fill is that there needs to a pattern that flash fill can identify. Once it has identified the pattern, it will easily help you split names in Excel (you will get more clarity on this when you go through a few examples below).

Get the First or the Last Name from Full Name

Suppose you have a dataset as shown below and you want to get only the first name.

  1. In the adjacent cell, manually type the first name from the full name. In this example, I would type Rick.Enter the first name in the adjacent cell
  2. In the second cell, manually type the first name from the adjacent cell’s name. While you’re typing, you will see Flash Fill show you a list of the first name automatically (in gray).Expected Text shows up in Gray with Flash Fill
  3. When you see the names in grey, quickly glance through it to make sure it’s showing the right names. If these are right, hit the enter key and Flash Fill will automatically fill the rest of the cells with the first name.Flash Fill result to get the frist name

Flash Fill needs you to give it a pattern that it can follow when giving you the modified data. In our example, when you type the first name in the first cell, Flash Fill can’t figure out the pattern.

But as soon as you start entering the First name in the second cell, Flash Fill understands the pattern and shows you some a suggestion. If the suggestion is correct, just hit the enter key.

And if it’s not correct, you can try entering manually in a few more cells and check if Flash Fill is able to discern the pattern or not.

Sometimes, you may not see the pattern in gray (as shown in step 2 above). If that’s the case, follow the below steps to get the Flash Fill result:

  1. Enter the text manually in two cells.
  2. Select both these cells
  3. Hover the cursor on the bottom-right part of the selection. You will notice that the cursor changes to a plus iconHover the cursor at the bottom right of the selection
  4. Double click on it (mouse left-key). This will fill all the cells. At this point in time, the results are likely incorrect and not what you expected.
  5. At the bottom right of the resulting data, you will see a small Auto-Fill icon. Click on this Auto-fill icon
  6. Click on Flash FillClick on the Flash Fill Option in to get flash fill results

The above steps would give you the result from Flash Fill (based on the pattern it has deduced).

You can also use Flash Fill to get the last name or the middle name. In the first two cells, enter the last name (or the middle name) and flash fill will be able to understand the pattern

Rearrange Name Using Flash Fill

Flash Fill is a smart tool and it can decipher slightly complex pattern as well

For example, suppose you have a dataset as shown below and you want to rearrange the name from Rick Novak to Novak, Rick (where the last name comes first followed by a comma and then the first name).

Below are the steps to do this:

  1. In the adjacent cell, manually type Novak, Rick
  2. In the second cell, manually type Connor, Susan. While you’re typing, you will see Flash Fill show you a list of the names in the same format (in gray).Flash Fill shows expected result when rearranging names in Excel
  3. When you see the names in grey, quickly glance through it to make sure it’s showing the right names. If these are right, hit the enter key and Flash Fill will automatically fill the rest of the cells with the names in the same format.

Remove the Middle Name (or Just get the middle name)

You can also use Flash Fill to get rid of the middle name or get only the middle name.

For example, suppose you have a dataset as shown below and you want to get only the first and the last name and not the middle name.

Below are the steps to do this:

  1. In the adjacent cell, manually type Rick Novak
  2. In the second cell, manually type Susan Connor. While you’re typing, you will see Flash Fill show you a list of the names in the same format (in gray).Using Flash Fill to get names without middle names
  3. When you see the names in grey, quickly glance through it to make sure it’s showing the right names. If these are right, hit the enter key and Flash Fill will automatically fill the rest of the cells with the names without the middle name.

Similarly, if you only want to get the middle names, type the middle name in the first two cells and use Flash Fill to get the middle name from all the remaining names.

The examples shown in this tutorial uses names while manipulating the text data. You can use the same concepts to also work with other formats of data (such as addresses, product names, etc.)

You may also like the following Excel tutorials:

  • Extract Usernames from Email Ids in Excel
  • How to Filter Cells that have Duplicate Text Strings (Words) in it
  • Convert Date to Text in Excel
  • Convert Text to Numbers in Excel
  • How to Remove the First Character from a String in Excel
  • How to Sort by the Last Name in Excel
  • How to Combine First and Last Name in Excel
  • Extract Last Name in Excel (5 Easy Ways)
  • Separate Text and Numbers in Excel
  • How to Switch First and Last Name in Excel with Comma?

To extract the first, middle and last name we use the formulas «LEFT», «RIGHT», «MID», «LEN», and «SEARCH» in Excel.

LEFT: Returns the first character(s) in a text string based on the number of characters specified.

Syntax of «LEFT» function: =LEFT (text,[num_chars])

Example:Cell A2 contains the text «Mahesh Kumar Gupta»
=LEFT (A2, 6), function will return «Mahesh»

RIGHT:Return the last character(s) in a text string based on the number of characters specified.

Syntax of «RIGHT» function: =RIGHT (text, [num_chars])

Example:Cell A2 contains the text «Mahesh Kumar Gupta»
=RIGHT (A2, 5), function will return «GUPTA»

MID:Return a specific number of character(s) from a text string, starting at the position specified based on the number of characters specified.

Syntax of «MID» function: =MID (text,start_num,num_chars)

Example:Cell A2 contains the text «Mahesh Kumar Gupta»
=MID (A2, 8, 5), function will return «KUMAR»

LEN:Returns the number of characters in a text string.

Syntax of «LEN» function: =LEN (text)

Example:Cell A2 contains the text «Mahesh Kumar Gupta»
=LEN (A2), function will return 18

SEARCH:The SEARCH function returns the starting position of a text string which it locates from within the text string.

Syntax of «SEARCH» function: =SEARCH (find_text,within_text,[start_num])

Example:Cell A2 contains the text «Mahesh Kumar Gupta»
=SEARCH («Kumar», A2, 1), function will return 8

How to separating the names in Excel through formula? 

To understand how you can extract the first, middle and last name from the text follow the below mentioned steps:

Example 1: We have a list of Names in Column “A” and we need to pick the First name from the list. We will write the «LEFT» function along with the «SEARCH» function.

img1

  • Select the Cell B2, write the formula =LEFT (A2, SEARCH (» «, A2)), function will return the first name from the cell A2.
  • To Copy the formula in all cells press the key “CTRL + C” and select the cell B3 to B6 and press the key “CTRL + V” on your keyboard.

img2

To pick the Middle name from the list. We write the “MID” function along with the “SEARCH” function.

  • Select the Cell C2, write the formula =MID(A2,SEARCH(» «,A2,1)+1,SEARCH(» «,A2,SEARCH(» «,A2,1)+1)-SEARCH(» «,A2,1)) it will return the middle name from the cell A2.
  • To Copy the formula in all cells press key “CTRL + C” and select the cell C3 to C6 and press key “CTRL + V”on your keyboard.

img3

To pick the Last name from the list. We we will use the “RIGHT” function along with the “SEARCH” and “LEN” function.

  • Select the Cell D2, write the formula =RIGHT(A2,LEN(A2)-SEARCH(» «,A2,SEARCH(» «,A2,SEARCH(» «,A2)+1))) It will return the last name from the cell A2.
  • To Copy the formula in all cells press key “CTRL + C” and select the cell D3 to D6 and press key “CTRL + V” on your keyboard.

img4

This is the way we can split names through formula in Microsoft Excel.

To know more find the below examples:-

Extract file name from a path

How to split a full address into 3 or more separate columns

Often we face a situation where we need to separate names (get the first and last word from a cell/text string) in Excel.

Let’s say you want to extract the first name from a cell where you have both first and last names or you want to extract the product name from the product description cell.

We do need a function that can extract this. The bad news is, in Excel, there is no specific function to extract the first and the last word from a cell directly.

But the good news is you can combine functions and create a formula to get these words. Today in this post, I’d like to share with you how to get separate names using a formula

sample-file

Extracting the first word from a text string is much easier than extracting the last word. For this, we can create a formula by combining two different text functions, that’s SEARCH and LEFT.

Let’s understand this with an example. In the below table, we have a list of names which includes the first and the last name. And now from this, we need to extract the first name which is the first word in the cell.

data to get last and first name min

And the formula to get the first name from the above column is:

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

This simply returns the first name which is the first word from the text.

get first word from full name min

How it Works

In the above example, we have used a combination of SEARCH (It can search for a text string in another text string) and LEFT (It can extract a text from the left side).

This formula works in two different parts.

formula combination of left and search to get first word from a text string from a cell in excel min

In the first part, the SEARCH function finds the position of the space in the text and returns a number from which you have deducted one to get the position of the last character of the first word.

how combination of search and left works to get first word from a text string from a cell in excel min

In the second part, using the number returned by the SEARCH function, the LEFT function extracts the first word from the cell.

first word from a text string from a cell in excel return by this formula min

Getting the last word from a text string can be tricky for you, but once you understand the entire formula it will be much easier to use it in the future.

So, to extract the last word from a cell you need to combine RIGHT, SUBSTITUTE, and REPT. And the formula will be:

=TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",LEN(A2))),LEN(A2)))
formula combination to get last word from a text string from a cell in excel min

This formula returns the last name from the cell which is the last word and works the same even if you have more than two words in a cell.

How it Works

Again, you need to break down this formula to understand how it works.

how formula combination to get last word from a text string from a cell in excel works min

In the FIRST part, the SUBSTITUTE function replaces every single space with spaces equal to the length of the text.

first part of formula to get last word from a text string from a cell in excel min

The text becomes double in length with extra spaces and looks something like this. After that, the RIGHT function will extract characters from the right side equal to the original length of the text.

second part of formula to get last word from a text string from a cell in excel min

In the end, the TRIM function removes all the leading spaces from the text.

third part of formula to get last word from a text string from a cell in excel min

sample-file

Conclusion

By using the above formulas you can easily get the first and the last word from a text string.

The formula for the first word is super easy and for the last word is a bit tricky but you need to understand it once it starts.

I hope you found this tip helpful.

Now tell me one thing. Do you have any other method to get first and last from a string? Please share your views with me in the comment section, I’d love to hear from you. And, please don’t forget to share this tip with your friends.

When working with spreadsheets that contain names, keeping first and last names in separate columns is often convenient.

This is because it makes filtering and querying easier. However, there may be times when you need to combine the first and last names back into one column.

Fortunately, you don’t need to do this manually.

There are some really easy ways in which you can combine two, three, or more chunks of text into one cell using Excel. In this tutorial, we will look at two such methods.

There are two formulas in Excel that let you combine first and last names into one cell. Let’s look at them one by one.

The ampersand (&) Method

The ampersand (&) is more of an operator than a formula. It is mainly used to join several text strings into one.

Here’s how you can use it to merge your first and last names.

Let us assume you have the following set of first and last names:

Names Dataset with first and last name

Below are the steps to merge the first and the last name using ampersand:

  1. Click on the first cell of the column where you want the combined names to appear (C2).
  2. Type equal sign (=).
  3. Select the cell containing the first name (A2) followed by an ampersand (&)
  4. Select the cell containing the last name (B2).
  5. Press the Return Key.
  6. You will notice that the first name and last name are combined together alright, but without any space in between. To change that, you can add space within the formula. Add &” ” after the cell reference for the first name. So for our example, your formula now is =A2&” “&B2.
  7. Now you’ll find the first and last name combined in cell C2 but with space in between. Perfect! It’s now time to copy this formula to the rest of the cells in the column. Simply double click the fill handle (located at the bottom right of cell C2).

That’s all, all your cells in column C3 contain full names in each row.

Ampersand to combine first and last name
Also read: How to Generate Random Names in Excel

The CONCATENATE() Function

The CONCATENATE() function provides the same functionality as the ampersand (&) operator.

The only difference between the two is the way they are used.

Let’s use the same dataset as above and apply the CONCATENATE function to it:

  1. Click on the first cell of the column where you want the combined names to appear (C2).
  2. Type equal sign (=).
  3. Enter the function CONCATENATE, followed by an opening bracket.
  4. Select the cell containing the first name (A2) followed by a comma(,)
  5. Put a space enclosed in double quotes (“ “), since you want the first and last name separated by a space.
  6. Select the cell containing the last name (B2). In our example, your formula should now be: =CONCATENATE(A2,” “,B2).
  7. Press the Return Key.
  8. Now you’ll find the first and last name combined in cell C2 with space in between. Copy this formula to the rest of the cells in the column by double-clicking the fill handle (located at the bottom right of cell C2).
Concatenate formula to combine first and last name

Few things to note about this formula:

  • If you want to put the last name followed by a comma, followed by the first name, then instead of a space, put a comma within quotes. Also, replace the first cell reference with the second cell reference and vice-versa. So for this example, C3 would have the formula: =CONCATENATE(B2,” , “,A2)
  • You can replace the separating character with any character you need.
  • If you have a first name, last name, and a middle name in cells A2, B2, and C2 respectively, your formula in D2 can be =CONCATENATE(A2,” “,B2,” “,C2).
  • If you want to have the first name, followed by the middle name’s initial, followed by the last name, then your formula in D2 can be =CONCATENATE(A2,IF(B2=””,” “,” “&LEFT(B2,1)&”.”),C2). The LEFT() function takes the specified number of characters starting from the left side of the text in a cell. Here, we specified that if cell B2 is not blank (that means if a middle name exists), we want just the first character from the cell B2. We followed this by a dot operator and space. Finally, we concatenated the value in C2 (the last name).
Formula to have first and last name and middle name initial

You’ll notice that since you’re using a formula, the result is dependent on the original cell values of first and last names.

So if you make any changes to the original values, they get reflected in the combined values.

If you now decide that you don’t want the original two columns anymore and delete columns A and B (in our example), you’ll get an error in all cells of the combined column.

Ref Error in case you delete dependent cells

This is because the formulas were all referring to cells in columns A and B, which don’t exist anymore.

To avoid this, the best thing to do is convert the formulas of the combined co to permanent values by copying them and pasting them as values in the same column (Right-click and select Paste Options->Values from the Popup menu).

Paste as Values

Now you can go ahead and delete the original columns if you need to.

Also read: Extract Last Name in Excel 

Merge First and Last Name using Flash Fill

This is a really cool technique. This technique takes advantage of Excel’s pattern recognition capabilities.

If you’re using any version of Excel from 2013 onwards, you’ll get Excel’s flash fill functionality.

Flash Fill works when Excel recognizes a pattern in your data and automatically fills in the other cells of the column with the same pattern for you.

Here’s how you can use Flash Fill to combine first and last names:

  1. Click on the first cell of the column where you want the combined names to appear.
  2. Enter the first and last name for the first row manually.
  3. Under the Data tab, click on the Flash Fill button (in the ‘Data Tools’ group). Alternatively, you can just press CTRL+E on your keyboard (Command+E if you’re on a Mac).

This will copy the same pattern to the rest of the cells in the column…in a Flash!

Merge names using Flash Fill

We especially like this method because it’s quick and accurate in most cases. You don’t have to spend time typing formulas

It detects and copies patterns very effectively, including capitalization and punctuation.

For example, if your original first and last names started with small letters, you can capitalize the first letter of the first and last names in the combined cell and when you apply flash fill, it will automatically copy your pattern and capitalize the first letter for all the names.

Combine Names using Flash Fill with capitalized first letter

In this way, you can have names joined exactly the way you like.

Combine Names using Flash Fill with capitalized first letter and comma

In the same way, you can also set the pattern to have the last name followed by a comma, followed by the first name.

Since this method doesn’t involve a formula, it doesn’t depend on the original columns.

So, even if you delete the original two columns containing first and last names respectively, the combined column remains unaffected.

Also read: Remove Middle Name from Full Name in Excel

Conclusion

In this tutorial, we showed you two ways in which you can combine first and last names into a single column in Excel.

It’s important to note though, that these are not the only two ways to do this.

There are plenty of other ways in Excel, like using VB script, or the TEXTJOIN function (available in newer versions and Office 365).

These two were the methods we found to be the simplest and most applicable to all.

I hope you found this Excel tutorial useful!

Other Excel tutorials you may find useful:

  • How to Split One Column into Multiple Columns in Excel
  • How to Find Merged Cells in Excel
  • Switch First and Last Name with Comma in Excel (Flip Names)
  • How to Separate Names in Excel
  • How to Make all Cells the Same Size in Excel (AutoFit Rows/Columns)
  • How to Reverse a Text String in Excel (Using Formula & VBA)
  • Why is Merge and Center Grayed Out?
  • How to Change Uppercase to Lowercase in Excel
  • How to Separate Address in Excel?
  • How to Unmerge All Cells in Excel?

Понравилась статья? Поделить с друзьями:
  • First movie а word
  • First most spoken english word
  • First longest word in the world
  • First letter uppercase in word
  • First letter of each word to make a sentence