toolrota

How to combine two columns in Excel: the & operator, CONCATENATE and TEXTJOIN with name and address examples

We explain step by step, with examples, all the methods for putting first and last names in one column, joining address parts or listing values separated by commas.

Serkan Akyürek··5 min read
How to combine two columns in Excel: the & operator, CONCATENATE and TEXTJOIN with name and address examples – Excel

In Excel the first and last name can sit in separate columns, address parts scattered, a product code and name in different cells. Combining them in one cell is among the most common jobs. In this guide you learn five ways to combine two columns, which suits when, the problems when joining dates and numbers, and common mistakes.

Method 1: the & operator

The fastest and most readable method. If A2 has the first name and B2 the last name:

=A2&" "&B2

The space in quotes is the separator put between the two parts. You can write a comma, a dash or other text: =A2&", "&B2. For three parts: =A2&" "&B2&" - "&C2.

Method 2: CONCATENATE and CONCAT

=CONCATENATE(A2," ",B2) gives the same result. It is an old function; new versions have CONCAT, which also accepts a range. In practice the & operator or TEXTJOIN is more comfortable.

Method 3: TEXTJOIN

It writes the separator once, joins many cells and can skip blank cells.

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

  • The first argument is the separator.
  • If the second argument is TRUE, blank cells are ignored.
  • The third argument is the range to join.

This method is very useful for address parts (district, street, town, city); even if some are blank no double space or extra comma appears. It exists in Microsoft 365 and Excel 2019 and later.

Choosing the right method
  1. 1

    Look at how many cells to join (2 or many?)

  2. 2

    Could there be blank cells? If so TEXTJOIN

  3. 3

    Is there a number or date? Format it with TEXT

  4. 4

    Copy the result down

  5. 5

    If needed paste as values and delete the source

Method 4: Flash Fill

Type the result you want by hand in the first cell (for example "Anna Smith"), then press Ctrl + E in the cell below. Excel learns the pattern and fills the whole column. It is fast; but the result is a value, not a formula, and doesn't update when data changes.

Method 5: Power Query

If you need to combine many columns and rows regularly, Power Query's Merge Columns is used; when the source data is refreshed the result updates automatically (see our Power Query guide).

Examples

First and last name

=A2&" "&B2 → Anna Smith. Last name first: =B2&", "&A2.

Combining with upper case

=UPPER(B2)&", "&A2 (last name in capitals). For text functions see our text functions guide.

Address

=TEXTJOIN(", ",TRUE,A2,B2,C2,D2) → district, street, town, city; blank ones are skipped.

Joining with a date

If you join directly the date serial number shows: ="Delivery: "&A2 → Delivery: 46100. The right way:

="Delivery: "&TEXT(A2,"dd/mm/yyyy")

The text format can vary with the language version (dd/mm/yyyy or tt.mm.jjjj).

Joining with a number

="Total: "&TEXT(B2,"#,##0.00")&" EUR" → thousands separator and two decimals. Format codes vary with regional settings.

A list in one cell separated by commas

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

Joining with a line break

=A2&CHAR(10)&B2 and turn on Wrap Text in the cell.

The reverse of combining: splitting text

To separate combined data use Text to Columns or TEXTSPLIT (see our split text guide).

Converting the formula to values

To make the combined result permanent: copy the results and use Paste Special > Values. Then you can delete the source columns.

Common mistakes

MistakeCauseFix
The date shows as a numberSerial numberUse TEXT
An extra spaceA blank cell or a space in the cellTEXTJOIN and TRIM
#VALUE! or #NAME?TEXTJOIN missing in an old versionGo back to the & operator
The result doesn't updateFlash Fill produces valuesUse a formula
Data loss after Merge CellsOnly the first cell remainsCombine with a formula
The leading zero is removedEntered as a numberUse TEXT with the "000" format

Merge Cells vs a formula

The Home > Merge & Center button makes cells visually a single cell; only the top-left cell's data stays and the others are deleted. It causes problems in filters, sorting and formulas. To combine data use a formula; for heading alignment "Center Across Selection" is safer.

Tips for speed and bulk work

  • Instead of dragging the formula double-click the cell's bottom-right corner.
  • In a table (Ctrl + T) the formula applies to the whole column automatically (see our Excel tables guide).
  • With big data Power Query is more robust.
  • In Google Sheets the & operator and JOIN/TEXTJOIN work similarly (see our Sheets vs Excel guide).

Frequently asked questions

How do I combine three columns? =A2&" "&B2&" "&C2 or TEXTJOIN.

How do I clear spaces when combining? Wrap in TRIM: =TRIM(A2&" "&B2).

Can I combine thousands of rows quickly? Yes; copy the formula down or use Flash Fill.

How do I add a quotation mark to the text? Write double quotes: ="""Hello""".

How do I unmerge merged cells? Click the Merge & Center button again.

Summary

The most practical way to combine in Excel is the & operator, and for many cells and blanks TEXTJOIN. Format dates and numbers with TEXT, paste results as values if needed and don't use the merge-cells button for combining data.

Share
Published:
Author
Serkan Akyürek

Serkan Akyürek is the founder and author of toolrota; he writes step-by-step guides on Excel, AI, the cloud, personal finance and digital security.

Related guides

Excel
Excel5 min read

Automatic row numbering in Excel: fill, the ROW formula and numbering that survives filtering

Numbering a list 1, 2, 3 looks simple, but it breaks when you delete rows or apply a filter. We explain numbering methods for every situation with examples.

Excel6 min read

Excel slicers and timelines: how to build an interactive report that filters with a click

Slicers let you filter a table and PivotTable by clicking buttons. We explain adding, connecting, formatting and building an interactive report.

Excel6 min read

Hiding, grouping and outlining rows and columns in Excel: simplifying big tables and using Subtotal

We explain hiding, grouping and outline features step by step for collapsing and expanding a big table with one click, hiding middle rows and taking automatic subtotals.

Excel5 min read

Excel IFS and SWITCH functions: more readable alternatives to nested IF

Long nested IF chains are unreadable and error-prone. We explain IFS and SWITCH with examples and when to choose which.

Excel6 min read

Excel formula not working or not calculating: 12 causes and fixes

You wrote a formula but the formula itself shows instead of the result, or the value doesn't update. We cover the 12 most common causes and a step-by-step fix for each.

AI6 min read

What is artificial intelligence? Types, how it works, uses and everyday examples

Artificial intelligence is the general name for systems that can do jobs requiring human intelligence. We explain its types, logic, uses and limits in plain language.