How to Reverse Text to Columns in Excel: 6 Handy Methods

Method 1 – Utilizing Flash Fill Feature to Reverse Text to Columns in Excel

Steps:

  • Create a new column at the right of the Last Name column.
  • Name it as Full Name.

Utilizing Flash Fill Feature

  • Select cell D5 and write down Harry Albert manually.
  • It’s his Full Name containing the First and Last Name.

  • Delect cell D5.
  • Go to the Home tab.
  • Click on the Fill drop-down icon on the Editing group.
  • Select Flash Fill from the options.

Using Home Tab

There is another way to call the Flash Fill feature. Just see the following steps.

  • Select cell D5.
  • Move to the Data tab.
  • Select Flash Fill icon on the Data Tools group.
  • Press CTRL+E to do the same task.

Using Data Tab

For those of you who want to learn about more techniques, there is another one.

  • Use your mouse to place the cursor on the right-bottom corner of the selected cell D5.
  • Double-click on it.

Using Fill Handle

  • The remaining cells get filled with Harry Albert by your previous action.
  • Click on the Auto Fill Options icon at the end of the cells.
  • Choose Flash Fill from the options.

  • Get the Full Names in the remaining cells using any of the three approaches stated above.

Using Flash Feature


Method 2 – Using Ampersand (&) Operator to Reverse Text to Columns in Excel

Steps:

  • Create a new column Full Name just like Method 1.

Using Ampersand Operator

  • Select cell D5 and write down the following formula in the Formula Bar.
=B5&" "&C5

B5 and C5 represent the First Name and Last Name of the first student. We used a blank space between two Ampersand operators. Creates a gap between the two parts of the name.

  • Press ENTER.

  • Move the cursor as shown in the image below. It will show the Fill Handle tool.
  • Double-click on the mouse.

Using Fill Handle Tool to Reverse Text to Columns in Excel

  • It makes the remaining cells get filled with the results.

Using Fill Handle Tool


Method 3 – Implementing CONCAT Function

Steps:

  • Select cell D5 and paste the following formula.
=CONCAT(B5," ",C5)
  • Press the ENTER key.

Implementing CONCAT Function to Reverse Text to Columns

Use the old CONCATENATE function. The process is entirely similar to the above approach.

  • Select cell D5 and put the formula below.
=CONCATENATE(B5," ",C5)
  • Hit the ENTER key.

Using CONCATENATE Function to Reverse Text to Columns


Method 4 – Employing TEXTJOIN Function to Reverse Text to Columns in Excel

Steps:

  • Select cell D5 and put the following formula.
=TEXTJOIN(" ",TRUE,B5,C5)
  • Tap ENTER.

Employing TEXTJOIN Function

We used the Fill Handle tool to get the other results.


Method 5 – Executing Power Query to Reverse Text to Columns in Excel

Steps:

  • Select cell B4. You can use any other cell inside the data range.
  • Jump to the Data tab.
  • Select From Table/Range on the Get & Transform Data group.

Executing Power Query to Reverse Text to Columns in Excel

  • The Create Table dialog box opens.
  • See that the range of cells gets automatically detected by Excel.
  • Make sure that the box of My table has headers gets checked.
  • Click OK.

  • See the columns open in the Power Query Editor.
  • Select the two columns using the CTRL key.
  • Right-click on the column heading area.
  • Select Merge Columns from the context menu.

  • The Merge Columns wizard opens.
  • Choose Space as Separator.
  • Give a New column name. In this case, we named it as Full Name.
  • Click OK.

Filling up Merge Columns Wizard

  • We could successfully merge the two columns.

  • Go to the Home tab.
  • Click on the Close & Load drop-down.
  • Select Close & Load To from the two options.

  • The Import Data wizard will open.
  • Select Table under the Select how you want to view that data in your workbook section.
  • Choose the Existing worksheet under Where do you want to put the data? section.
  • Give the cell reference of D4 in the input box.
  • Click OK.

Filling up Import Data Dialog Box

  • The merged column is now available in our worksheet Power Query.

  • Do some formatting, and the worksheet will look like the one below.

Done Formatting


Method 6 – Assigning VBA Code

Steps:

Assigning VBA Code

  • The Microsoft Visual Basic for Applications window opens.
  • Move to the Insert tab.
  • Select Module from the options.

  • It opens the Code Module.
  • Write down the following code in the Module.
Public Function Rvrs_Txt_Clmn(rng As Range, Optional S As String = " ") _
As String
Dim trns
trns = Application.WorksheetFunction.Transpose _
(Application.WorksheetFunction.Transpose(rng.Value))
Rvrs_Txt_Clmn = Join(trns, S)
End Function

Assigning VBA Code to Reverse Text to Columns in Excel

  • Select cell D5 and write down =rv. Hence, we can see the function name in the suggestion.
  • Press the Tab key to get the function working.

Assigning VBA Code to Reverse Text to Columns in Excel

  • Get the following formula into the cell.
=Rvrs_Txt_Clmn(B5:C5," ")

The Rvrs_Txt_Clmn is a public function. We’ve created this function just now.

  • Hit ENTER.

Assigning VBA Code to Reverse Text to Columns in Excel

  • Use the Fill Handle tool to get the full results like in the one below.

Assigning VBA Code to Reverse Text to Columns in Excel


Download Practice Workbook

You may download the following Excel workbook for better understanding and practice yourself.


Related Articles


<< Go Back to Excel Reverse Order | Sort in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Shahriar Abrar Rafid
Shahriar Abrar Rafid

Shahriar Abrar Rafid, BSc, Naval Architecture and Marine Engineering, Bangladesh University of Engineering and Technology, Bangladesh, has worked with the ExcelDemy project for more than 1 year. He has written over 100+ articles for ExcelDemy. He is a professional visual content developer adept at crafting scripts, meticulously editing Excel files, and delivering insightful video tutorials for YouTube channels. His work and learning interests vary from Microsoft Office Suites and Excel to Data Analysis, VBA, and Video recording and... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo