Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Use CONCATENATE in Excel to Join Text With Spaces

Join names and other cell values with CONCATENATE, add separators or labels, and choose CONCAT or TEXTJOIN when you need to combine a range.

Table of Contents

In Excel, =CONCATENATE(B2," ",C2) joins the values in B2 and C2 with one space. Use it to combine names, labels, or codes in a new cell. It leaves the original values in place. Excel retains CONCATENATE for older workbooks, and newer versions also offer CONCAT and TEXTJOIN.

CONCATENATE function: Concatenate cell contents in Excel into new text Picture 1

Join two cells without a separator

Enter =CONCATENATE(B2,C2) in an empty cell and press Enter. If B2 contains AB and C2 contains 123, the result is AB123. Excel adds no separator unless you include one.

CONCATENATE function: Concatenate cell contents in Excel into new text Picture 2

CONCATENATE function: Concatenate cell contents in Excel into new text Picture 3

Join names with a space or add a word

Use =CONCATENATE(B3," ",C3) for a full name. To insert a word or middle name, use =CONCATENATE(B4," Thi ",C4). The spaces go inside the quotation marks. Copy the formula down to apply the same pattern to the other rows.

CONCATENATE function: Concatenate cell contents in Excel into new text Picture 4

CONCATENATE function: Concatenate cell contents in Excel into new text Picture 5

CONCATENATE function: Concatenate cell contents in Excel into new text Picture 6

CONCATENATE function: Concatenate cell contents in Excel into new text Picture 7

If you find extra spaces in names, use =TRIM(B3&" "&C3) where reducing repeated spaces is appropriate. See how Excel’s TRIM function works. If a formula returns #NAME?, check spelling and double quotes around literal text. If Excel rejects the formula at entry, check whether your regional settings expect semicolons as separators.

Choose a newer option for ranges or blanks

  • =B2&" "&C2 joins two cells with a space and works without naming a function.
  • =CONCAT(B2:D2) joins a range without adding a separator.
  • =TEXTJOIN(" ",TRUE,B2:D2) joins a range with spaces and skips empty cells. This is useful when some rows have a middle name and others do not.

Excel joins the underlying values. If a date comes out as a serial number, use TEXT to specify how it should appear, such as =A2&" - "&TEXT(B2,"yyyy-mm-dd"). If you need fixed text that no longer depends on the input columns, copy the result and choose Paste Special > Values. See more examples in Excel text formatting functions or Microsoft’s examples of combining cells.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.