
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.
- 1
Look at how many cells to join (2 or many?)
- 2
Could there be blank cells? If so TEXTJOIN
- 3
Is there a number or date? Format it with TEXT
- 4
Copy the result down
- 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
| Mistake | Cause | Fix |
|---|---|---|
| The date shows as a number | Serial number | Use TEXT |
| An extra space | A blank cell or a space in the cell | TEXTJOIN and TRIM |
| #VALUE! or #NAME? | TEXTJOIN missing in an old version | Go back to the & operator |
| The result doesn't update | Flash Fill produces values | Use a formula |
| Data loss after Merge Cells | Only the first cell remains | Combine with a formula |
| The leading zero is removed | Entered as a number | Use 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.
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.