Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to flip the first and last name in cells in Excel?

Let's say you get a roster of names in one column, however, you need to flip the first name and last name in cells. Normally you will get into one cell and cut the last name, and then paste it before the first name, or retype the name again. It will be time-consuming and tedious if you use these traditional methods. Actually, there are several easy ways to flip or reverse the first name and last name in a single column quickly. Supposing you have a column of names, and you need to flip the first and last name as below screenshot shown:
doc flip first last names 1

Flip the first and last name in a column with a function

Flip the first and last name in a column with VBA

Flip the first and last name in a column with Kutools for Excelgood idea3

Split full name into first name and last name with Kutools for Excelgood idea3


reverse text order based on a specific seperator in Excel

The Reverse Text utility of Kutools for Excel can help you reverse the text string based on nothing, space, comma or other seperator, also you can choose to skip non-text cells.
Click for full-featured free trial in 60 days!
doc reverse text
 
Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 60 days.
 
 
 
 

Flip the first and last name in a column with a function

We can use one of Excel's formulas to flip the first and last name quickly in a column with following steps:

 Enter the formula =MID(A2&" "&A2,FIND(" ",A2)+1,LEN(A2)) in a blank cell, says Cell C2. And then drag the fill handle down to the cells to apply this formula, then you can see all first and last names have been revered. See screenshot:

doc flip first last names 2


Flip the first and last name in a column with VBA

You can also use VBA macros to flip the first and last name in a column quickly.

Tabbed browsing & editing multiple Excel workbooks/Word documents as Firefox, Chrome, Internet Explore 10!

You may be familiar to view multiple webpages in Firefox/Chrome/IE, and switch between them by clicking corresponding tabs easily. Here, Office Tab supports similar processing, which allow you to browse multiple Excel workbooks or Word documents in one Excel window or Word window, and easily switch between them by clicking their tabs. Click for free 45-day trial of Office Tab!

ot excel
 
 
 
 

1. Hold down the Alt + F11 keys in Excel, and it opens the Microsoft Visual Basic for Applications window.

2.  Click Insert > Module, and paste the following macro in the Module window.

Sub FlipName()
'Updateby20131126
Dim Rng As Range
Dim WorkRng As Range
Dim Sign As String
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
Sign = Application.InputBox("Symbol interval", xTitleId, " ", Type:=2)
For Each Rng In WorkRng
    xValue = Rng.Value
    NameList = VBA.Split(xValue, Sign)
    If UBound(NameList) = 1 Then
        Rng.Value = NameList(1) + Sign + NameList(0)
    End If
Next
End Sub

3.  Press the F5 key to run this macro. In the popping up KutoolsforExcel dialog box, select the range to flip, and then click the OK button. See screenshot:

doc flip first last names 3

4.  In the following popping up dialog box, please enter an interval symbol (such as a space), and then click the OK button. See screenshot:

doc flip first last names 4

5. Now the first name and last name in selected range are flipped. See screenshot:

doc flip first last names 5


Flip the first and last name in a column with Kutools for Excel

With Kutools for Excel’s Reverse Text Order, you can quickly reverse order of the text in the cells.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

1.  Select the range that you want to reverse the first and last names.

2.  Click Kutools > Text > Reverse Text Order, see screenshot:

doc flip first last names 8

3.  In the Reverse Text dialog box, specify a separator your selected text string using, (in this case, I select Space option) and then click the OK button. And all the first names and last names in the selected range have been reversed. See screenshot:

doc flip first last names 7

Note: Checking Skip non-text cells to prevent you reversing the numbers in selected range.


Demo: Flip / Reverse the first and last names in cells


Split full name into first name and last name with Kutools for Excel

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

If you have a list of full names which need to split to first name and last name in two columns separately as below screenshot shown, you can apply Kutools for Excel’s Split Names to quickly handle it.
doc flip first last names 9

1. Select the list of names you want to split, click Kutools > Text > Split Names.
doc flip first last names 10

2. In the Split Names dialog, check First name and Last name checkboxes, if you want to split middle name as well, check Middle name. Click Ok, select a cell to place the split names.
doc flip first last names 11



Kutools for Excel: 300 + functions you must have in Excel, 60-day free trial from here.



Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 300 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...

Screen shot of Kutools for Excel

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Mike · 1 months ago
    okay. can someone say this in english because I have no clue what you guys are talking about
  • To post as a guest, your comment is unpublished.
    John · 8 months ago
    Try this to add a comma: =MID(A2&", "&A2,FIND(" ",A2)+1,LEN(A2)+1)
  • To post as a guest, your comment is unpublished.
    Jill · 11 months ago
    What if I need to insert a comma between the last and first name?
  • To post as a guest, your comment is unpublished.
    Ted · 1 years ago
    What if there is a comma separating the 2 names? Is there a way to eliminate it? Now the names look like

    Arthur Lange,

    Eric Norris,

    etc etc

    • To post as a guest, your comment is unpublished.
      Kody · 1 years ago
      Have you tried Ctrl+F, Select Replace, Find "," and leave replace with blank.
      • To post as a guest, your comment is unpublished.
        Brittany · 1 years ago
        When I try that, it pops up with this error message "There's a problem with this formula. Not trying to type a formula? When the first character is an equal (=) or minus (-) sign, Excel thinks it's a formula: you type: =1+1, cell shows: 2. To get around this, type an apostrophe (') first: you type: '=1+1, cell shows =1+1.
        • To post as a guest, your comment is unpublished.
          Ric · 1 years ago
          I think you are changing the formula. Try copying and pasting the values to a new cell then do the find/replace.
    • To post as a guest, your comment is unpublished.
      Kaity · 1 years ago
      I want to know this too!
  • To post as a guest, your comment is unpublished.
    Danny · 2 years ago
    Correction. What if i have four names? What's the formula?
    Last name - first name - middle1 - middle2