How to Concatenate Two Columns in Excel – 2 Methods

This is the sample dataset.

Dataset to show how to Concatenate Two Columns in Excel

 


To concatenate the First Name and Last Name and get the Full Name.

Full Name Column - Concatenate Two Columns In Excel

 

Method 1. Combine Names in Two Columns with Space/Comma/Hyphen Using an Excel Formula

Combine names in two Excel columns using the CONCATENATE, CONCAT, TEXTJOIN Functions and the Ampersand.

i. Using the Ampersand Operator

Steps:

  • Enter the formula using the ampersand in D5.
=B5&" "&C5
  • B4 and C4 are the cell references of the first row from First Name and Last Name columns.

Ampersand Formula - Concatenate Two Columns In Excel

Between the ampersands there is a " ". to use a space to separate the two names.

The first name (cell reference)  was entered, the space was added using an ampersand and the second ampersand concatenated the last name.

 

  • Drag down the Fill Handle to see the result in the rest of the cells.

AutoFill Ampersand formula - Concatenate Two Columns In Excel

To combine two columns with a comma or hyphen instead of a space, use the following formulas.

For Comma:

=B5&","&C5

For Hyphen:

=B5&"-"&C5

ii. Using the Excel CONCATENATE Function

Use the CONCATENATE function to join values and return the result as text.

Steps:

  • Enter the formula.
=CONCATENATE(B5," ",C5)

CONCATENATE Formula - Concatenate Two Columns In Excel

Space:   " "  is the second text (text2) in the function.

  • Drag down the Fill Handle to see the result in the rest of the cells.

CONCATENATE AutoFill - Concatenate Two Columns In Excel


iii. Use the CONCAT Function to Concatenate Columns

The CONCAT function concatenates values supplied as references or constants.

Steps:

  • Enter the formula.
=CONCAT(B5," ",C5)

CONCATE Formula - Concatenate Two Columns In Excel

The CONCAT and CONCATENATE functions work similarly.

  • Drag down the Fill Handle to see the result in the rest of the cells.

CONCAT AutoFill - Concatenate Two Columns In Excel


iv. Using the TEXTJOIN Function to Concatenate Two Columns

Use the TEXTJOIN function.

 Steps:

  • Enter the formula.
=TEXTJOIN(" ",1,B5,C5)

The space (" ") is set as delimiter. Empty cells are ignored, using 1 in the second parameter.

  • Drag down the Fill Handle to see the result in the rest of the cells.

TEXTJOIN AutoFill

Read More: How to Merge Two Columns in Excel


Method 2 – Concatenate Two Columns Using the Flash Fill Feature

Use the Flash Fill.

Steps:

  • Enter a name manually.
  • Select the cell.
  • In the Data tab, select Data Tools.
  • Click Flash Fill.

Flash Fill

This is the output.

Flash Fill result

You can also press Ctrl+E to use the Flash Fill.


How to Concatenate Values of Two or More Columns in Excel with a Line Break

To add a line break between the values:

To find the Contact Info:

Steps:

=CONCAT(B5," ",C5,CHAR(10),D5)

Formula with line break - Concatenate Two Columns In Excel

CHAR(10) is used for a line break. The address is joined with a line break.

  • Adjust the height of Row 5.
  • Go to the row number bar. Place the cursor between Rows 5 and 6.
  • Double-click.

  • Drag down the Fill Handle to see the result in the rest of the cells.

Line Break in concatenated value


Download Practice Workbook

Download the practice workbook.


Merge Columns in Excel: Knowledge Hub


<< Go Back to Merge in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Shakil Ahmed
Shakil Ahmed

My name’s Shakil. My articles are targeted to support you in enriching knowledge regarding different features related to Microsoft Excel. I am fond of literature, hope some knowledge from them will help me providing you some engaging articles even though some weary technical terms.

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo